Open Kagami opened 6 years ago
+1, any news on this @Kagami?
ps. want to use this in videojs-record: https://github.com/collab-project/videojs-record/pull/287
Currently no.
IMHO, it should be mentioned in the README that vmsg can also be used without displaying any UI (although it's shipped with it). I only randomly discovered this when studying the vmsg.js
.
Example:
<script type="module">
import {
Recorder
} from "/lib/vmsg/vmsg.js";
window.startRecording = async function () {
if (!window.recorder) {
window.recorder = new Recorder({
wasmURL: "/lib/vmsg/vmsg.wasm"
});
await window.recorder.init();
}
window.recorder.startRecording();
}
window.stopRecording = async function () {
await window.recorder.stopRecording();
return window.recorder.blobURL;
}
</script>
There is example with custom UI in readme.
A lot of users suggest this, so better move it out and document GUI-less API properly.