2014-04-18 4 views
1

programme-objectif que j'ai joué un fichier mp4 en utilisant le code objectif c ,, mais son ne supportant pas les fichiers .wmv .. Comment puis-je le convertir? NSString * chemin = [[NSBundle mainBundle] pathForResource: @ "Movie-1" deType: @ "mp4" inDirectory: nil];.wmv fichier .mp4 c

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

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

par le code ci-dessus je l'ai fait pour mp4

Répondre

2

Si vous pouvez trouver how to build and incorporate the FFMPEG library into your iOS app, vous devriez être en mesure de convertir un fichiers au format .wmv ou des données dans .mp4 que vous pouvez utiliser.

+0

merci, j'ai besoin d'une autre aide, parlez-moi comment jouer .wmv dans ios sdk en utilisant l'objectif c codant – user3214087

+0

il pourrait y avoir [questions connexes qui ont des réponses utiles] (http://stackoverflow.com/questions/8401773/how-i-stream-wmv-files-to-my-ios-application) qui peut vous aider avec ceci. –

Questions connexes