Android SDK - Player states



Player states (Android)

StateDescriptionType
playerAreControlsEnabledIf the player controls are enabled.boolean
playerAspectRatioThe player current aspect ratio.string
playerError

Contains information about the last error that occurred in the player, including title, message and code.

Example:
class Error( val title: String? = null, val message: String? = null )

object
playerIsAlertDialogDisplayedIf the player has the alert dialog displayed.boolean
playerIsBufferingIf the player is loading the media resource.boolean
playerIsCriticalPathReadyIf the player is ready to play.boolean
playerIsMutedIf the player is muted.boolean
playerIsNavigationEnabledIf the next and previous controls in the PiP are enabled.boolean
playerIsPlaybackAllowedIf the player is allowed to play, depending on the browser permissions.boolean
playerIsPlayingIf the player is currently playing video or ad content.boolean
playerIsReplayScreenIf the player is in replay screen.boolean
playerIsStartScreenIf the player is in start screen.boolean
playerNextVideoThe id of the video next video in the queue.string
playerPlaybackPermissionReasonThe reason why the playback has been allowed or not.string
playerPlaybackSpeedThe current playback speed.number
playerPresentationModeThe current mode where the player is displayed.string
playerPrevVideoThe id of the video previous video which was played.string
playerScaleModeThe player’s current scale mode.string
playerVolumeThe current volume level. The volume and mute params operate separately, therefore, you could have a player with full volume, but also muted.number

Video states (Android)

StatesDescriptionType
videoCreatedTimeThe timestamp that corresponds to the creation of the video.date
videoDurationThe duration time of the video resource in seconds.number
videoIdThe unique ID of the video.string
videoIsCreatedForKidsIf the video is created for children.boolean
videoIsPasswordRequiredIf the video required a password to be read.boolean
videoOwnerIdThe id of the owner of the video.string
videoOwnerScreenNameThe screen name of the owner of the video.string
videoOwnerUsernameThe user name of the owner of the video.string
videoQualitiesListThe video qualities that are available.string
videoQualityThe quality value of the video loaded.string
videoSubtitlesListThe language codes of the subtitle tracks which are available for the current media resource.string
videoSubtitlesThe language code of the subtitle track that is currently enabled.string
videoTimeThe current playback position of the video in seconds.number
videoTitleThe title of the video loaded.string

Ad states (Android)

StatesDescriptionType
adAdvertiserNameThe advertiser name.string
adCompanion

An array of parsed companion ad creatives.

Example:
class AdCompanion( val id: String? = null, val adId: String? = null, val sequence: String? = null, val apiFramework: String? = null, val type: String? = null, val adCompanionRequired: Boolean? = null, )

array
adCreativeAdIdThe universal ad id node from the VAST or the ad id of the creative node from the VAST.string
adCreativeIdThe id of the creative node from the VAST.string
adDescriptionThe description of the ad.string
adDurationThe duration time of the ad resource in seconds.number
adEndedReasonThe reason why the last ad ended.string
adErrorContains information about the last error that occurred with the ad.string
adIdThe id of the ad.string
adIsPlayingIf an ad resource is running.boolean
adIsSkippableIf the ad can be skipped by the user at this moment.boolean
adPositionThe position of the ad in the video.string
adSkipOffsetThe remaining time before the ad can be skipped, or -1 if no ad is running.number
adTimeThe current playback position of an ad in seconds.number
adTitleThe title of the ad.string