mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-03 01:12:42 +08:00
Removes wx API invocations for JSB projects. (#2668)
* Removes wx API invocation for JSB projects. * sys.openURL fix for JSB. * touches, mouse, keyboard capabilities check.
This commit is contained in:
@@ -29,6 +29,12 @@ class HTMLVideoElement extends HTMLMediaElement {
|
||||
constructor() {
|
||||
super('video')
|
||||
}
|
||||
|
||||
canPlayType(type) {
|
||||
if (type === 'video/mp4')
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = HTMLVideoElement;
|
||||
|
||||
Reference in New Issue
Block a user