mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
fix(view) getMediaElement: play video/audio
This commit is contained in:
parent
66e0acbb8f
commit
b93e759ba6
1 changed files with 1 additions and 4 deletions
|
|
@ -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');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue