James Janke
2005-11-21 15:55:11 UTC
Hi,
I have been struggling with this problem for months and finally broke
down and decided to post a question. I'm working with C#.NET, Windows
Media Player 10 control, and Windows Forms.
I need to read a wmv into a memorystream, then play the memorystream
from a WindowsMedia Player control embedded in a windows form
application. The problem is the windows media player control only
takes a URL as an input for a file. I need to read a file from memory.
Step 1. Read WMV into a MemoryStream object. DONE
Step 2. Decrypt WMV in MemoryStream object DONE
Step 3. Add memorystream handle to Windows Media Player Control ???
I have read about inheriting the ActiveX IStream interface and creating
a new class to handle this, no idea how to do that. I've also read
about UrlMonikers and Named pipes. I don't think this is a solution
for me.
http://tjworld.net/software/IMemoryStream/
This looks promising, but i have no idea how to implement this into the
Windows Media Control for windows forms.
I need some direction for this tough problem. Any help would be
greatly appreciated!
Thanks,
James
I have been struggling with this problem for months and finally broke
down and decided to post a question. I'm working with C#.NET, Windows
Media Player 10 control, and Windows Forms.
I need to read a wmv into a memorystream, then play the memorystream
from a WindowsMedia Player control embedded in a windows form
application. The problem is the windows media player control only
takes a URL as an input for a file. I need to read a file from memory.
Step 1. Read WMV into a MemoryStream object. DONE
Step 2. Decrypt WMV in MemoryStream object DONE
Step 3. Add memorystream handle to Windows Media Player Control ???
I have read about inheriting the ActiveX IStream interface and creating
a new class to handle this, no idea how to do that. I've also read
about UrlMonikers and Named pipes. I don't think this is a solution
for me.
http://tjworld.net/software/IMemoryStream/
This looks promising, but i have no idea how to implement this into the
Windows Media Control for windows forms.
I need some direction for this tough problem. Any help would be
greatly appreciated!
Thanks,
James