Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to play DAI ad in a player different from one used for live content #1855

Open
krackjack234 opened this issue Nov 4, 2024 · 1 comment
Assignees
Labels

Comments

@krackjack234
Copy link

We want to support Google DAI ads in our project but we have a requirement to play the Advertisement media in a player different from the one used to play the content.

Specifically, we want to pause the content player when we reach the SCTE35 marker, switch to the Ad player and initialise it with the Ad URL. Once the Ad playback completes, we want to switch back to the content player.

Please let us know if this is possible with the current Google DAI SDK.

Thanks in advance.

@marcbaechinger
Copy link
Contributor

marcbaechinger commented Nov 4, 2024

If you have questions regarding the IMA SDK you need to ask elsewhere I'm afraid. That's a different team.

switch to the Ad player and initialise it with the Ad URL

I'm not sure I understand what you mean with Ad URL. With SSAI DAI there is one single URI and ads are stitched in on the server side. It's the primary feature of SSAI DAI to not have multiple streams but only a single one.

Specifically, we want to pause the content player when we reach the SCTE35 marker, switch
to the Ad player and initialise it with the Ad URL. Once the Ad playback completes,
we want to switch back to the content player.

I don't think that there is sufficient details in how this is supposed to work, specifically without test streams available. From what you describe I'm not actually sure what is the question about, as in why do you think this shouldn't work.
However, if you can read the SCTE-35 metadata entries and they include the URI you want to play, I don't know why this shouldn't work to switch back and forth. You have to handle switching, preloading ad UI, ad overlay and these things on your own, but technically I can't see a difficulty and I also don't see how the IMA SDK is invloved here. You can do this with any stream that has the SCTE-35 metadata, no?

Can you elaborate on what part you think is critical and possibly not possible? With the description of the use case above why shouldn't that work?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants