Interface Quality

  • All Implemented Interfaces:
    com.theoplayer.android.api.event.EventDispatcher

    
    public interface Quality
     implements EventDispatcher<E>
                        

    Represents one of the qualities of a MediaTrack.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract long getBandwidth() The required bandwidth for the quality as defined in the manifest.
      abstract String getCodecs() The codecs of the quality as defined in the manifest.
      abstract String getId()
      abstract int getUid()
      abstract String getName() The name of the quality as defined in the manifest.
      • Methods inherited from class com.theoplayer.android.api.event.EventDispatcher

        addEventListener, removeEventListener
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • getBandwidth

         abstract long getBandwidth()

        The required bandwidth for the quality as defined in the manifest.

        Returns:

        The bandwidth of the quality.

      • getCodecs

        @Nullable() abstract String getCodecs()

        The codecs of the quality as defined in the manifest.

        Returns:

        The codecs of the quality. (Nullable)

      • getId

         abstract String getId()
        Returns:

        The identifier of the quality. This identifier is mapped to the internal stream representation but might be empty. To have a unique identifier, use `getUid`.

      • getUid

         abstract int getUid()
        Returns:

        The unique identifier of the quality.

      • getName

        @Nullable() abstract String getName()

        The name of the quality as defined in the manifest.

        Returns:

        The name of the quality. (Nullable)