I record a video in my app and write it it to the temp directory to allow the user to share it through UIActivityViewController. The video can successfully be played back in
I had the same problem when I ran my app on the Simulator. However it was working as expected when I ran the app on a real device.