Mjpeg VLC and HTTP Streaming

前端 未结 3 2006
小蘑菇
小蘑菇 2021-02-10 18:18

I\'m generating a MJpeg Stream and trying to stream it to VLC and play it there.

The code:

        public void SendMultiPartData(String contentType, Func         


        
3条回答
  •  情书的邮戳
    2021-02-10 19:01

    Jose, I had exactly same problem. Firefox plays my stream but VLC doesnt. I went thru so many ways to figure this out including debugging VLC source code, and got no where. btw My (REST) URL looks like http://server:port/livevideo/xyz Then, I thought I should try http://server:port/livevideo/xyz.mjpeg And guess what, VLC started to play video! I think VLC might need a little hint more than content type to figure out it is a mjpeg stream. Hope this helps.

    Cindy

提交回复
热议问题