How to play video in the iPhone without using MPMoviePlayerController? - iphone

Is this possible to play any video file without using of MPMoviePlayerController in iPhone?

Yes. You can also use a UIWebView. See this answer.

You can use a web view but you can play only those videos present in the bundle, you cannot play any format in iPhone as some of the formats are not supported.
See this link

Related

iPhone M3U Audio Streaming without quicktime

I have M3U audio url for a radio in my iPhone application. I would like to play that without use of default quick time player.
Is there any way to implement this?
Thanks in advance.
You can use AVPlayer in the AVFoundation framework.

how to display youtube video and mp4 file in same project using webview iphone?

how to display youtube video and mp4 file in same project using uiwebview iphone?
Perhaps these will help:
http://apiblog.youtube.com/2009/02/youtube-apis-iphone-cool-mobile-apps.html
http://learningtheworld.eu/2009/youtube-embed/
http://iphoneincubator.com/blog/audio-video/how-to-play-youtube-videos-within-an-application

iPhone SDK - Play Audio/Video through UIWebView

I want to know if I could play a mp3 file or mp4 (video) file through an UIWebView by loading a simple url request. I have already tried sending the UIWebView to a video link (e.g. http://google.com/blah.mp4) but it will flash a quick QuickTime logo and show a black screen. However in MobileSafari it streams fine. Is there anyway to play a media file through an UIWebView??!
Thanks,
Kevin
Use the HTML5 <audio> tag.
Linda

Playing video in a Customview like iPad feature

When we call MPMoviePlayerController.play method, the movie player is opened and the video is played in a separate full screen. is it possible to play a video in a custom view, that is I have an image added on a view, when this image is clicked, the image has to be removed and the video has to play there itself as the feature in iPad.
Non-full screen playback of video is possible in iPhone OS 3.2 for iPad.
If you are porting an application that uses the MPMoviePlayerController class of the Media Player framework, you must change your code if you want it to run in iPhone OS 3.2. The old version of this class supports only full-screen playback using a simplified interface. The new version supports both full- and partial-screen playback and offers you more control over various aspects of the playback.
On the full-screen question, see this section of the iPad Programming Guide for further information, and this property of MPMoviePlayerController specifically.
Bear in mind that you can still only play one video at a time, and that this is only currently possible for iPad.
Not using MPMoviePlayerController, no.
You might be able to achieve this using a custom movie player, but I haven't seen one in the wild yet, and I don't know how it would be done.

Can you play a <video> inside the page with Safari iPhone?

I would like to play a video from inside the rendered page with an iPhone/Safari.
When I put a <video>, it's always opened and played in a separate full-screen Quicktime window. Is there a way to play the video directly from the page?
(a similar question Play video not in full screen mode suggests it's not possible)
Yes, it's possible to play video within the browser, but as you said, in the Quicktime fullscreen application, and the HTML5 sound API is not available (in iPhone OS 3.x).
But in the coming iPhone OS 4, it will be possible (used for iAd), so you will have to wait until this summer (or play with the beta SDK now).
No, with the current SDK compatible media will always play in full screen and there is no way to avoid that.