简体   繁体   中英

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

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.

PS 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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM