How to hide the bar at the top of “youtube” even when mouse hovers over it?

This answer no longer works as YouTube has deprecated the showinfo parameter. You can hide the embedded player’s title bar by adding &showinfo=0. You cannot completely remove all the links to the original video. Here is the best you can do <iframe width=”560″ height=”315″ src=”https://www.youtube.com/embed/videoid?modestbranding=1&autohide=1&showinfo=0&controls=0″ frameborder=”0″ allowfullscreen></iframe> This code will remove the title bar, YouTube … Read more

Error parsing header X-XSS-Protection – Google Chrome

It’s a known bug in the current Google Chrome and Chromium: https://bugs.chromium.org/p/chromium/issues/detail?id=807304 In the current version of their browser, the Chrome developers had restricted the X-XSS-Protection’s report field URL to the same domain origin for some security reasons. So, when you embed a video with some embed code, as it downloads from another server where … Read more

How do I find all YouTube video ids in a string using a regex?

A YouTube video URL may be encountered in a variety of formats: latest short format: http://youtu.be/NLqAF9hrVbY iframe: http://www.youtube.com/embed/NLqAF9hrVbY iframe (secure): https://www.youtube.com/embed/NLqAF9hrVbY object param: http://www.youtube.com/v/NLqAF9hrVbY?fs=1&hl=en_US object embed: http://www.youtube.com/v/NLqAF9hrVbY?fs=1&hl=en_US watch: http://www.youtube.com/watch?v=NLqAF9hrVbY users: http://www.youtube.com/user/Scobleizer#p/u/1/1p3vcRhsYGo ytscreeningroom: http://www.youtube.com/ytscreeningroom?v=NRHVzbJVx8I any/thing/goes!: http://www.youtube.com/sandalsResorts#p/c/54B8C800269D7C1B/2/PPS-8DMrAn4 any/subdomain/too: http://gdata.youtube.com/feeds/api/videos/NLqAF9hrVbY more params: http://www.youtube.com/watch?v=spDj54kf-vY&feature=g-vrec query may have dot: http://www.youtube.com/watch?v=spDj54kf-vY&feature=youtu.be nocookie domain: http://www.youtube-nocookie.com Here is a PHP function with a … Read more

How do you use youtube-dl to download live streams (that are live)?

I’ll be using this Live Event from NASA TV as an example: First, list the formats for the video: youtube-dl –list-formats https://www.youtube.com/watch\?v\=21X5lGlDOfg [youtube] 21X5lGlDOfg: Downloading webpage [youtube] 21X5lGlDOfg: Downloading m3u8 information [youtube] 21X5lGlDOfg: Downloading MPD manifest [info] Available formats for 21X5lGlDOfg: format code extension resolution note 91 mp4 256×144 HLS 197k , avc1.42c00b, 30.0fps, mp4a.40.5@ … Read more

Youtube iframe “loop” doesn’t work

Try adding the playlist parameter along with the loop. For playlist, set it’s value as the current video id. <iframe class=”embed-responsive-item”id=”ytplayer” type=”text/html” width=”640″ height=”360″ src=”https://www.youtube.com/embed/M7lc1UVf-VE?&autoplay=1&loop=1&rel=0&showinfo=0&color=white&iv_load_policy=3&playlist=M7lc1UVf-VE” frameborder=”0″ allowfullscreen></iframe> Currently, the loop parameter only works in the AS3 player when used in conjunction with the playlist parameter. To loop a single video, set the loop parameter value … Read more

How to detect when a youtube video finishes playing?

This can be done through the youtube player API: http://jsfiddle.net/7Gznb/ Working example: <div id=”player”></div> <script src=”http://www.youtube.com/player_api”></script> <script> // create youtube player var player; function onYouTubePlayerAPIReady() { player = new YT.Player(‘player’, { width: ‘640’, height: ‘390’, videoId: ‘0Bmhjf0rKe8’, events: { onReady: onPlayerReady, onStateChange: onPlayerStateChange } }); } // autoplay video function onPlayerReady(event) { event.target.playVideo(); } // … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)