Skip to content

Detach/re-attach to the video element on client-side ads for devices that don't support multiple media elements #2792

Closed
@ismena

Description

Some device types don't support multiple video elements on the page and CS IMA has to reuse the same video element to show ads. (Tizen, WebOS)
For this scenario, we need to detach from the <video> and re-attach after the ads has finished playing.
IMA has an isCustomPlaybackUsed method that we can call to check if the media element is gonna be reused (true if the method returns true :)).

We can call it when we get a content pause is requested by the SDK, and detach from the element if need be.

We'll need to save video.currentTime to be able to resume playback once the ads are done playing.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

component: adsThe issue involves the Shaka Player ads API or the use of other ad SDKsplatform: CastIssues affecting Cast devicesplatform: TV/STBIssues affecting smart TV or set-top box platformsplatform: TizenIssues affecting Tizenplatform: WebOSIssues affecting WebOSpriority: P2Smaller impact or easy workaroundstatus: archivedArchived and locked; will not be updatedtype: enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions