mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-20 23:52:40 +08:00
16 lines
282 B
JavaScript
16 lines
282 B
JavaScript
const HTMLMediaElement = require('./HTMLMediaElement');
|
|
|
|
class HTMLVideoElement extends HTMLMediaElement {
|
|
constructor() {
|
|
super('video')
|
|
}
|
|
|
|
canPlayType(type) {
|
|
if (type === 'video/mp4')
|
|
return true;
|
|
return false;
|
|
}
|
|
}
|
|
|
|
module.exports = HTMLVideoElement;
|