Embed youtube comments with a live streaming video - javascript

Using some of the code I got here I was able to pull in comments on a regularly uploaded youtube video using JS and the Youtube API including title, author views and comments using the code found here:
Stackoverflow answer used
And my working example of a normally uploaded video:
Working Static Video
I have been trying to pull in a stream instead of a regularly uploaded video and the video itself is being pulled in great, but the rest of the info like the title and comments, which are the most important thing no longer show.
Example Using a Youtube Stream
I thought maybe it was because the stream was not live, but that doesn't seem to be the case since I can view the comments on a static page like any normal video its just positioned differently and I cant seem to find any info on the info having to be pulled in differently on a stream in the API.
Any help would be greatly appreciated.

Related

Embedding Youtube Videos Using Youtube API (Code not working)

Working with API's tend to be quite confusing for me. That being said I found a bit of code at
HTML Auto Embedding Recent Uploaded videos from a youtube channel
I am unable to get it to work for myself, What should I be doing to make this work successfully? I currently have code in HTML file # https://foxumtv.com/videotest.html and as you can see it simply displays white page.
Thanks for any help I do apologize I am bit of newbie when it comes to webpage scripting.
You can check in the YouTube IFrame Player API on how to Embed a YouTube player. Here, you need to use the <iframe> tag to your application in which the src URL specifies the content that the player will load as well as any other player parameters you want to set. To specify the dimension of the player, you can use the height and width parameter here.
Here is the example for that.
For more information, just check the documentation link above.
NOTE: YouTube embeds were deprecated on January 27, 2015.
Please migrate your applications to use embeds, which can
intelligently use whichever embedded player – HTML () or Flash
() – the client supports.

prevent html5 video from being downloaded through inspect element

We have a module in our project where there is an option of uploading mp4 videos , we are using html5 video tag player for playing the videos.
Problem we are facing is the privacy of the videos.At the time its very easy for the user to download our file either through right click save as video or by taking the url from the src of the video tag by inspect element.
To do so I have studied a lot, and got the idea about the blob url through youtube videos which are not accesible through anyway.
I tried to study about the blob-url, created one for my video url but still they are accessible and can be easily downloaded. Like youtube blob-url its not working.
I also studied this ques question first answer, through which i got the idea about youtube mechanism of buffering video and how the blob url shown in inspect element for youtube is a spoof.
Most importantly I want to know how can we spoof our website url so that no one can download it through inspect element. Is it possible for us to do so and how? Any link related to this please share with me.I have tried to study a lot but still missing something.
What mechanism actually youtube follow for creating blob url and to save its videos?
As your video has to arrive at the users device there is effectively no way you can stop a user intercepting and storing the file if they want to.
The typical solution to this problem is to encrypt the file and only share the key to the encrypted video with the people you want to view it. A 'bad' user can still download the video file but will not be able to play it back without the correct key.
How you get the key to the users can be very simple (you tell them it directly via some separate communication channel, like email) or more sophisticated using some sort of DRM approach.
DRM is controversial (see Firefox discussion at link below) but it is being baked into the standards with HTML5 EME (Encrypted Meida Extensions) so is becoming more mainstream. EME essentially allow a browser request a trusted (by the video producer) element in the browser/device to decode and play an encrypted video. See a good overview of EME at the second link below.
https://blog.mozilla.org/blog/2015/05/12/update-on-digital-rights-management-and-firefox/
http://www.html5rocks.com/en/tutorials/eme/basics/

Check if YouTube streaming video is live or not

I am trying to check if a (public) YouTube streaming video is live or not.
I tried to use YouTube Player JavaScript API, but I can't find anything that may help me to find out if the streaming is already started or not.
I saw the YouTube Live Streaming API, but I can't find JavaScript examples of using it.
Thanks.
You just need to do videos.list request and from response look at actualStartTime
You can use this line for example, just modify it to videos.list

Is there anything like youtube-dl, but in pure jquery or js?

Is there anything like http://rg3.github.io/youtube-dl/
which will allow to get json of youtube movie,
get direct links to various format of videos,
even with username and password, to private yt movies?
I know this is an old question but if you're still interested check out the project called node-youtube-dl. It allows you to download videos directly from YouTube and many other video providers.
If you're more interested only in the YouTube platform, I suggest you checking out node-ytdl. It is a youtube downloader written in Javascript. To be used with the command line. If you're looking to use it in your node program, check out, node-ytdl-core.
Links:
https://github.com/fent/node-youtube-dl
https://github.com/fent/node-ytdl
https://github.com/fent/node-ytdl-core

RTSP stream for QuickTime player does not show movie

Did anybody faced to problem when QuickTime cannot play streaming video and shows blue question mark instead or errors - 400 (Bad Request) and 10060 (Disconnected)? I have already tried to switch getting stream from UFP to HTTP protocol with custom port in QuickTime settings but this did not help.
And does anybody know where can i find streaming video using RTSP protocol just for testing, links to online streams (not downloaded trailers) are appreciating.
These links do not work for me due to issue mentioned above:
http://mac.sillydog.org/qt/mov/embed_stream.php
And here only last one works (among other streaming types) :
http://quicktime.tc.columbia.edu/users/iml/movies/mtest.html
Thanks, for any links and advices.
The best way I've found to get rtsp streams to play in a browser window is using Apple's own javascript. I've tried hard coding tags with exactly the same parameters, and the embed tags won't work, but the js will. The js file itself is called AC_Quicktime.js. Just google it and you should be able to find a link to it easily enough. Use the one from Apple's site to make sure that you're getting unmodified code. Load that in your HTML page, and in your body, insert this:
<script>
QT_WriteOBJECT(*url*,*width*,*height*,*ActiveX Version*,*parameter1*,*value1*,*parameter2*,*value2*,*parameter3*,*value3*);
</script>
This will draw the appropriate code in whatever container you place the script. ActiveX Version can be an empty string (''), and as many parameters as you like can be entered one after the other. Apple has fairly exhaustive documentation on their website for all their stuff.Apple Developer Connection.
Hope that was marginally helpful.
it appears that this was just a security issue and stream was stopped by private policy of Quick Time so to turn on the ability to play RTSP stream in Safari i needed to check some option in browser settings ...
http://www.niehs.nih.gov/news/video/help/

Categories