Hi all im trying to load youtube/Dailymotion video using the iframe method in my phonegap app on iphone but everytime i play the video the alert message popsup saying this movie could not be played please help
Have you tried playing a non-commercial video, like a tutorial or something? If that plays you know at least that it is possible to play certain videos. There may be restrictions for playing some videos.
Related
How to detect that youtube has finished to play on iphone ? I can't see how since youtube plays in another app or web safari.
But I have seen some apps that can play youtube video one after another so it should be but then how ?
If you're talking about integrating a movie into your app, (which I believe you'd do by loading the video URI into MPMoviePlayerController), you'd listen for MPMoviePlayerPlaybackDidFinishNotification. If you clarify your question though, I may know another method.
I have seen several sites where they are able to create links to videos and they actually open on the video player of the iPhone, iPad or iPod.
This is obviously not a flash player video, and they don't seem to be embedded from youtube.
So I was wondering how can I add a video on my site that can be opened on an iPhone, and also what type of format is required for this?
Thanks
HTML5 Video works on iOS devices, see http://html5video.org
and here is a decent player plugin
http://videojs.org
I have been doing some research into what is possible, as far as I can tell
Autoplay
Possible to autostart videos on early versions of IOS http://www.codeblog.co/getting-autoplay-working-on-ios/ although this no longer works on current version (exact version it stopped working I don't know). Behaviour seems to be the same on both the iPad and iPhone?
Playing video in page
On the iPhone videos always pop out to player, its not possible to play in page.
However is possible to play videos in page on the iPad - have tried out the videos on here and they do play inline.
http://www.html5rocks.com/en/tutorials/video/basics/
Playing as intro video
May be able to do an enter now button for the site with below code to trigger
<input type="button" value="Play" onClick="document.myMovie.play()">
https://developer.apple.com/library/archive/documentation/AudioVideo/Conceptual/Using_HTML5_Audio_Video/Device-SpecificConsiderations/Device-SpecificConsiderations.html#//apple_ref/doc/uid/TP40009523-CH5-SW10
Could then on iPad make this take the full screen in page in website and use js to detect when the video finishes. Am thinking on iPhone may not be possible to detect when video finishes?
Can anyone clarify what is possible?
As much as I know intro video aren't too popular, this is a requirement for the site.
Automatic play is not possible on iOS as fas sa I'm aware. They removed support on purpose to stop people from doing it.
Any playback now requires the user to actually specify for the video to play, so providing a button to play it should be fine?
Can't you keep your video in the bundle and play it with MPMovieePlayer.Then you won't need to autoplay the video,the video will be played autometically itself.As I do the same thing.
I have an app which requires the Youtube videos and Audio Podcasts to be played inside my app and not giving out control to youtube player or safari.
What is the method that can be used to embed Youtube videos and Audio Podcasts into my iphone app?
Any tutorials about the above issue are most desirable as I am new into this.
Please give ur suggestions.
Your suggestions are welcome.
Thanks in Advance!!
If you want to embed and play videos inside your app then copy videos to your app's resource folder(.mp4 or .m4v format is desired) and use MPMoviePlayerViewController class instance to play the video. :)
I have just created and iPhone web app, which has some x264 (mp4) video files on it. When I link directly to the file on the iPhone and the user taps the link, the video player is loaded and the video starts playing.
Using the app on an Android phone causes the browser to download the video instead of just playing it. Is there a way to force a video player to just boot up and play the video not download it?
Thanks in advance.
You should know that Android is quite strict regarding the video streams that you can stream. To be able to watch a stream a video (progressively watch and download) the video container must be correctly formatted.
There are many ways to create a container suitable for progressive streaming. You can look it up here: http://groups.google.com/group/android-beginners/browse_thread/thread/2a801ce5f71b5aaf?pli=1
I have successfully created a streamable video. Try to open it from your browser: http://students.mimuw.edu.pl/~nh209484/Video000.3gp