0

I want to broadcast the video from the local server into the iPhone. I only get link which is coming from the web-service with any extension of the video.

Video can be in any format..

LIKE :@"avi",@"wmv",@"rmvb",@"flv",@"f4v",@"swf",@"mkv",@"dat",@"vob",@"mts",@"ogg",@"mpg",@"wma"

so,which player is better for my app.

1)MPMovieplaycontroller or

2)AVPlayer controller

Please help me.

Rashad
  • 11,057
  • 4
  • 45
  • 73
Sonu
  • 937
  • 1
  • 10
  • 39
  • Thnaks sunny....but i do not want to use uiwebview..i can use only MPMovieplaycontroller or AVPlayer controller – Sonu Mar 13 '14 at 04:55
  • But MPMovieplaycontroller or AVPlayer will not support all the format – Sunny Shah Mar 13 '14 at 05:02
  • is there any another player which supported all kind of format???but do not want to use web-view... – Sonu Mar 13 '14 at 05:05

4 Answers4

1

From the MPMoviePlayerController docs:

Supported Formats

This class supports any movie or audio files that already play correctly on an iPod or iPhone. This includes both streamed content and fixed-length files. For movie files, this typically means files with the extensions .mov, .mp4,.mpv, and .3gp and using one of the following compression standards:

  1. H.264 Baseline Profile Level 3.0 video, up to 640 x 480 at 30 fps. (The Baseline profile does not support B frames.)

  2. MPEG-4 Part 2 video (Simple Profile) If you use this class to play audio files, it displays a white screen with a QuickTime logo while the audio plays. For audio files, this class supports AAC-LC audio at up to 48 kHz, and MP3 (MPEG-1 Audio Layer 3) up to 48 kHz, stereo audio

You have to use 3rd Party libraries for your mentioned case

iAhmed
  • 6,556
  • 2
  • 25
  • 31
0

The built in media player won't support any of those formats.

Your only option is really a third party library like VLCKit. I've never used it, but it likely supports more formats that you require: https://wiki.videolan.org/VLCKit/

Colin Cornaby
  • 741
  • 4
  • 14
0

Though I've never tried before, but I am sure you will get help from this apple documentation.

There is a nice discussion here about your problem. Sorry for not giving a direct answer. Hope this helps.. :)

Community
  • 1
  • 1
Rashad
  • 11,057
  • 4
  • 45
  • 73
0

This AVPlayer SDK DOC may be helpful for you. But as per your requirement you have go for third part or your custom implementations.

Macrosoft-Dev
  • 2,195
  • 1
  • 12
  • 15