0

My iOS app downloading encrypted mp4 file from server to my document folder.

I'll decrypt mp4 to my Memory and play video from memory.

For security, my app should not make decrypted mp4 file to doc folder.

How can I play Video from memorystream?

I'm trying with FFMpeg..or is there any other solutions?

Can I customize avio_open2() and avformat_open_input()?

Please help me....

1 Answers1

2

Set AVFormatContext->pb to a self-created AVIOContext that wraps your memory stream. Most important are the read_packet() and seek() function callbacks, which your application should implement to do actual packet reading and seeking for the (mp4) demuxer. You can also look at earlier questions along the same path.

Community
  • 1
  • 1
Ronald S. Bultje
  • 10,828
  • 26
  • 47