Page Object
The page
object is no longer available in the SDK version 2.
Use the getCurrentPage
method to get the page information.
We also have the getAllPages()
and getPlaylistPages(playlistId)
methods to help you get more page information. Please check the README.md for more details.
page Object
Function or Property | Description | Returns |
---|---|---|
page.name | Returns the page object | Returns the page object |
Page Object Properties
Property | Description | Type |
---|---|---|
duration | Duration of the page in seconds | number |
name | Name of the page | string |
id | TelemetryTV ID of the page | string |
Code Samples
import { getCurrentPage } from '@telemetrytv/sdk'
getCurrentPage().then((page) => {
console.log('The current page name is:', page.name)
})
Updated 5 months ago
What’s Next