# interface IPlayerModel

#### package com.turner.top.sdk.core.player.model

Model data for the player sdk

See:

Integration - Model

### Methods

###

`adDuration ():ApiTimeValue`

The length of an ad

###

`adEvents ():AdModelEvents`

Ad model events collection

###

`adMuted ():Bool`

true if the ad player is muted

###

`adRequest ():AdRequest`

The data sent to the ads server

###

`adRequestError ():String`

The ad request error message if there is an issue with the ad request

###

`adRequestState ():AdProviderState`

The current state of the ad request

###

`adResponse ():AdResponse`

Data received from the ads server

###

`adState ():AdConsumerState`

The current state of the ad consumer

###

`adTime ():ApiTimeValue`

The playhead position of the ads player

###

`adType ():AdType`

Type of ad being trafficked

###

`adVolume ():ApiVolumeValue`

The current volume level for the ads player

###

`ads ():IAdModel`

Model data for the ads player

###

`config ():PlayerConfigData`

Current applied player configuration data

###

`contentState ():PlayerTransactionState`

Current state of content

###

`media ():IMediaEngineModel`

Model data for the media player

###

`mediaBitrate ():ApiBitrateValue`

The bitrate of the current profile being played

###

`mediaCalculatedMediaHeight ():Float`

Effective height of the media

###

`mediaCalculatedMediaWidth ():Float`

Effective width of the media

###

`mediaDuration ():ApiTimeValue`

The duration of the current content

###

`mediaError ():String`

The error message of the media player if an error occurs

###

`mediaEvents ():MediaModelEvents`

Media model events collection

###

`mediaInitialBufferLength ():Float`

Time to buffer before playback begins

###

`mediaIsLive ():Bool`

true if the content is live content

###

`mediaIsProtected ():Bool`

true if the content is protected

###

`mediaMaxBitrate ():ApiBitrateValue`

The maximum bitrate the media player is allowed to shift up to

###

`mediaMinBitrate ():ApiBitrateValue`

The minimum bitrate the media player is allowed to shift down to

###

`mediaMuted ():Bool`

true if the media player is muted

###

`mediaPlayBufferLength ():Float`

The length of the play buffer

###

`mediaPlayableRange ():TimeRange`

Defines time values for the currewnt media

###

`mediaProfileIndex ():Int`

The index of the media profile being played

###

`mediaProfiles ():Array<MediaProfile>`

List of media profiles of the current content

###

`mediaStartBitrate ():ApiBitrateValue`

The bitrate of the media profile to use when content first plays

###

`mediaStartIndex ():Int`

The index of the media profile to use when content first plays

###

`mediaState ():MediaState`

The current state of the media player

###

`mediaStreamInfo ():IMediaStreamInfoModel`

Retrieve the stream info model

###

`mediaTime ():ApiTimeValue`

The current playhead time of the media player

###

`mediaUrl ():String`

The manifest url of the current content

###

`mediaViewHeight ():Float`

The height of the media player viewport

###

`mediaViewWidth ():Float`

The width of the media player viewport

###

`mediaVolume ():ApiVolumeValue`

The current volume level of the media player

###

`playerState ():PlayerState`

Current state of the player

###

`playlistItem ():IPlaylistItem`

Model data for the current item being played

###

`viewState ():ViewState`

Current state of the view