DirectShow.Net play MP4 video stream from http responce using C#

1.4k views Asked by At

DirectShow.Net contains really nice player example such DxPlay-2008. I used this example to make couple of video playbacks within a single application. But Unfortunately I can't find how to render video from network stream like following: http://www.sampledomain.com:2057/?stream=video&path=media/backbunny.mp4

How to tell FilterGraph to use a network stream instead of a file? Thanks.

P.S. may be somebody could advise what C# player could play network video stream? I tried VLC in C#. it is almost perfect apart of the issue with libvlc_media_player_stop() function, if I create couple of players and put them on the same form, this function hangs sometimes. I used is nVlc wrapper.

1

There are 1 answers

6
pepOS On BEST ANSWER

You need to install a Network Source Filter, for example this, It will allow you to set a network stream as source. The downside is that you have to paid for it. There are other filters options, I've tried some of them and the have their issues. Datastead is the most stable I've found.

Once you have installed you can use it from Directshow.net using the filter's GUID in the usual way.