fix(view) getMediaElement: play video/audio

This commit is contained in:
coderaiser 2019-08-14 15:15:45 +03:00
parent 66e0acbb8f
commit b93e759ba6

View file

@ -296,12 +296,9 @@ async function getMediaElement(src) {
return [null, element];
}
function check(src, callback) {
function check(src) {
if (typeof src !== 'string')
throw Error('src should be a string!');
if (typeof callback !== 'function')
throw Error('callback should be a function');
}
/**