mediastream-to-webm
mediastream-to-webm copied to clipboard
Convert MediaStreams to live WebM streams.
I am trying to create a .webm file locally but when I try to play it it will not work. var fs = require('fs'); window.name = 'popup'; function onTabStream(stream) {...
``` navigator.mediaDevices.getUserMedia({ video: true, audio: true }) .then((stream) => { let video = document.getElementById('video'); encodedStream = EncodedStream(stream, { mimeType: 'video/webm;codecs=opus,vp8;' }); decodedStream = DecodedStream({ videoElement: video, mimeType: 'video/webm;codecs=opus,vp8;' }); encodedStream.on('data',...
Do you got any working example (server and client side) so I can see that? I'm not sure from the docs how to use this and where to use it.
How to replicate: ```Javascript const mtw = require('mediastream-to-webm); navigator.mediaDevices.getUserMedia({ video: true, audio: true}).then(stream => { let encodedStream = mtw.EncodedStream(stream); encodedStream.on('data', (data) => { console.log(data); }); }); ``` then minimize your...
The ability to decode the webm stream in NodeJS serverside would be useful. This would allow me to pipe the data directly to an output webm file.