Is it possible to play a movie file at the UIView level?

If so, which movie format has the best performance? And what would a simple setup look like? I have some views and I want to play a short movie inside a view (not full screen). The film is about 5 seconds long.

+2


source to share


2 answers


If it's only 5 seconds, you can fake it by simultaneously playing the audio file in the background and the animated UIImageView. Many apps do this, for example about 50 or so.



0


source


It looks like system frameworks only support playing full screen video using MPMoviePlayerController

. Supported formats are mostly different from H.264 and MPEG-4; more in the documentation .



In theory, you can run your own decode and play code, but I doubt you will get acceptable performance. (And most open source media player examples I can think of are the GPL. Not that I thought they would be much better.)

+1


source







All Articles