MDL-67381 atto_recordrtc: Fix the preview issue after recording

This commit is contained in:
Shamim Rezaie
2019-12-09 20:28:32 +11:00
parent 4fa17ba99b
commit 07cc70073b
4 changed files with 5 additions and 2 deletions
@@ -95,6 +95,7 @@ M.atto_recordrtc.commonmodule = {
handle_stop: function() {
// Set source of audio player.
var blob = new window.Blob(cm.chunks, {type: cm.mediaRecorder.mimeType});
cm.player.set('srcObject', null);
cm.player.set('src', window.URL.createObjectURL(blob));
// Show audio player with controls enabled, and unmute.
File diff suppressed because one or more lines are too long
@@ -95,6 +95,7 @@ M.atto_recordrtc.commonmodule = {
handle_stop: function() {
// Set source of audio player.
var blob = new window.Blob(cm.chunks, {type: cm.mediaRecorder.mimeType});
cm.player.set('srcObject', null);
cm.player.set('src', window.URL.createObjectURL(blob));
// Show audio player with controls enabled, and unmute.
@@ -93,6 +93,7 @@ M.atto_recordrtc.commonmodule = {
handle_stop: function() {
// Set source of audio player.
var blob = new window.Blob(cm.chunks, {type: cm.mediaRecorder.mimeType});
cm.player.set('srcObject', null);
cm.player.set('src', window.URL.createObjectURL(blob));
// Show audio player with controls enabled, and unmute.