Interface TheoLive
-
- All Implemented Interfaces:
-
com.theoplayer.android.api.event.EventDispatcher
public interface TheoLive implements EventDispatcher<TheoLiveEvent<?>>
The Theo live player API.
-
-
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. -
-
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.
-
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.
-
-
-
-