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 UnitgoLive()Seek to the live edge. abstract StringgetAuthToken()The authentication token that will be used when requesting a manifest or segment. abstract UnitsetAuthToken(String authToken)The authentication token that will be used when requesting a manifest or segment. -
-
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.
-
getAuthToken
abstract String getAuthToken()
The authentication token that will be used when requesting a manifest or segment. To unset the token, pass
nullor an empty string.
-
setAuthToken
abstract Unit setAuthToken(String authToken)
The authentication token that will be used when requesting a manifest or segment. To unset the token, pass
nullor an empty string.
-
-
-
-