Im new in all this amazing thing called front end and i′m already working in a project but i need a little help with this:
So the thing is that the user could enter a youtube URL in a text box and a embed iframe video is automatically generated from it so he can preview it without reloading the page
How could i do that?
a have found 2 separated scripts that could help but i can′t make them work at the same time:
Extract YouTube video ID from URL:
[http://codepen.io/catmull/pen/cnpsK][1]
YouTube Embed Optimized with JavaScript:
[http://codepen.io/SitePoint/pen/CKFuh][1]
Any ideas?
It will really help me if you answer with a live example :)
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…