How to play encrypted video file using WindowsMediaPlayer?

后端 未结 2 701
遇见更好的自我
遇见更好的自我 2021-01-16 22:16

I encrypt my .mp4 into a custom format (.opu). Now I should decrypt my file and save them into temp folder at the start of my application. and play

相关标签:
2条回答
  • 2021-01-16 22:47

    There is a way using virtualization, i.e. hooks. The idea is to hook functions like ReadFile to provide decrypted data, SetFilePointer to maintain current pointer within a "file" etc. You can view one of the examples at http://www.boxedapp.com/encrypted_video_streaming.html

    0 讨论(0)
  • 2021-01-16 22:56

    The best way would be to perform the decrypt to a stream in memory and play the video from there. That way there is never an on-disk file to steal.

    0 讨论(0)
提交回复
热议问题