[Webkit-unassigned] [Bug 85851] MediaStream API: support MediaStreamRecorder implementation

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Dec 17 09:49:31 PST 2020


https://bugs.webkit.org/show_bug.cgi?id=85851

--- Comment #81 from Marcel <marcel at cammio.com> ---
We are trying to get the MediaRecoder working with only one video tag. 

So for playing the GUM stream we do:
const stream = await navigator.mediaDevices.getUserMedia(constraints);
const video = document.querySelector('video#gum');
video.srcObject = stream;


After we have created a recoding with the MediaRecoder we want to play the video we do the following: 
const superBuffer = new Blob(recordedBlobs, {type: 'video/webm'});
video.srcObject = null;
video.src = window.URL.createObjectURL(superBuffer);
video.play();

We see a short flickering in the video playout but the stream form the GUM keeps playing 


We have found the link explaining we should us the Blob directly on the src of the video tag in case of Safari https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/srcObject
const superBuffer = new Blob(recordedBlobs, {type: 'video/webm'});
video.srcObject = superBuffer;
video.play();

We also see a short flickering in the video playout but the stream form the GUM keeps playing 


With two video tags where one is for recoding (the GUM stream) and the other for playing the recoding (blob). Then it works fine.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20201217/34a3e55a/attachment.htm>


More information about the webkit-unassigned mailing list