My use case is kinda basic. According to the URL a user inputs, I want to have the good player displayed, that varies according to the input of course.
For instance, inputting http://www.youtube.com/watch?v=rv5OwTiBEiQ would display the preview of the Youtube player. The same goes with Dailymotion, Yahoo!, Vimeo, Justin.tv, Myspace...
Do you know is any Javascript plugin does this ? Ideally, it'd be based on Prototype.
In the Youtube case, all you have to do is get the video id of the url and put this in the follow URL:
http://img.youtube.com/vi/{video-id}/1.jpg
Then you have the link to the youtube preview image!
Related
I want to embed a YouTube video in a web page, without showing the title of the video.
However, according to the YouTube Frame API, since 2018, the showinfo parameter isn't sufficient for that, as even when it is set to 0, the title of the video will still be showed when playback starts.
It is still possible to completely hide the title of the video, as online quiz website Kahoot ( https://create.kahoot.it/ ) manage to do it. However, I am completely unable to understand how they do it, or replicate it.
To try it, just create an account, start a quiz (they call it Kahoot) and insert a YouTube video. When previewing it, the title doesn't ever show!
How can I replicate this?
I want get video URL of my live channel
I know https://www.youtube.com/embed/live_stream?channel=UChF0CL3nPrnp7q3hfbvVg6A is permanent video URL but i need
URL like https://youtu.be/xxxfd or https://www.youtube.com/watch?v=xxxxdfd
Is there any API to get it programmatically
1)Use the youtube site to find the video you want.
2)Click the 'Share' button below the video.
3)Click the 'Embed' button next to the link they show you.
4)Copy the iframe code given and paste it into the html of your web page.
`https://viid.su/rfCYe`
the problem is on this page, well when people click on the embeded youtube video, I dont want the video to play there, but redirect people on youtube so they can interact, such as like or subscibe.
If you don't want the player to be usable, you can just put an image with a link on top of it.
Also there is the solution of using Youtubes Player API :
https://developers.google.com/youtube/iframe_api_reference#Requirements
I'm pretty sure you can catch the click of the user and redirect with javascript ( window.location or something like that )
I've just loaded video.js plugin on my wordpress site.
I would like to find out if it is possible to disable the links 'get video url' etc. I want to add videos from youtube but don't want users linking to the unlisted videos. The videos are for a course and I don't want them shared. only users on the course get access to the videos.
But, the YOUTUBE logo still needs to be active due to their terms and conditions.
Many thanks
I have a slider which allows video embeds ( currently by pasting in iframe code from youtube/vimeo etc). The problem I have is that the video needs to pause the slider when the user clicks the video play button and also pause the video when the slider moves to the next frame.
It seems that I will need to use the vimeo and youtube API's to get access to the information and control I want. I have looked through the API's and I think I can probably get this happening; however my problem is that from what I've seen so far the youtube API tends to work off the video ID, whereas the Vimeo API seems to work with iFrames, but I need to have a consistent input for end users in that I want to say "Paste the video ID here" OR "Paste the Iframe here" OR "Paste the video URL here" ... I don't want to have to ask them for an ID from youtube for one video and an Iframe from Vimeo for the next one.
I know how to manipulate the data to make the two consistent but I'd rather avoid that if at all possible. What is the best approach to get programatic access to Youtube and vimeo so that I can achieve access to play and pause and know whether a video is playing or not.
there is a small widget on https://github.com/dachcom-digital/jquery-video with which you can archive the things you're asking for.
You can ask the user for the video ID and render some HTML container. Then you apply the widget and can pause, play, etc. the videos with one consistent API.
Hope this helps.