DAI : Progress value to return in case of live stream for Android

64 views
Skip to first unread message

Valentin Rocher

unread,
Dec 6, 2019, 4:45:45 AM12/6/19
to Interactive Media Ads SDK
Hi, first, I'm using Android, the IMA DAI SDK and the player we're using is the JWPlayer Android SDK.

I was wondering exactly what the value to return in getContentProgress was in cas of a live stream.

The example given uses values from Exoplayer, however as we're using JWPlayer these values aren't available in the same way to us. What values need to be returned in this method exactly ?

Thanks in advance.

IMA SDK

unread,
Dec 6, 2019, 2:35:45 PM12/6/19
to valenti...@webedia-group.com, ima...@googlegroups.com
Hi Valentin,

Thank you for reaching out to us. In case of a Live Stream, the getContentProgress() method returns an instance of the
VideoProgressUpdate class that contains the currentTime and the duration values of the live stream in seconds (see screenshot attached). You can call the getCurrentTime() and getDuration() methods on the VideoProgressUpdate object to get the values.

Regards,
Arnaud Casame
IMA SDK Team


ref:_00D1U1174p._5001UODzSf:ref
getContentProgress_in_LiveStream.png

Valentin Rocher

unread,
Dec 9, 2019, 5:50:02 AM12/9/19
to Interactive Media Ads SDK
I understood that from the example, but the fact is that the data used in the example gets its info from Exoplayer, and I don't have access to it because the player we use is JWPlayer. The duration is not very important (in your examples, it's always a huge negative value), but as for the position, I don't have access to the Timeline information, so I can't compute it the same way you do in the example. What should I do ?

Regards,

Valentin.

IMA SDK

unread,
Dec 9, 2019, 1:56:20 PM12/9/19
to valenti...@webedia-group.com, ima...@googlegroups.com
Hi Valentin,

You are using the JWPlayer with the Exoplayer-IMA plugin, we're not familiar with this plugin's API. We would recommend you to reach out to the JWPlayer Support Team so they can tell you how to access the stream's currentTime.


Regards,
Arnaud Casame
IMA SDK Team


ref:_00D1U1174p._5001UODzSf:ref
Reply all
Reply to author
Forward
0 new messages