I need to build my own video player with AVFoundation and came way far. But the player only plays the .mp4-file in simulator. No video shows up if I run the app on a device. But if I use a .mov-file all is working fine. Also when I play the video file inside an MPMoviePLayer the file shows up and plays well.
the .mp4-file uses
AVC Coding, 2.048 x 1.536 AAC, 48000 Hz, Stereo (L R)
The audio track is empty.
Does anybody know why? Here is some sample code.