开发者

Streaming Video With DirectX C#

开发者 https://www.devze.com 2023-02-19 00:48 出处:网络
I\'ve created a program (C#) to play a开发者_运维百科n audio/video file using DirectX library. Here\'s the code:

I've created a program (C#) to play a开发者_运维百科n audio/video file using DirectX library. Here's the code:

Video vid = new Video("K:\video_collection\vid1.avi");
vid.Owner = this;
vid.Play();

The codes works perfectly but what I actually wanted is how to play video over a web. At first, I think I just change the parameter for the constructor like this:

Video vid = new Video("http://localhost:88/server/vids/vid1.avi");

But, it cause the application crash. So how can I make it work? using another library maybe?

Thanks for your time.


Have you tried using the FromUrl() method?

http://msdn.microsoft.com/en-us/library/bb324192.aspx

0

精彩评论

暂无评论...
验证码 换一张
取 消