public class PhotoPlayer extends Player
PhotoPlayer
class allows control Photo Player on TV side.
It extends Player class and defines photo player functionality.Modifier and Type | Class and Description |
---|---|
static interface |
PhotoPlayer.OnPhotoPlayerListener
Public Listener Interface for Photo Player Notice events
|
Player.RepeatMode
Modifier and Type | Method and Description |
---|---|
void |
addOnMessageListener(PhotoPlayer.OnPhotoPlayerListener listener)
Add a listener for messages of photo player.
|
void |
addToList(List<Map<String,String>> photoList)
public API to add content to list.
|
void |
addToList(Uri uri)
public API to add content to list.
|
void |
addToList(Uri uri,
String title)
public API to add content to list.
|
void |
clearList()
public API to delete whole list.
|
void |
getList()
public API to fetch the list.
|
void |
playContent(Uri contentUrl,
Result<Boolean> result)
public API to play photo content
|
void |
playContent(Uri contentUrl,
String title,
Result<Boolean> result)
public API to play photo content
|
void |
removeFromList(Uri uri)
public API to delete content from list.
|
void |
setBackgroundMusic(Uri uri)
sets background audio in slide show.
|
void |
stopBackgroundMusic()
stops background audio in slide show.
|
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 photo to be playedresult
- callbackpublic void playContent(Uri contentUrl, String title, Result<Boolean> result)
contentUrl
- uri of the photo to be playedtitle
- title of the photoresult
- callbackpublic void setBackgroundMusic(Uri uri)
uri
- Background audio url.public void stopBackgroundMusic()
public void getList()
public void clearList()
public void removeFromList(Uri uri)
uri
- the uri of the contentpublic void addToList(Uri uri)
uri
- the uri of the contentpublic void addToList(Uri uri, String title)
uri
- the uri of the contenttitle
- the title of the contentpublic void addToList(List<Map<String,String>> photoList)
photoList
- List of Maps of photo lists.public void addOnMessageListener(PhotoPlayer.OnPhotoPlayerListener listener)
listener
- the message listener to invoke when a message is
received with the specified event