Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
1e269872
X
Xts Acts
项目概览
OpenHarmony
/
Xts Acts
1 年多 前同步成功
通知
9
Star
22
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
X
Xts Acts
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
1e269872
编写于
3月 23, 2022
作者:
W
wangqing
提交者:
wanggang
3月 23, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add test cases
Signed-off-by:
N
wangqing
<
wangqing@kaihongdigi.com
>
上级
ec3ef19e
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
11 addition
and
11 deletion
+11
-11
ace/ace_standard_video/src/main/js/default/pages/video/router/index.hml
...rd_video/src/main/js/default/pages/video/router/index.hml
+1
-1
ace/ace_standard_video/src/main/js/default/pages/video/router/index.js
...ard_video/src/main/js/default/pages/video/router/index.js
+2
-2
ace/ace_standard_video/src/main/js/default/test/basicabilityapi.test.js
...rd_video/src/main/js/default/test/basicabilityapi.test.js
+8
-8
未找到文件。
ace/ace_standard_video/src/main/js/default/pages/video/router/index.hml
浏览文件 @
1e269872
...
@@ -18,5 +18,5 @@
...
@@ -18,5 +18,5 @@
controls="true" onprepared='preparedCallback' onstart='startCallback' onpause='pauseCallback'
controls="true" onprepared='preparedCallback' onstart='startCallback' onpause='pauseCallback'
onfinish='finishCallback' onerror='errorCallback' onseeking='seekingCallback' onseeked='seekedCallback'
onfinish='finishCallback' onerror='errorCallback' onseeking='seekingCallback' onseeked='seekedCallback'
ontimeupdate='timeupdateCallback' style="object-fit:fill; width:80%; height: 400px;"
ontimeupdate='timeupdateCallback' style="object-fit:fill; width:80%; height: 400px;"
onlongpress='change
_fullscreenchange' onclick="change_start_p
ause" loop='true' starttime = '3'></video>
onlongpress='change
FullScreenChange' onclick="changeStartP
ause" loop='true' starttime = '3'></video>
</div>
</div>
\ No newline at end of file
ace/ace_standard_video/src/main/js/default/pages/video/router/index.js
浏览文件 @
1e269872
...
@@ -30,7 +30,7 @@ export default {
...
@@ -30,7 +30,7 @@ export default {
errorCallback
:
function
(){
this
.
event
=
'
视频播放错误
'
;},
errorCallback
:
function
(){
this
.
event
=
'
视频播放错误
'
;},
seekingCallback
:
function
(
e
){
this
.
seekingtime
=
e
.
currenttime
;
},
seekingCallback
:
function
(
e
){
this
.
seekingtime
=
e
.
currenttime
;
},
timeupdateCallback
:
function
(
e
){
this
.
timeupdatetime
=
e
.
currenttime
;},
timeupdateCallback
:
function
(
e
){
this
.
timeupdatetime
=
e
.
currenttime
;},
change
_start_p
ause
:
function
()
{
change
StartP
ause
:
function
()
{
if
(
this
.
isStart
)
{
if
(
this
.
isStart
)
{
this
.
$element
(
'
videoId
'
).
pause
();
this
.
$element
(
'
videoId
'
).
pause
();
this
.
isStart
=
false
;
this
.
isStart
=
false
;
...
@@ -39,7 +39,7 @@ export default {
...
@@ -39,7 +39,7 @@ export default {
this
.
isStart
=
true
;
this
.
isStart
=
true
;
}
}
},
},
change
_fullscreenc
hange
:
function
()
{
//全屏
change
FullScreenC
hange
:
function
()
{
//全屏
if
(
!
this
.
isfullscreenchange
)
{
if
(
!
this
.
isfullscreenchange
)
{
this
.
$element
(
'
videoId
'
).
requestFullscreen
({
screenOrientation
:
'
default
'
});
this
.
$element
(
'
videoId
'
).
requestFullscreen
({
screenOrientation
:
'
default
'
});
this
.
isfullscreenchange
=
true
;
this
.
isfullscreenchange
=
true
;
...
...
ace/ace_standard_video/src/main/js/default/test/basicabilityapi.test.js
浏览文件 @
1e269872
...
@@ -416,18 +416,18 @@ describe('basicabilityapi', function () {
...
@@ -416,18 +416,18 @@ describe('basicabilityapi', function () {
*/
*/
it
(
'
testSetTimeout
'
,
0
,
async
function
(
done
)
{
it
(
'
testSetTimeout
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
testSetTimeout START
'
);
console
.
info
(
'
testSetTimeout START
'
);
let
start
_t
ime
=
new
Date
().
getTime
();
let
start
T
ime
=
new
Date
().
getTime
();
const
delay
=
200
;
const
delay
=
200
;
await
setTimeout
(
function
(
v1
,
v2
)
{
await
setTimeout
(
function
(
v1
,
v2
)
{
let
end
_t
ime
=
new
Date
().
getTime
();
let
end
T
ime
=
new
Date
().
getTime
();
console
.
info
(
"
[set
timeout] start_time:
"
+
start_t
ime
);
console
.
info
(
"
[set
Timeout] startTime:
"
+
startT
ime
);
console
.
info
(
"
[set
timeout] end_time:
"
+
end_t
ime
);
console
.
info
(
"
[set
Timeout] endTime:
"
+
endT
ime
);
console
.
info
(
'
[set
timeout] delay:
'
+
(
end_time
-
start_t
ime
));
console
.
info
(
'
[set
Timeout] delay:
'
+
(
endTime
-
startT
ime
));
console
.
info
(
'
[set
t
imeout] v1:
'
+
v1
);
console
.
info
(
'
[set
T
imeout] v1:
'
+
v1
);
console
.
info
(
'
[set
t
imeout] v2:
'
+
v2
);
console
.
info
(
'
[set
T
imeout] v2:
'
+
v2
);
expect
(
'
test
'
).
assertEqual
(
v1
);
expect
(
'
test
'
).
assertEqual
(
v1
);
expect
(
'
message
'
).
assertEqual
(
v2
);
expect
(
'
message
'
).
assertEqual
(
v2
);
expect
(
end
_time
-
start_t
ime
>=
delay
).
assertTrue
();
expect
(
end
Time
-
startT
ime
>=
delay
).
assertTrue
();
console
.
info
(
'
testSetTimeout END
'
);
console
.
info
(
'
testSetTimeout END
'
);
done
();
done
();
},
delay
,
'
test
'
,
'
message
'
);
},
delay
,
'
test
'
,
'
message
'
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录