Class Node

  • All Implemented Interfaces:
    android.os.Parcelable, java.lang.Comparable<Node>

    public class Node
    extends java.lang.Object
    implements java.lang.Comparable<Node>, android.os.Parcelable
    A class representing a participant. TODO: make this parcelable make this more of a data class move datasource switch streams on it own without relying on node create a new datasource whenever getDataSourceFactory is called make this properly parcelable
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface android.os.Parcelable

        android.os.Parcelable.ClassLoaderCreator<T extends java.lang.Object>, android.os.Parcelable.Creator<T extends java.lang.Object>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static android.os.Parcelable.Creator<Node> CREATOR  
      • Fields inherited from interface android.os.Parcelable

        CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
    • Field Detail

      • CREATOR

        public static final android.os.Parcelable.Creator<Node> CREATOR
    • Method Detail

      • describeContents

        public int describeContents()
        Specified by:
        describeContents in interface android.os.Parcelable
      • writeToParcel

        public void writeToParcel​(@NonNull
                                  android.os.Parcel dest,
                                  int flags)
        Specified by:
        writeToParcel in interface android.os.Parcelable
      • setVideoEnabled

        public void setVideoEnabled​(boolean enabled)
      • setAudioEnabled

        public void setAudioEnabled​(boolean enabled)
      • getDataSourceFactory

        @NonNull
        public com.google.android.exoplayer2.upstream.DataSource.Factory getDataSourceFactory()
      • getNodeId

        public long getNodeId()
      • toString

        @NonNull
        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • compareTo

        public int compareTo​(@NonNull
                             Node other)
        Specified by:
        compareTo in interface java.lang.Comparable<Node>