public class VideoPlayer extends Player
VideoPlayer
class allows control Video Player on TV side.
It extends Player class and defines video player functionality.Modifier and Type | Class and Description |
---|---|
static interface |
VideoPlayer.OnVideoPlayerListener
Public Listener Interface for Video Player Notice events
|
Player.RepeatMode
Modifier and Type | Method and Description |
---|---|
void |
addOnMessageListener(VideoPlayer.OnVideoPlayerListener listener)
Add a listener for messages of video player.
|
void |
addToList(List<Map<String,String>> videoList)
public API to add content to list.
|
void |
addToList(Uri ContentUri)
public API to add content to list.
|
void |
addToList(Uri uri,
String title,
Uri thumbUri)
public API to add content to list.
|
void |
clearList()
public API to delete whole queue.
|
void |
forward()
Forward Content
|
void |
getList()
public API to fetch the queue.
|
void |
playContent(Uri contentUrl,
Result<Boolean> result)
public API to play video content
|
void |
playContent(Uri contentUrl,
String title,
Uri thumbnailUrl,
Result<Boolean> result)
public API to play video content
|
void |
removeFromList(Uri uri)
public API to delete content from queue.
|
void |
repeat()
toggles repeat mode on/off
|
void |
rewind()
Rewind Content
|
void |
seekTo(int time,
TimeUnit timeUnit)
seeks video to specified time position.
|
void |
setRepeat(Player.RepeatMode mode)
sets repeat mode to ON or OFF
|
disconnect, disconnect, disconnect, getControlStatus, isConnected, isDebug, mute, next, pause, play, previous, removePlayerWatermark, resumeApplicationInForeground, setDebug, setOnClientConnectListener, setOnClientDisconnectListener, setOnConnectListener, setOnDisconnectListener, setOnErrorListener, setOnReadyListener, setPlayerWatermark, setVolume, standbyConnect, standbyConnect, standbyConnect, standbyConnect, stop, unMute, volumeDown, volumeUp
public void playContent(Uri contentUrl, Result<Boolean> result)
contentUrl
- uri of the video to be playedresult
- callbackpublic void playContent(Uri contentUrl, String title, Uri thumbnailUrl, Result<Boolean> result)
contentUrl
- uri of the video to be playedtitle
- title of the videothumbnailUrl
- thumbnail urlresult
- callbackpublic void forward()
public void rewind()
public void seekTo(int time, TimeUnit timeUnit)
time
- the offset in specified time units from the start to seek totimeUnit
- unit of time in which time is specified.public void repeat()
public void setRepeat(Player.RepeatMode mode)
mode
- repeatOff : repeat OFF
repeatSingle : repeat Single
repeatAll : repeat Allpublic void getList()
public void clearList()
public void removeFromList(Uri uri)
uri
- the uri of the contentpublic void addToList(Uri ContentUri)
ContentUri
- the uri of the contentpublic void addToList(Uri uri, String title, Uri thumbUri)
uri
- the uri of the contenttitle
- the title of the contentthumbUri
- the thumbnail image url related to the contentpublic void addToList(List<Map<String,String>> videoList)
videoList
- List of Maps of audio lists.public void addOnMessageListener(VideoPlayer.OnVideoPlayerListener listener)
listener
- the message listener to invoke when a message is
received with the specified event