title: Consume RTMP ans distribute via WebSocket
body: <p>I have a Linux PC which streams video (with audio) from a webcam to an <strong>RTMP</strong> server (nginx). The nginx <strong>RTMP</strong> server then converts the video into <strong>HLS</strong> and that HLS stream is shown on the browsers. Everything works good. The only problem is the delay due to the HLS protocol (10-20 seconds depending on the HLS playlist size).</p>
  
  <p>I am looking for an <strong>alternative</strong> to HLS which can run on most of the major browsers. I can not use <strong>WebRTC</strong> due to the lack of audio, I can not use <strong>flash</strong> due to lack of support is mobile browsers. So my question is, is there any way to <strong>consume</strong> the <strong>RTMP</strong> stream, then <strong>distribute</strong> it via <strong>WebSocket</strong> and <strong>play on</strong> modern WebSocket supported <strong>browsers</strong> without any additional plugin? I am using <strong>ffmpeg</strong> to publish the RTMP stream from the Linux PC. If required, the source stream can easily be changed to other live streaming protocol like RTSP. So if there's some other solution which can solve this problem without RTMP, I can go for that too.</p>
  
  <p>Thanks in advance.</p>