In HTML <video>
object, I cannot play a video recorded by the video.js-record library. I checked the Blob returned in the player.recordedData
variable and wanted to assign it to the object like mentioned in the example from the Documentation:
recordedVideo.src = createObjURL(this.player.recordedData);
It fails with an error on this specific line:
Unhandled Promise Rejection: TypeError: Type error
--
(I am already checking the use of URL
vs webkitURL
using this function:
function createObjURL ( file ) {
if ( window.webkitURL ) {
return window.webkitURL.createObjectURL( file );
} else if ( window.URL && window.URL.createObjectURL ) {
return window.URL.createObjectURL( file );
} else {
return null;
}
}
and it seems to use the right version.)