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

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

Shrink a YouTube video to responsive width

You can make YouTube videos responsive with CSS. Wrap the iframe in a div with the class of “videowrapper” and apply the following styles: .videowrapper { float: none; clear: both; width: 100%; position: relative; padding-bottom: 56.25%; padding-top: 25px; height: 0; } .videowrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; } … Read more

YouTube API to fetch all videos on a channel

You need to look at the YouTube Data API. You will find there documentation about how the API can be accessed. You can also find client libraries. You could also make the requests yourself. Here is an example URL that retrieves the latest videos from a channel: https://www.googleapis.com/youtube/v3/search?key={your_key_here}&channelId={channel_id_here}&part=snippet,id&order=date&maxResults=20 After that you will receive a JSON … Read more

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