This question already has answers here:
YouTube iframe player API - OnStateChange not firing
(2 answers)
Closed 9 years ago.
Today, my iPad app, which uses the YouTube JavaScript iframe API, stopped working. On investigation, it appears that the player object is bollixed. For example, player.getCurrentTime is undefined (similar to other player members).
Another iPad app (Jasmine) also appears to be incapable of playing YouTube videos.
It's Push Wednesday, which makes me suspect that something's been broken at the server end.
I see that this issue has been reported and acknowledged: https://code.google.com/p/gdata-issues/issues/detail?id=4706
Related
I know this question seems to have been asked before, but it apparently hasn't (at least on stack overflow). I get the following error using Youtube iOS helper api for certain videos when I attempt to embed them in my iOS app.
"This video contains content from VEVO. It is restricted from playback on certain sites."
The error below is fairly self explanatory... and it appears that there is nothing you can do about it. I can live with that. But there is more to it.
The reason I am puzzled by this message (and it refers to any VEVO music video on Youtube) is that the videos play on Android. Someone else has also had this problem... stated here: https://github.com/youtube/youtube-ios-player-helper/issues/52
If there is a restriction on other sites - and there may well be - it should be restricted on both iOS and Android devices. I find it highly odd that the restriction applies to only iOS.
Can someone advise?
Cheers!
add this in your playerVars #"origin" :#"http://www.youtube.com" it will work. I had the same problem.. i solved it using playvars
According to this answer,
...iOS devices use iframe so they basically embed. Android devices that
use player API can check syndicated.
From the documentation: if a video is embeddable, it can be embedded into a webpage, and if it is syndicated, it can be played outside of youtube.com.
A video that is embeddable but not syndicatable will play on YouTube.com or on other sites that embed the YouTube player, but may not play on devices such as mobile phones or TVs (source). Therefore, if a video plays on Android but not on iOS, it's possible that it's syndicateable but not embeddable, in which case it's working as intended.
I'm working on a Chrome extension and would like to know if there are still any remains of Flash use in videos on Youtube?
When I checked two weeks ago Flash was still in use for live stream, but when I checked today I was happy to see that the live stream is now also using HTML5.
Now I can't take a risk so I would like to know please if there is still any Flash use somewhere in videos in the YouTube world?
I already spent hours of making my extension to work with the Flash player, so I will save it in the side for just in case, and would like to get rid of all that unnecessary code.
The Flash player has been officially deprecated as of January 27, 2015. So as a developer, you really shouldn't use that API anymore. However, protected videos such as movies or TV shows that use the RTMPE streaming protocol still use the Flash player as a form of DRM.
At the time of writing, the Ghostbusters movie and Twister TV series use the Flash player.
This question already has answers here:
How to obtain a feed of comments entered through the 'chat' box during a YouTube live broadcast?
(3 answers)
Closed 7 years ago.
How do I get the chat content of a Youtube live event in Java? (not the comment of a normal video)
The API doesn't have connection to live chat at this moment. We are hoping to get that content incorporated into API soon.
I have already posted two questions
Question 1 Question 2
last week, but no answer worked. I am working on an app(I have completed the UI),
I have to show the youtube videos in the app, just like the youtube app. that is to show youtube videos in the full mode and in half screen too.
Some Body told me to use MPMoviePlayerViewController , but the problem with this player is, that it takes the url of videos like "www.xyz.com/videos.mov". It doesn't play youtube videos. I went to Youtube Developer site. There is lot of information, but all that is for some scripting(javascript using iframe) language, that I don't understand.
Its been a week, and am stuck with this youtube API(I tried to read each and every thing on youtube developer blog, but most of the stuff is related to javascript, which I don't know).
There are few codes available over stackoverflow and Github, which are very old, and are not working now.
If any body know anything then please help. Thanks in advance
I've managed to play YouTube videos with MPMoviePlayerController using LBYouTubeView Library.
Which is a good and upto date library. Basically it extract "www.xyz.com/videos.mov" kind of URL from YouTube and plays in a MPMoviePlayerController. You can also set the quality of the video (low,medium,high) etc. This library comes with a sample project you can test.
See http://jsfiddle.net/rCGSB/4/.
Using the seekTo method from the YouTube iframe api does not work in mobile Safari under iOS 6 using an iPad 3.
The video just starts playing at the beginning. Once the video is playing, the seekTo method works. However, as stated in https://developers.google.com/youtube/iframe_api_reference#Playback_controls for the seekTo method:
"Seeks to a specified time in the video. If the player is paused when the function is called, it will remain paused. If the function is called from another state (playing, video cued, etc.), the player will play the video."
So, the video should start playing at the specified time even if it's not playing. And since I am interacting with a click, the disabled autoplay under mobile Safari should not be the problem.
It works fine on all desktop browsers I tested (FF, Safari, Chrome under Mac OS).
Does this work at all under iOS? Feel free to edit and update the fiddle.
Being able to playback from a certain point in time in a YouTube video is something I've been interested in for a long time.
I've found that this bit of iframe-based markup works, at least on iOS 6:
<iframe width="480" height="270" src="http://www.youtube.com/embed/n1-OKPmQyh4?fs=1&feature=oembed&start=533" frameborder="0" allowfullscreen="1"></iframe>
The trick is the "start" parameter in the URL you're using for the iframe
I've also wanted the "autoplay" parameter to work, but from my understanding Apple prevents that from happening so as to avoid excess data charges for users viewing web content.