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

Dev Vs Prod #1491

Closed
tomul opened this issue Sep 8, 2014 · 18 comments
Closed

Dev Vs Prod #1491

tomul opened this issue Sep 8, 2014 · 18 comments

Comments

@tomul
Copy link

tomul commented Sep 8, 2014

Hi,
I'm trying to use videojs 4.7 with support for youtube (https://github.com/eXon/videojs-youtube). While using the development version of videojs (video.dev.js), it works, but if i use the minified (video.js) version it breaks in IE10 (windows 7) for a youtube video, when clicking the fullscreen button. The tech has the required methods, but supportsFullScreen() is never called. Instead it just throws an error: Object doesn't support property or method 'Ea'. If i add a method `videojs.Youtube.prototype.Ea= function() {
return false;
};`` it works, but i don't think this should be the fix. Using videojs 4.8, with the proper modifications for videojs-youtube, doesn't fix it, the same error is shown.
Please check: http://jsbin.com/waliv/1/edit

Thank you

@gkatsev
Copy link
Member

gkatsev commented Sep 8, 2014

Looks like a minification issue with videojs.

@heff
Copy link
Member

heff commented Sep 29, 2014

@tomul I believe @gkatsev fixed this in 4.8.4. Would you be able to check?

@heff heff added the bug label Sep 29, 2014
@tomul
Copy link
Author

tomul commented Sep 30, 2014

Thank you for the update. Just checked it now with 4.8.5, and it's not fixed, IE 10 error: Object doesn't support property or method 'Da'.

@gkatsev
Copy link
Member

gkatsev commented Sep 30, 2014

I'm actually getting an error from videojs-youtube now. Looks like the used the features feature on the tech which doesn't exist anymore.

@gkatsev
Copy link
Member

gkatsev commented Sep 30, 2014

Oh, never mind, most-up-to-date version of videojs-youtube supports it.

@gkatsev
Copy link
Member

gkatsev commented Sep 30, 2014

Grabbing vjs 4.8.5 and the latest videojs-youtube works for me: http://jsbin.com/bahahododewi/1/edit

@gkatsev
Copy link
Member

gkatsev commented Sep 30, 2014

@tomul can you retest with the latest versions of videojs and the youtube plugin? Thanks!

@tomul
Copy link
Author

tomul commented Oct 1, 2014

@gkatsev I tested with your example (http://jsbin.com/bahahododewi/1/edit), using the Windows 7 image from Modern.ie, and i'm still getting the same error, when trying to go fullscreen.

@gkatsev
Copy link
Member

gkatsev commented Oct 1, 2014

What version of IE?

@tomul
Copy link
Author

tomul commented Oct 2, 2014

IE 10, sorry for not mentioning it in the other comment.

@mmcc mmcc added the confirmed label Oct 6, 2014
@mmcc
Copy link
Member

mmcc commented Oct 6, 2014

Confirmed with IE 10 + Videojs 4.9 and the src from master of the YT tech.

@psyked
Copy link

psyked commented Dec 12, 2014

To weigh in on this, I've had a similar issue with the showTextTrack API call, and it looks like it's down to the aggressive mangling of the minified version of the code. It works in Dev, but not using the provided minified version.

@gkatsev
Copy link
Member

gkatsev commented Dec 12, 2014

showTextTrack however is meant to be a private method.

zetter added a commit to futurelearn/videojs_rails that referenced this issue Jan 20, 2015
The videojs_rails gem used to use the dev version of video JS in 4.6.1,
4.6.4 changed to use the minified version.

We’re having problems running the minified version on FutureLearn.com 
against our plugins, particularly one that adds a button to the
control bar.

It seems that it’s an ongoing problem in the video js project that
the minified version doesn’t correctly expose all the expected APIs
that plugins need and use[1][2].

We haven’t been able to confirm what API method is unavailable- it
looks to be something around overriding behaviour of elements. There
were no errors in the console so it was hard to pin down what is wrong.
We’ve tried other plugins that add buttons that are listed on the video
js project (such as the loop button[3]) and have had the same problem.

We feel that using the dev version is the easiest way to work around
this problem until video js improves their minification process[1] and
we don’t lose much since most rails projects will be using the asset
pipeline to perform minification.


[1] videojs/video.js#1586
[2] videojs/video.js#1491
[3] https://github.com/CharlotteDunois/videojs-loopbutton
@rodincave
Copy link

Hi, we have a similar issue with our videojs tech plugin ( it's a plugin to integrate peer-to-peer video streaming, you can see it working here: http://www.streamroot.io/demo?url=http%3A%2F%2Fakamai.streamroot.edgesuite.net%2Fvodorigin%2Ftos.mp4%2Fmanifest.mpd )

The issue is that you can't really create a Tech with the videoJS plugin API, and so all the other techs seem to only work with the unminified dev version of videojs, and crash with the minified version.

I am not sure the issue is exactly the same, or if I should open another issue concerning custom techs creation and videojs minifying ?

@heff
Copy link
Member

heff commented Feb 19, 2015

@rodincave we'll be addressing this to some degree in 5.0, by not mangling object properties. Otherwise we would need to get more specific about which APIs are needed and not available in the minified version.

@rodincave
Copy link

Thanks, I'll have to recheck the error to confirm this, but from our code I would say that what we are missing is the access to MediaTechController.

you can take a look at our tech provider here:
http://files.streamroot.io/release/1.0/wrappers/videojs/streamroot.wrapper.js

@norlin
Copy link

norlin commented Apr 28, 2015

Hi, have the same issue with minified videojs version.

Object doesn't support property or method 'Ea'

Referencing to the this.tech.supportsFullScreen() in player.js (uncompressed code)

@mmcc
Copy link
Member

mmcc commented Jun 5, 2015

Now that we've moved away from Closure Compiler (#1586) this shouldn't be an issue in Master.

@mmcc mmcc closed this as completed Jun 5, 2015
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 27, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

7 participants