There are no getter properties / methods on the TOP player interface. Instead the player exposes a model which allows for retrieval of TOP properties.
Get data from the model (see categories):
var value = player.model().<categoryName>();The player model exposes player data by category:
| Data | Description |
|---|---|
| media | Model data for the media player |
| ads | Model data for the ads player |
| config | Configuration data applied to the current content play |
| playlistItem | Model data about the current item being played |
| contentState | Current state of content |
| viewState | Current state of the view |
Many of the player model property values are themselves objects.
To get say the media volume (also see convenience methods below):
var volume = player.model().media().volume();Some model properties have convenience methods for ads and media on the player model (see properties on IPlayerModel) and for content on playlistItem (see properties on IPlaylistItem).
Instead of the media volume example above, this can be done:
var volume = player.model().mediaVolume();