videojs / videojs-youtube

YouTube playback technology for Video.js
1.12k stars 548 forks source link

Youtube.js V2.6.1 showing error in Eclipse IDE V2020-03 (4.15.0) #585

Closed rxp113895gh closed 3 years ago

rxp113895gh commented 3 years ago

Need Video.js and Video-Youtube.js to work inside Spring .jsp with form (outside) and table (inner) containers. PFE source code where configuration approach and scripting approach are both being attempted. However, Youtube.js (downloaded dist and was;nt edited by me) is showing error and causes hangup of Eclipse IDE. Attempted with Youtube.min.js but the test Youtube URL LiveStream is not showing and hence not playing in both approaches. Please help.

ProcessVideoForm.jsp.txt

gkatsev commented 3 years ago

What errors are you seeing? Are you including Video.js as well as videojs-youtube? And does Video.js get loaded first? Where are you downloading the dist file from?

rxp113895gh commented 3 years ago

What errors are you seeing? The moment I click on the file in Eclipse to see error or contents of file, causes hanging of EclipseIDE. Are you including Video.js as well as videojs-youtube? Yes And does Video.js get loaded first? Yes Where are you downloading the dist file from? Github

gkatsev commented 3 years ago

Oh, totally forgot that we include the dist file in github, heh. I'm not really sure what's happening with Eclipse. Are you getting playback in a browser? Any errors in a browser console?

rxp113895gh commented 3 years ago

2 Errors in BrowserConsole of Firefox are TypeError: state.hideToggleDeferredTask is null PictureInPictureChild.jsm:870:7 onMouseLeaveVideo resource://gre/actors/PictureInPictureChild.jsm:870 onMouseOut resource://gre/actors/PictureInPictureChild.jsm:673 handleEvent resource://gre/actors/PictureInPictureChild.jsm:267

InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable 2 PictureInPictureChild.jsm:150 get docState resource://gre/actors/PictureInPictureChild.jsm:150 onIntersection resource://gre/actors/PictureInPictureChild.jsm:345 onIntersection self-hosted:1161

rxp113895gh commented 3 years ago

ErrorInEclipse I let hangup of eclipse timeout of the Youtube.js file so that I can see the error. Please see above screenshot which shows error in every line, which means that either this is is'nt the correct file (as this has html content instead of js content) or a high level declaration is missing or I need additional config in eclipse to view/use this file. Please help.

gkatsev commented 3 years ago

Looks like your youtube.js file includes the actual github page instead of just the youtube source. Try re-downloading it from https://raw.githubusercontent.com/videojs/videojs-youtube/master/dist/Youtube.js

rxp113895gh commented 3 years ago

It appears that you have provided Ver2.6.0, please note I have already attempted with this old version and it throws above discussed errors. Please upload Ver2.6.1 as I am hoping this latest version's youtube.js and youtube.min.js may work without errors.

gkatsev commented 3 years ago

That is version 2.6.1.