How to get all comments on a YouTube video?

Believe me it works https://www.googleapis.com/youtube/v3/commentThreads?key=******************&textFormat=plainText&part=snippet&videoId=kffacxfA7G4&maxResults=50 Key will be provided by the google developer console and 50 denotes 50 comments in form of a json, video id is the id of the video. For any type of queries comment below.

How can I get the actual video URL of a YouTube live stream?

You need to get the HLS m3u8 playlist files from the video’s manifest. There are ways to do this by hand, but for simplicity I’ll be using the youtube-dl tool to get this information. I’ll be using this live stream as an example: https://www.youtube.com/watch?v=_Gtc-GtLlTk First, get the formats of the video: ➜ ~ youtube-dl –list-formats … Read more

How to play YouTube content on tvOS

UIWebView and MPMoviePlayerController are not available for tvOS. Our next option is to use AVPlayer to play YouTube videos. AVPlayer cannot play a YouTube video from a standard YouTube URL, ie. https://www.youtube.com/watch?v=8To-6VIJZRE. It needs a direct URL to the video file. Using HCYoutubeParser we can accomplish exactly that. Once we have the URL we need, … Read more

cURL error 60: SSL certificate prblm: unable to get local issuer certificate [duplicate]

If you are on Windows using Xampp, I am stealing a better answer from here, would be helpful if Google shows you this question first. Download and extract for cacert.pem here (a clean file format/data) https://curl.haxx.se/docs/caextract.html Put it in : C:\xampp\php\extras\ssl\cacert.pem Add this line to your php.ini curl.cainfo = “C:\xampp\php\extras\ssl\cacert.pem” restart your webserver/Apache

Methods of removing the youtube iframe api console error – “blocked a frame with origin…” in chrome console

I had a similar error where the JS error was: Blocked a frame with origin “https://www.youtube.com” from accessing a frame with origin “http://www.yourdomain.com”. The frame requesting access has a protocol of “https”, the frame being accessed has a protocol of “http”. Protocol/Protocols must match, YouTube has CORS (Cross Origin Resource Sharing) enabled to allow across … Read more

Removing black borders 4:3 on youtube thumbnails

YouTube offers images that don’t have the 4:3 ratio black strips. To get a 16:9 video thumbnail with no black strips, try one of these: http://img.youtube.com/vi/<insert-youtube-video-id-here>/mqdefault.jpg http://img.youtube.com/vi/<insert-youtube-video-id-here>/maxresdefault.jpg The first one mqdefault comes as a 320×180 pixel image. The second one maxresdefault comes as a 1500×900 pixel image, so it would need resizing to use as … Read more

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