I've been trying to let an embedded youtube video play automatically.
My link looks like this: https://www.youtube.com/embed/IJNR2EpS0jw?rel=o&?autoplay=1&mute=1
SO i've added the parameters ?rel=0, ?autoplay=1 ,mute=1
the Posts I've followed are :
Embedded YouTube iframes No Longer Autoplay
Autoplay embedded a YouTube Video
Is this actually possible due to the private changes of Autoplay and muted autoplay?
Yes it is possible to autoplay muted YouTube video, but the problem in your embed link is the ?(question mark you have used before autoplay, which is not letting it to autoplay).Use https://www.youtube.com/embed/IJNR2EpS0jw?rel=0&autoplay=1&mute=1, and I hope this will work.
Related
I am using Youtube IFrame Player API on my own web project.
I am trying to use it as an audio player, so I hide iframe, and add a button which call playVideo() function.
I am wondering if it is legally okay to hide everything (iframe, logo, controller, everything) and use it as audio player.
Is there any legal problem for commercial use?
I know there are various libraries and approaches to play Youtube or Vimeo videos on iOS inside WebViews. Is there a way to play such a video without the use of a WebView at all? All I want to do is have my own "show video" button and when it's pressed then the default fullscreen video player on iOS should open and play the video from YouTube or Vimeo. Is that possible?
You can try with
https://github.com/0xced/XCDYouTubeKit
as reported in this thread:
How to embed a Youtube video into my app?
guys!
I'm trying to find a media player that could playback Youtube, Vimeo and HLS URLs. It seems Plyr player (https://github.com/sampotts/plyr) is suitable, but I have some troubles with closed captions for Youtube and Vimeo videos. Although videos show captions in Youtube and Vimeo players and it is possible to toggle them, I wasn't able to load captions for Vimeo video at all and can't toggle Youtube captions using Plyr. Could you please give some examples how to solve this captions problem with Plyr? Or with another media player?
I've found out what is wrong with captions in Plyr for Vimeo videos.
Plyr.io uses Vimeo Player (https://github.com/vimeo/player.js) inside it, so it builds an iframe into our page to playback Vimeo link. This Vimeo iframe contains not only video block but also control buttons and author of the Plyr hides them with CSS trick to show only Plyr control buttons. Unfortunately, captions also get hidden with this trick.
So, as we can't access iframe content we can only:
try to come up with another CSS trick to hide only Vimeo controls and
let captions stay (but I'm not sure it is possible)
use Plyr without captions for Vimeo
do not use Plyr for Vimeo
I read this question: Mute YouTube sound in Delphi TWebBrowser but if I understand correctly, it is used for building my own JS/HTML page of preview youtube videos while I load the actual youtube video page and needs to silence it/disable its autoplay.
How can I either mute or disable the autoplay after loading the youtube video page?
I was wondering how are apps like McTube (https://itunes.apple.com/us/app/mctube-for-youtube/id559618284?mt=8) playing youtube videos. It looks like a custom MPMoviePlayerController but is that allowed?
BTW I need autoplay which I couldn't achieve with UIWebView, that's why i was wondering.
Some YouTube videos can be played back in a MPMoviePlayerController - some cannot. When you query a video through the YouTube Data API (link here) you'll get back all the content types available for a particular videos, including the Flash player, 3GPP, MP4 (if available), etc. You can use these URLs to load up a MPMoviePlayerController.
This is perfectly fine, but as I've said - not all videos are available to embed this way. Some videos (mainly ones that require adverts to be displayed) can't be put into native controllers.