bugfix
This commit is contained in:
parent
c8f26ec8e8
commit
575c5dc3b2
@ -128,7 +128,9 @@ bricks.Camera = class extends bricks.Popup {
|
|||||||
}
|
}
|
||||||
videorecorder_stop(){
|
videorecorder_stop(){
|
||||||
return new Promise((resolve) => {
|
return new Promise((resolve) => {
|
||||||
|
console.log('go here!')
|
||||||
this.mediaRecorder.onstop = () => {
|
this.mediaRecorder.onstop = () => {
|
||||||
|
console.log('stoped');
|
||||||
const blob = new Blob(this.recordedChunks, { type: 'video/webm' });
|
const blob = new Blob(this.recordedChunks, { type: 'video/webm' });
|
||||||
const url = URL.createObjectURL(blob);
|
const url = URL.createObjectURL(blob);
|
||||||
resolve({ blob, url });
|
resolve({ blob, url });
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user