improve jsb-videoplayer (#7797)

This commit is contained in:
Knox
2020-11-18 17:46:45 +08:00
committed by GitHub
parent f26782ac2c
commit f3471dae3a
2 changed files with 6 additions and 3 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
{
"ver": "1.0.1",
"ver": "1.0.0",
"importer": "video-clip",
"imported": true,
"uuid": "2be36297-9abb-4fee-8049-9ed5e271da8a",
+5 -2
View File
@@ -26,7 +26,7 @@
'use strict';
if (cc.internal.VideoPlayer) {
const { EventType } = cc.internal.VideoPlayer;
let vec3 = cc.Vec3;
@@ -105,6 +105,9 @@ if (cc.internal.VideoPlayer) {
}
getDuration () {
if (!this.video) {
return -1;
}
return this.video.duration();
}
@@ -245,4 +248,4 @@ if (cc.internal.VideoPlayer) {
this._forceUpdate = false;
}
}
}
}