Click here to Skip to main content
15,881,172 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am trying to implement a windows form application in C# and most of stuff available online... but can someone tell how to implement below mentioned process - 2 for video file Decryption and stream directly to media player without saving file to disk.

PROCESS

PROCESS - 1 Video Encryption Process
Video File >> Read file >> encryption >> save to a file


PROCESS - 2 Video Decryption and Streaming Process
Encrypted File >> Read from file >> decryption >> stream to media player (axWindowsMediaPlayer)


Total Process Used
Reading file
- file-stream
- in byte array
- frame-wise
- Buffer
Encryption / Decryption
- many ways or this and many more...
Save to file
- normal algorithm
Video Streaming
- don't know :(

I read many stuff online but this i don't found. Secondly somebody suggest not to waste time on DRM as its not safe... someone on another forum suggest to swap initial bits so that while playing it get garbage value and not play directly and implement re-swapping programmaticly.
Posted
Updated 20-Jun-13 2:02am
v4

1 solution

Everything you linked to concerns itself with encrypting/decrypting files, which must be written to other files and MediaPlayer won't play content from a buffer of your choosing in memory.

To do this without using an unencrypted file or custom media server, you'd be writing a codec to do the encryption/decryption. It would have to be part of the graph that MediaPlayer builds to play the content.

This is something that you really shouldn't use C# for. You'd be using C to do this and you can find some documentation on what's involved
here[^].
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900