ExperimentalReadonly ExperimentalcurrentThe current playback position of the linear ad (or ad break), in seconds.
Readonly ExperimentaldurationThe duration of the linear ad (or ad break), in seconds, or NaN if unknown.
Readonly ExperimentalendedWhether the linear ad or ad break has ended.
The player reads this property when ClientSideAdIntegrationController.updateLinearAdBreak is called.
ExperimentalmutedWhether the linear ad is muted.
Set when ChromelessPlayer.muted changes during linear ad playback.
Readonly ExperimentalpausedWhether the linear ad is paused.
Readonly ExperimentalreadyThe ready state of the linear ad, using the same values and meaning as ChromelessPlayer.readyState.
A delegate backed by an HTMLMediaElement can forward its readyState.
The player reads this property when ClientSideAdIntegrationController.updateLinearAdBreak is called.
Optional Readonly ExperimentalusesWhether this playback really renders the linear ad in ClientSideAdIntegrationController.contentVideoElement instead of ClientSideAdIntegrationController.adContainer.
Set this to true only when this playback plays the ad in the content video element,
so the player can hand over the element before the ad starts and restore the content afterwards.
The player reads this property once, when ClientSideAdIntegrationController.startLinearAdBreak is called.
false or omitted when ClientSideAdIntegrationController.contentVideoElement is undefined.false. A wrapper around it must also return false.Readonly ExperimentalvideoThe height of the ad video, or 0 if unknown.
The player reads this property when ClientSideAdIntegrationController.updateLinearAdBreak is called.
Readonly ExperimentalvideoThe width of the ad video, or 0 if unknown.
The player reads this property when ClientSideAdIntegrationController.updateLinearAdBreak is called.
ExperimentalvolumeThe volume of the linear ad, as a number between 0 and 1.
Set when ChromelessPlayer.volume changes during linear ad playback.
Experimental
Pause playback of the linear ad.
Called by ChromelessPlayer.pause during linear ad playback.
Experimental
Resume playback of the linear ad.
Called by ChromelessPlayer.play during linear ad playback.
Playback state and controls for a linear ad in a client-side ad integration.
The player reads these properties to report the ad playback state through its own API, and calls the methods when playback is controlled through the player. The integration must call ClientSideAdIntegrationController.updateLinearAdBreak whenever any of these properties change. Report playback errors with ClientSideAdIntegrationController.error for non-fatal
aderrorevents or ClientSideAdIntegrationController.fatalError for fatal errors.ClientSideAdIntegrationController.linearAdPlayer implements this interface. A forwarding wrapper around it behaves identically when it forwards the built-in player's events to ClientSideAdIntegrationController.updateLinearAdBreak.
See
StartLinearAdBreakOptions.playback