简体   繁体   English

如何使用WindowsMediaPlayer播放加密的视频文件?

[英]How to play encrypted video file using WindowsMediaPlayer?

I encrypt my .mp4 into a custom format ( .opu ). 我将.mp4加密为自定义格式( .opu )。 Now I should decrypt my file and save them into temp folder at the start of my application. 现在,我应该解密我的文件,并在应用程序开始时将它们保存到temp文件夹中。 and play them using WindowsMediaPlayer control in C#. 并使用C#中的WindowsMediaPlayer控件播放它们。 So I have the risk of stealing my files from temp folder. 因此,我有从临时文件夹中窃取文件的风险。 What is the best way to prevent stealing my files? 防止窃取文件的最佳方法是什么? How to play encrypted video file using WindowsMediaPlayer? 如何使用WindowsMediaPlayer播放加密的视频文件?

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. 这样一来,磁盘上的文件就不会被窃取。

There is a way using virtualization, ie 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 这个想法是挂钩函数,如ReadFile来提供解密的数据,SetFilePointer来维护“文件”中的当前指针等。您可以在http://www.boxedapp.com/encrypted_video_streaming.html上查看示例之一

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在不使用外部视频文件的情况下播放文件 - How to play file without using external video file 如何离线保护以加密的html格式播放加密视频,视频源是azure媒体云服务器? - How to protect play encrypted video as saved html format offline , video source is azure media cloud server? 播放加密的mp3文件 - Play an encrypted mp3 file 如何使用 AES (Rijndael) 检查文件是否加密 - How to Check If File is Encrypted using AES (Rijndael) 如何解密使用 RijndaelManaged 加密的文件 - How to Decrypt File which was encrypted using RijndaelManaged 使用WMPLib.WindowsMediaPlayer在c#winforms中恢复暂停的mp3文件 - resume a paused mp3 file in c# winforms using WMPLib.WindowsMediaPlayer 如何在WinRT的D盘上播放视频文件? - How to Play Video File On D Drive In WinRT? 如何在实例化(克隆)屏幕上使用视频播放器统一播放视频? - How to play video using video player on a instantiated(cloned) screen in unity? 如何在不登录的情况下使用window azure媒体服务器的文件路径防止播放视频? - How to prevent play video using file path of window azure media server without login? 是否可以使用asp.net中的文件流播放视频文件? - Is it possible to play video file using file stream in asp.net?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM