Mjpeg VLC and HTTP Streaming

前端 未结 3 2007
小蘑菇
小蘑菇 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 18:57

    I can't get firefox to play my stream (though chrome plays it okay). For VLC I set the buffer to 0 ms (under advanced open options) and it seemed to work from there, though my data rate is killing it.

    0 讨论(0)
  • 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

    0 讨论(0)
  • 2021-02-10 19:12

    Have you tried this:

    Response.Buffer = false;
    Response.BufferOutput = false;
    

    Or some variation of those?

    0 讨论(0)
提交回复
热议问题