简体   繁体   中英

HTML5 - WebRTC how can i record the

I have a <video id=d1 src=webm.webm> which is playing a video and audio music.

Now how can i press "record" and copy the audio stream, which i want to record lets say duration wise or from start till current or current-5second .. i mean some random way to capture the running audio like clone replay for some spectrum analyzing later.

  navigator.webkitGetUserMedia(constraints, function(stream){
    console.log("Received local stream");
    d1.src = webkitURL.createObjectURL(stream);
    localstream = stream;       
  }, function(e){
    console.log("getUserMedia error: ", e);
  });

检查此仓库,也许您会发现一些有用的东西: https : //github.com/muaz-khan/WebRTC-Experiment/tree/master/RecordRTC

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