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

Advert Preroll on iOS crashes. #616

Open
praznovskymartin opened this issue Jan 9, 2024 · 2 comments
Open

Advert Preroll on iOS crashes. #616

praznovskymartin opened this issue Jan 9, 2024 · 2 comments

Comments

@praznovskymartin
Copy link

Hi,
I have a specific case where I put preroll advertisements through ima sdk before my youtube videos.
Everything works fine except the iOS environment where it breaks on the following error:

ima3.js:551 Uncaught TypeError: Cannot read properties of undefined (reading 'length')

The sample code is directly from google-ima with the youtube 3.0.1 integrated as here. You can take it from there and see it working, except on iOS (emulation is enough).

I'm reaching out to you as there is only an issue with the youtube-tech.
Please advise.

Thanks in advance.

@mister-ben
Copy link

IMA is trying to access a nonexistent seekable property on the youtube iframe. The problem is that videojs-ima assumes that the playback tech element is a video element, which is not the case with the youtube tech.

@praznovskymartin
Copy link
Author

Hi @mister-ben ,

thanks for looking into this. Please, do you have any suggestion for a workaround?
The issue is, that is only occures for iOs environment.

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

No branches or pull requests

2 participants