Interface TheoLive

    • 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 Deferred<List<Channel>> preloadChannels(List<String> channelIds) Preload some channels to allow faster switching between channels.
      abstract Unit goLive() Seek to the live edge.
      abstract Boolean getBadNetworkMode() Get or set whether the player is in bad network mode.
      abstract Unit setBadNetworkMode(Boolean badNetworkMode) Get or set whether the player is in bad network mode.
      • 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

      • preloadChannels

         abstract Deferred<List<Channel>> preloadChannels(List<String> channelIds)

        Preload some channels to allow faster switching between channels. This will retrieve the metadata of all the given channel ids and store it so next loadChannel calls are faster.

        Parameters:
        channelIds - The ids of the channels to preload.
      • goLive

         abstract Unit goLive()

        Seek to the live edge.

      • getBadNetworkMode

         abstract Boolean getBadNetworkMode()

        Get or set whether the player is in bad network mode.

        ABR functionality works best on qualities with a bitrate of 800Kbit/s or more. So by default the player filters out qualities with a lower bandwidth as it has difficulty upswitching from those qualities. However, when the player detects that the stream really isn't playable on the 800Kbit/s+ qualities, it enters bad network mode. In this mode, the player will also select lower bitrate qualities with the risk of never upswitching. It might still upswitch, but we can't give any guarantees. This mode can be exited by setting badNetworkMode to false.

      • setBadNetworkMode

         abstract Unit setBadNetworkMode(Boolean badNetworkMode)

        Get or set whether the player is in bad network mode.

        ABR functionality works best on qualities with a bitrate of 800Kbit/s or more. So by default the player filters out qualities with a lower bandwidth as it has difficulty upswitching from those qualities. However, when the player detects that the stream really isn't playable on the 800Kbit/s+ qualities, it enters bad network mode. In this mode, the player will also select lower bitrate qualities with the risk of never upswitching. It might still upswitch, but we can't give any guarantees. This mode can be exited by setting badNetworkMode to false.