mediastreamsource

Play MediaRecorder chunks in MediaSource HTML5 — video frozen

走远了吗. 提交于 2019-11-29 15:34:04
问题 I have this simple code to get chunks of video stream and play them in MediaSource. I see video, but sometimes it stops. It may work for few seconds or for few minutes. But finally it stops at some moment. chrome://media-internals/ shows no errors. What is wrong here? navigator.getUserMedia = navigator.getUserMedia || navigator.webkitGetUserMedia || navigator.mozGetUserMedia || navigator.msGetUserMedia; var mediaSource = new MediaSource(); var constraints = { "audio": true, "video": {