Send chunks from MediaRecorder to server and play it back in the browser

后端 未结 3 970
温柔的废话
温柔的废话 2021-02-09 06:28

With the following code in NodeJS I\'m able to play a webm file served from server:

app.get(\'/video\', function(req, res){
    res.writeHead(200,{
        \'Con         


        
3条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-09 06:49

    Thanks to key help from Brad's FB sample, I was able to put together a working version that sends an audio/video stream to icecast, which then can easily be played back in a browser. Since the audio and video codecs are directly copied, it's only 5 - 10 seconds of lag.

    Here's the link:

    https://gitlab.com/jamie/icecast-web-source-client

提交回复
热议问题