Playlist Object
ttv.playlist Object
Function or Property | Description | Returns |
---|---|---|
ttv.playlist | The playlist object | The playlist object |
ttv.playlist.goToPageId(id) | Goes to the page as specified by the ID. You'll need to determine the ID of the page first by retrieving a list of the pages. | null |
ttv.playlist.goToPageName(name) | Go to the page as specified by the Name of the page. | null |
ttv.playlist.nextPage() | Go to the next page in the playlist. | null |
ttv.playlist.previousPage() | Go to the previous page in the playlist. | null |
ttv.playlist.pause() | Pause playlist playback. | null |
ttv.playlist.play() | Resuming playing playlist playback. | null |
Playlist Object Properties
Property | Description | Type |
---|---|---|
id | The ID of the playlist | string |
pages | An array of pages objects representing the pages in the playlist | array |
name | The name of the playlist | string |
state | Whether the playlist is 'playing' or 'paused' | string |
Code Samples
window.onloadTelemetryTV = function (ttv) {
console.log('Pausing the Playlist');
ttv.playlist.pause();
};
Updated 2 months ago