diff --git a/ace/ace_standard_video/src/main/js/default/pages/video/router/index.hml b/ace/ace_standard_video/src/main/js/default/pages/video/router/index.hml index 3ee30fe25c4afa89370d315130cc2ce1cdd7735d..0eea99966f66c602b8cd59d7d1c860eddd64a100 100644 --- a/ace/ace_standard_video/src/main/js/default/pages/video/router/index.hml +++ b/ace/ace_standard_video/src/main/js/default/pages/video/router/index.hml @@ -18,5 +18,5 @@ controls="true" onprepared='preparedCallback' onstart='startCallback' onpause='pauseCallback' onfinish='finishCallback' onerror='errorCallback' onseeking='seekingCallback' onseeked='seekedCallback' ontimeupdate='timeupdateCallback' style="object-fit:fill; width:80%; height: 400px;" - onlongpress='change_fullscreenchange' onclick="change_start_pause" loop='true' starttime = '3'> + onlongpress='changeFullScreenChange' onclick="changeStartPause" loop='true' starttime = '3'> \ No newline at end of file diff --git a/ace/ace_standard_video/src/main/js/default/pages/video/router/index.js b/ace/ace_standard_video/src/main/js/default/pages/video/router/index.js index c2be7ca5bb2769da5b9316ef716c5330946011fa..742699ca7b68febf0d002de64c95d161a33a544b 100644 --- a/ace/ace_standard_video/src/main/js/default/pages/video/router/index.js +++ b/ace/ace_standard_video/src/main/js/default/pages/video/router/index.js @@ -30,7 +30,7 @@ export default { errorCallback:function(){ this.event = '视频播放错误';}, seekingCallback:function(e){ this.seekingtime = e.currenttime; }, timeupdateCallback:function(e){ this.timeupdatetime = e.currenttime;}, - change_start_pause: function() { + changeStartPause: function() { if(this.isStart) { this.$element('videoId').pause(); this.isStart = false; @@ -39,7 +39,7 @@ export default { this.isStart = true; } }, - change_fullscreenchange: function() {//全屏 + changeFullScreenChange: function() {//全屏 if(!this.isfullscreenchange) { this.$element('videoId').requestFullscreen({ screenOrientation : 'default' }); this.isfullscreenchange = true; diff --git a/ace/ace_standard_video/src/main/js/default/test/basicabilityapi.test.js b/ace/ace_standard_video/src/main/js/default/test/basicabilityapi.test.js index 30a2227ab7e09d108653cab5f0adaf459b1e6224..b901a960c2b967cfaad168a88815f28bd66c51fb 100644 --- a/ace/ace_standard_video/src/main/js/default/test/basicabilityapi.test.js +++ b/ace/ace_standard_video/src/main/js/default/test/basicabilityapi.test.js @@ -416,18 +416,18 @@ describe('basicabilityapi', function () { */ it('testSetTimeout', 0, async function (done) { console.info('testSetTimeout START'); - let start_time = new Date().getTime(); + let startTime = new Date().getTime(); const delay = 200; await setTimeout(function (v1, v2) { - let end_time = new Date().getTime(); - console.info("[settimeout] start_time: " + start_time); - console.info("[settimeout] end_time: " + end_time); - console.info('[settimeout] delay: ' + (end_time - start_time)); - console.info('[settimeout] v1: ' + v1); - console.info('[settimeout] v2: ' + v2); + let endTime = new Date().getTime(); + console.info("[setTimeout] startTime: " + startTime); + console.info("[setTimeout] endTime: " + endTime); + console.info('[setTimeout] delay: ' + (endTime - startTime)); + console.info('[setTimeout] v1: ' + v1); + console.info('[setTimeout] v2: ' + v2); expect('test').assertEqual(v1); expect('message').assertEqual(v2); - expect(end_time - start_time >= delay).assertTrue(); + expect(endTime - startTime >= delay).assertTrue(); console.info('testSetTimeout END'); done(); }, delay, 'test', 'message');