googleads / googleads-ima-tvos-client-side

5 stars 8 forks source link

SDK not discarding PRE-ROLL ad when MID-ROLL available in the seek time #1

Open piyushbmaz opened 5 years ago

piyushbmaz commented 5 years ago

We are using the IMA Client side SDK for our iOS, tvOS, Android and Android TV platforms.

Both the SDKs show some differences in playing and discarding the ads.

In our implementation, we play a series of videos and save the played time of the video to server to maintain a syncing between all the platforms.

The Tag url we set, have PRE MID and POST roll ads. The MID ad is set to be played at time 00:15 secs. For the first time we I play the video then PRE comes then on reaching 00:15 the MID ad played. Which is an expected behavior and common for all the platforms. The video continues to play and consider that I close the video at 00:45. This played time will be saved on the server and the next time I play the video it will seek to 00:45.

Now if we check the above thing for Android (& family) platform, the SDK will DISCARD the PRE-ROLL ad and directly play the MID-ROLL ad and the video starts playing from 00:45. This behavior is the desired one.

Now, if we repeat the same steps for iOS & tvOS platform. The SDK first play the PRE-ROLL ad then the MID-ROLL ad will be played. So we have two consecutive ad, which I believe is not desired.

Android SDK is handling this the right way.