markcellus / youtube-video-js Goto Github PK
View Code? Open in Web Editor NEWA light-weight web component for YouTube videos
License: MIT License
A light-weight web component for YouTube videos
License: MIT License
When adding ?playsinline=1
to YouTube URL, playsinline
gets extracted as the videoID
due to an error in your Regular Expression. Please fix the issue so I can append the query param to the URL. Thanks :)
So previous querying previous reference to it undefined, causing an app crash
There is a problem with loadYTScript
https://github.com/markcellus/youtube-video-js/blob/master/src/youtube-video.ts#L208
This function expects that window.onYouTubeIframeAPIReady is not touched before. And doesn't handle it.
Looks like google analytics sets this value, which makes this package not working.
https://www.googletagmanager.com/gtag/js?id=G-8P5GQ3C7YC
nit: returning value from Promise is a little bit confusing for read
https://github.com/markcellus/youtube-video-js/blob/master/src/youtube-video.ts#L218
... that puts videos in full swing (for public and for debugging purposes).
Consider replacing with another approach to load libraries.
Per Video MediaEvent spec, we should at least support the most common media events:
message from developed console : Failed to execute 'play' on 'HTMLMediaElement': API can only be initiated by a user gesture.
this is my code:
var videoEl = document.getElementById("slider-bg-video");
var player = new YoutubeVideo({
el: videoEl,
customWrapperClass : "video-wrapper flex-video widescreen"
});
videoEl.load().then(function () {
videoEl.play();
});
all same with demo code.
Not necessarily a bug with this package but when attempting to load Youtube video API in IE 11, Youtube never fires the onError or even the onReadyState callbacks
I find no control except start, stop, pause etc. How can I make a video fullscreen?
Add some simple events to determine the video's state.
By using the www.youtube-nocookie.com
domain instead of www.youtube.com
for embeds we could use YouTube’s privacy-enhanced mode with less tracking.
Haven't worked on this repo/package for a while since I'm not too sure if people even still need this. Although, I'm curious if it's worthwhile to continue maintaining it.
If you'd like to see this package continue development, please upvote this thread (:+1: ) and if not feel free to downvote (:-1:). And please feel free to leave a comment on your vote if you have something additional to add. Thanks a lot for your support and looking forward to hearing from you!
I tryed run the examples folders they return this erros I'm at Windows. How to solve not big experience on nodejs modules
module from “http://localhost:3000/youtube-video-js/dist/youtube-video.js” was blocked because of a disallowed
Add Vimeo videos using the new Vimeo API
http://developer.vimeo.com/player/js-api
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.