-
Notifications
You must be signed in to change notification settings - Fork 22
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
react-native-theoplayer not properly handling IMA ads on iOS #207
Comments
Thanks for reporting. I will investigate. |
This happens on version 3.0.0 as well. Here's a paste of the callstack from the crashing thread:
|
Yes indeed. We see this crash log after a IMA Ad has played and the player is destroyed/unmounted. We are now re-evaluating our GoogleIMA integration in relation to the KVO on the avPlayerItem. Once we have a fix for our native iOS SDK we'll report back. |
@vidangelci , @webnard , we've made a change on our native iOS SDK that sits underneath the RN SDK. This should solve the crash that happens after destroying the player once an IMA ad finishes playing. |
@wvanhaevre I can confirm this fixes the crashing. Issue 1 is still happening, but we're not seeing any more crashes. Thank you! |
I'll check on the status of 'issue 1' |
@webnard , I checked our IMA setup and it seems that this snapback behaviour on iOS is only supported for DAI and for VMAP based IMA. For a simple VAST file, scheduled on our player or passed as AdDescription in the SourceDescription, that mechanism is not active. On iOS this sample has midrolls at 00:00:15 which will play if you skip over them. But for a simple VAST based AdDescription, our iOS SDK does not take into account the schedule when skipping the defined timeOffsets. This is something we could put on the roadmap. |
@wvanhaevre Thank you. The snapback issue seems to be a regression. We're not seeing the problem on previous versions. |
When you refer to previous versions where the snapback was working, is that 1.x.x versions of the react-native-theoplayer package? Maybe a suggestion for a workaround possible using the API
I will check if we can put this on our roadmap in the meantime. |
Yes, specifically it looks like we were using 1.8.1. Thank you for the advice on a workaround—we can work with that for the time being. |
We have upgraded from the 1.x.x branch to the 2.x.x branch and made all the configuration changes, with the goal of being able to use version 5.x.x of the THEO sdk. For Android, everything works great. For iOS, however, this upgrade has created a couple of issues for iOS devices when trying to play IMA ads. Here are the issues:
When seeking over a scheduled ad, the IMA plugin does not play the adbreak that was scheduled. It does play the adbreak on Android (and used to when using the 1.x.x branch with THEO-ios sdk 4.11). This problem does not occur when the scheduled ad is reached linearly (i.e. when it encounters it during normal playback) ... only when seeking past the adbreak.
After having played an ad, or after seeking past the place where a scheduled as is (even if it doesn't play because of the above issue), destroying the player crashes the app. Again, this does not happen on Android, or on the 1.x.x branch (using sdk 4.11).
To help troubleshoot, we have taken the sample react-native app and modified it to easily reproduce. it can be found at https://content.vidangel.com/theo-ad-test.zip -- after building, playing it on iOS should:
If this would be better submitted as a helpdesk ticket, let us know. We're hoping there's something that can be addressed to resolve this, though.
The text was updated successfully, but these errors were encountered: