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

Plugin won't work with require.js #659

Closed
DoomTay opened this issue Jun 14, 2018 · 3 comments
Closed

Plugin won't work with require.js #659

DoomTay opened this issue Jun 14, 2018 · 3 comments
Assignees

Comments

@DoomTay
Copy link

DoomTay commented Jun 14, 2018

The page will attempt to load %PATH%/video.js, which will fail, and the console will give the error Script error for "video.js", needed by: ima.

Even if a script was successfully retrieved, the console will instead give the error player.ima is not a function.

Thankfully, the fix appears to be simple; references to require('video.js') and define(['video.js'], factory) need to be changed to videojs.

Here is a minimal test case and the result of the above fix

@shawnbuso shawnbuso self-assigned this Jun 15, 2018
@shawnbuso
Copy link
Contributor

Thanks for the thorough debugging info - I'll try out this change and make sure it doesn't affect our non-require.js set-ups.

@DoomTay
Copy link
Author

DoomTay commented Jul 11, 2018

According to videojs/videojs-contrib-ads#399 (comment) the actual fix might involve something completely different

@shawnbuso shawnbuso assigned ypavlotsky and unassigned shawnbuso Jul 26, 2018
@Kiro705
Copy link
Member

Kiro705 commented Oct 18, 2019

Hi @DoomTay, was this issue resolved through videojs-contrib-ads or is it something that still requires attention for the videojs-ima team?

I'm going to close this issue but please reopen if it is something we can work on.

@Kiro705 Kiro705 closed this as completed Oct 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants