1

I have played a mp4 file using Objective-C code, but it's not supporting for .wmv files. How can I convert it?

NSString *path = [[NSBundle mainBundle] pathForResource:@"Movie-1" ofType:@"mp4" inDirectory:nil];

// Create custom movie player
moviePlayer = [[[CustomMoviePlayerViewController alloc] initWithPath:path] autorelease];

// Show the movie player as modal
[self presentModalViewController:moviePlayer animated:YES];

by above code I have done for mp4.

Cœur
  • 37,241
  • 25
  • 195
  • 267

1 Answers1

2

If you can figure out how to build and incorporate the FFMPEG library into your iOS app, you should be able to convert a .wmv formatted files or data into .mp4 that you can use.

Community
  • 1
  • 1
Michael Dautermann
  • 88,797
  • 17
  • 166
  • 215
  • thank u,, i need another help, tel me how to play .wmv in ios sdk using objective c coding – user3214087 Apr 18 '14 at 09:15
  • there might be [related questions that have useful answers](http://stackoverflow.com/questions/8401773/how-can-i-stream-wmv-files-to-my-ios-application) that can help you with this. – Michael Dautermann Apr 18 '14 at 10:33