Stop Google DAI to send event request

249 views
Skip to first unread message

Victor Wu

unread,
Nov 26, 2020, 3:24:50 AM11/26/20
to Interactive Media Ads SDK
Hi,

We found that Google DAI IMA SDK keeps sending some events (probably heartbeat/playback events) even we are not playing the DAI stream anymore.

We didn't find a API call to stop after we switch to another stream.

Is there a way to stop it without unloading the manager? Please point us to the right place if there is any.

Thanks,
Victor

IMA SDK

unread,
Nov 26, 2020, 4:13:31 AM11/26/20
to hkvic...@gmail.com, ima...@googlegroups.com

Hi Victor,

Thank you for reaching out to us. Could you please confirm which of the following IMA SDK for DAI platforms are you using wherein this issue is occurring?

  • HTML5
  • Android
  • iOS
  • tvOS
  • Roku

Also, were you able to reproduce this issue with one of our sample applications? If yes, kindly provide the asset key or the content / video IDs that’s being used, so we can test on our end.

 

Regards,


Google Logo
Sherwin Diesta
IMA SDK Team
 


ref:_00D1U1174p._5004Q28l8xz:ref

Victor Wu

unread,
Nov 28, 2020, 12:20:26 PM11/28/20
to Interactive Media Ads SDK
Hi Sherwin,

Thanks for quick response.
We are using HTML 5 SDK.
About the stream we are using, we use DASH Live, but I also tried with HLS Live stream with asset key sN_IYUG8STe1ZzhIIE_ksA which also has same issue.
It doesn't look like related to stream type. We keep having id3-events.json request each 10s after we stop playing the stream.

Thanks,
Victor

IMA SDK

unread,
Nov 30, 2020, 11:38:10 AM11/30/20
to hkvic...@gmail.com, ima...@googlegroups.com
Hi Victor,

I work with Sherwin and will assist you. I checked with that ad tag in our DAI Streams Tester and after pausing video playback the Network Tab in Chrome devtools shows "id3-events.json" and "*.m3u8" files continue to come in. The "id3-events.json" are about 25-35 kbyte each. This may be working as intended. Is this what you are concerned about?

Regards,

Google Logo
Aryeh Baker
IMA SDK Team
 


ref:_00D1U1174p._5004Q28l8xz:ref

Victor Wu

unread,
Dec 1, 2020, 5:13:54 AM12/1/20
to Interactive Media Ads SDK
Hi Aryeh,

Thanks for your quick response.
The "id3-events.json" is the one that I'm concerned. The situation I have is we switch to another non-DAI stream after playing the DAI stream.
We expected nothing related to DAI would happen as the DAI stream ended and we are playing another non-DAI stream. Therefore, we expected no "id3-events.json" sending in this situation. However, there's nothing like destroy or stop in the DAI API (Something similar to IMA AdsManager: https://developers.google.com/interactive-media-ads/docs/sdks/html5/client-side/reference/js/google.ima.AdsManager#destroy) to stop this "id3-events.json" request when we switch back to play a non-DAI stream.

Thanks,
Victor

IMA SDK

unread,
Dec 1, 2020, 11:49:44 AM12/1/20
to hkvic...@gmail.com, ima...@googlegroups.com
Hi Victor,

Thank you for clarifying more your need. When DAI stream ends there's still id3-events.json being received. In order to bring this up with my team, could you supply us with an example use case app based on our sample apps in DAI and (non DAI) Client side so that we can address your use case?

Victor Wu

unread,
Dec 2, 2020, 4:48:10 PM12/2/20
to Interactive Media Ads SDK
Hi Aryeh,

That would be great! Thanks!
We are Zattoo doing live TV streaming. The use case is the player switching from a channel showing DAI stream to a channel doesn't have ad, which is our normal live stream channel.

I could create a sample code with the DAI demo stream and our demo stream switch. I'll post updates when it's ready.

Thanks,
Victor

IMA SDK

unread,
Dec 2, 2020, 10:20:55 PM12/2/20
to hkvic...@gmail.com, ima...@googlegroups.com

Hi Victor,

Thank you for your response and for sharing this information. It would be great if you could also provide us the sample project file demonstrating this use case for our reference. Once ready, you can send the shareable drive link to our email alias: imate...@gmail.com so that we can download the file.


Regards,


Google Logo
Sherwin Diesta
IMA SDK Team
 


ref:_00D1U1174p._5004Q28l8xz:ref

Victor Wu

unread,
Dec 17, 2020, 4:36:57 AM12/17/20
to Interactive Media Ads SDK
Hi Sherwin,

Sorry for late reply due to the work near the end of year. I have the sample code uploaded in https://github.com/victor77dev/google-dai-live-channels and also sent the link to the email.

The code includes stream switching from DAI stream to non-DAI stream. https://github.com/victor77dev/google-dai-live-channels/blob/main/dai.js#L102-L104 mentions what we would like to have to avoid unnecessary "id3-events.json" requests.

Thanks a lot!

Wish you have a Merry Christmas & Happy New Year!

Regards,
Victor

IMA SDK

unread,
Dec 17, 2020, 9:11:11 AM12/17/20
to hkvic...@gmail.com, ima...@googlegroups.com

Hi Victor,

Thank you for giving us the sample - I ran it and found the id3-events.json files coming after switching to streams that don't show ads. When placing "streamManager.reset();" right at the beginning of your function "loadStream()" no id3-events.json came on the new stream. Please tell me if this doesn't solve your issue.

Regards,

Google Logo
Aryeh Baker
IMA SDK Team
 


ref:_00D1U1174p._5004Q28l8xz:ref

Victor Wu

unread,
Dec 17, 2020, 10:45:50 AM12/17/20
to Interactive Media Ads SDK
Hi Aryeh,

Thanks for your quick response. "streamManager.reset();" works well to stop the events sending.

Thanks a lot for your help!
Reply all
Reply to author
Forward
0 new messages