Comments (3)
So I have dug deep today but didn't reach that far. Initially I think the library doesn't have the method supportsFullScreen hence the error I think. I added that and added the function exitFullScreen as well and tried out a bunch of codes trying to exit the fullScreen but couldn't make it work to my dismay. I have this right now actually:
videojs.Youtube.prototype.supportsFullScreen = function() {
return true;
};
videojs.Youtube.prototype.exitFullScreen = function() {
try {
alert('aasse!')
// this.ytplayer.vjsTech.el_.webkitExitFullScreen();
// this.player_.el_.webkitExitFullScreen();
// this.player_.exitFullWindow();
// this.dispose();
// this.ytplayer.nextVideo();
// document.webkitCancelFullScreen();
// this.ytplayer.stopVideo();
// this.ytplayer.clearVideo();
// this.ytplayer.unloadModule();
} catch(error) {
alert(error);
}
};
But I don't know what to write inside exitFullScreen. I also saw this after researching some more:
https://groups.google.com/forum/#!topic/youtube-api-gdata/fygn23jMbdE but I don't know if it's still accurate.
Where to go to now? Much help would be appreciated.
from videojs-youtube.
It looks like nobody has a solution over the Internet. I'll keep this open until we find something.
from videojs-youtube.
This is the farthest that I could find
https://groups.google.com/forum/#!msg/youtube-api-gdata/7ioV74oFX84/U8zQ7-Yl9w4J
with one of the YouTube devs replying to it. But the thread has been there for quite a while now and the developer never got back to mention if they went ahead with the update or not.
Also can't find a way to contact them.
from videojs-youtube.
Related Issues (20)
- CORS Blocks videos
- fullscreen height
- video.js and video-youtube.js throwing "Cannot read properties of undefined (reading 'videojs')" when loading page
- Not working with newer versions of video.js HOT 2
- Youtube live video freeze the computer and Chrome
- Remove video-setup and add source via JS
- there's no canplay or canplaythrough for Youtube?
- Unexpected token in example HOT 2
- Full example? HOT 2
- onended function not working on YouTube embed HOT 1
- `videojs.extend` has been deprecated HOT 3
- unmet peer video.js@"5.x || 6.x || 7.x": found 8.0.4
- Dual package hazard on video.js and videojs-youtube ? Doesn't work with CDNs direct import in browsers- both jsdelvr and esm.sh
- `YT is not defined` in a small number of cases HOT 2
- How to play hls video HOT 4
- youtube shorts support HOT 1
- Subtitles are showing
- YouTube Ads not being shown
- Advert Preroll on iOS crashes. HOT 2
- Playlist won't work on mobile HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from videojs-youtube.