is it possible to play h264-mpegts format in ios? - ios

Server transcodes the video to the h264/aac, and send video data to client simultaneously. To play and save the video data at the same time, I use mpegts as the container format, but the problem is that ios MediaPlayer can not play mpegts file.
Google said that i can used ios-build of ffmpeg to do the task, but it seem to be an overkill. is there any other ways to play mpegts in iphone using just iOS SDK?

i dont know much about ios but yes, you can play mp4(h264) videos in your ios device. i run my h264 video url to ios safari web browser, it detect the video and quicktime player start to play that video. so you can check this by entering video url (i.e:- http://yourserver.com/yourvideo.mp4) to your ios safari web browser.
NOTE :- your mp4 video should be of codec "h264". Use FFMPEG to convert videos in h264 codec

Related

How to convert HEVC videos from Photos to h264 on iOS?

I've been looking into the Apple documentation but I couldn't find anything that would allow me to convert a video recorded on an iPhone 7 (HEVC) to h264.
I need to do this because the app has a web server running and it's streaming the video to web browsers that don't support HEVC.
Is there any way to do this?

How to play webm file in iOS video player

I want to give support of webm file in iOS , but iOS doesn't support this format to play a video. i Even tried to play it through HTML5 video tag but safari doesn't support webm format in HTML5 video tag that means i also cant make it work through UIWebView. But i have seen an app that is supporting this format in their media player , that means there should be some way.
Thanks in advance for help!
Have you tried integrating MediaVLCKit by VLC?
As per VLC for an iOS device: The app claims to be able to play a veritable cornucopia of different video formats, including .mkv, .vob, .wmv, and WebM .
PFA link for VLC for iOS 2.5.1 which includes MediaVLCKit library as well.
Hope this works :)

Mp3 audio file is playing in android but not able to play in iphone

I am downloading audio file which is in mp3 format from dot net(.net) webservice to documents folder,but i am not able to play it,but the same audio file is playing in android phone when it is downloaded,what could be the reason
Maybe your android phone has a codec which your iPhone does not support.
Installing a different media player might work

how to play H264 mpegts in iphone

My server encode video files (h264/acc, mpegts based format) by ffmpeg, and send to a client in a iPhonse. The default mediaplayer of ios sdk can not play those videos. How to play H264/mpegts in Ios? Is there any opensource player for ios that can play h264/mpeg-ts file.
Thanks.
iOS support playback method called HLS (http://en.wikipedia.org/wiki/HTTP_Live_Streaming).
to convert mpeg-ts to HLS you need to segment the mpeg-ts. ffmpeg is able to convert to HLS. refer to
HTTP Live Streaming, FFMPEG & FFSERVER, and iPhone OS 3

How to play mp4 in iOS Flex application

I'm developing a Flex application to iOS devices and I can't find a way to play mp4 video inside it...
I know it works with navigate to URL command but it's open browser and then the vieo player, which is not what I'm intending...
Thanks
If you work with audio and video streaming, one of the worst limitation of AIR 2.6 for iOS is that it is not possible to stream video encoded in H.264 (and audio in AAC) inside your AIR application. AIR 2.6 for iOS supports NetConnection and NetStream but can decode only Spark, VP6, MP3, NellyMoser and Speex formats. So no H.264 and no AAC.
I've tried play .flv video fine in flex app on iOS.

Resources