Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
08b3bba4
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
08b3bba4
编写于
4月 12, 2022
作者:
N
NOBUGGERS
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fdSrc可靠性测试 Signed-off-by: NOBUGGERS <ruanmeng@huawei.com>
Signed-off-by:
N
NOBUGGERS
<
ruanmeng@huawei.com
>
上级
1a89cc13
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
287 addition
and
117 deletion
+287
-117
multimedia/media/media_js_standard/audioPlayer/src/main/js/test/PlayerLocalTestAudioAPI.test.js
...ioPlayer/src/main/js/test/PlayerLocalTestAudioAPI.test.js
+74
-6
multimedia/media/media_js_standard/videoPlayer/src/main/js/test/VideoPlayerAPICallbackTest.test.js
...layer/src/main/js/test/VideoPlayerAPICallbackTest.test.js
+213
-111
未找到文件。
multimedia/media/media_js_standard/audioPlayer/src/main/js/test/PlayerLocalTestAudioAPI.test.js
浏览文件 @
08b3bba4
...
...
@@ -44,23 +44,23 @@ describe('PlayerLocalTestAudioAPI', function () {
let
fileDescriptor
=
undefined
;
beforeAll
(
async
function
()
{
await
getFileDescriptor
(
AUDIO_SOURCE
).
then
((
res
)
=>
{
fileDescriptor
=
res
;
});
console
.
info
(
'
beforeAll case
'
);
})
beforeEach
(
function
()
{
beforeEach
(
async
function
()
{
isTimeOut
=
false
;
await
getFileDescriptor
(
AUDIO_SOURCE
).
then
((
res
)
=>
{
fileDescriptor
=
res
;
});
console
.
info
(
'
beforeEach case
'
);
})
afterEach
(
function
()
{
afterEach
(
async
function
()
{
await
closeFileDescriptor
(
AUDIO_SOURCE
);
console
.
info
(
'
afterEach case
'
);
})
afterAll
(
async
function
()
{
await
closeFileDescriptor
(
AUDIO_SOURCE
);
console
.
info
(
'
afterAll case
'
);
})
...
...
@@ -232,6 +232,7 @@ describe('PlayerLocalTestAudioAPI', function () {
nextStep
(
mySteps
,
done
);
}
else
if
(
mySteps
[
0
]
==
ERROR_STATE
)
{
mySteps
.
shift
();
nextStep
(
mySteps
,
done
);
}
else
if
(
mySteps
[
0
]
==
END_STATE
)
{
console
.
info
(
'
case release player error
'
);
}
else
{
...
...
@@ -242,6 +243,73 @@ describe('PlayerLocalTestAudioAPI', function () {
});
}
/* *
* @tc.number : SUB_MEDIA_PLAYER_AudioPlayer_SRC_API_0100
* @tc.name : fd is wrong
* @tc.desc : Reliability Test
* @tc.size : MediumTest
* @tc.type : Reliability
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_PLAYER_AudioPlayer_SRC_API_0100
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
fileDescriptor
.
fd
=
-
1
;
let
mySteps
=
new
Array
(
ERROR_STATE
,
END_STATE
);
initAudioPlayer
();
setCallback
(
mySteps
,
done
);
audioPlayer
.
fdSrc
=
fileDescriptor
;
})
/* *
* @tc.number : SUB_MEDIA_PLAYER_AudioPlayer_SRC_API_0200
* @tc.name : offset is -1
* @tc.desc : Reliability Test
* @tc.size : MediumTest
* @tc.type : Reliability
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_PLAYER_AudioPlayer_SRC_API_0200
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
fileDescriptor
.
offset
=
1
;
let
mySteps
=
new
Array
(
SRC_STATE
,
PLAY_STATE
,
PAUSE_STATE
,
PLAY_STATE
,
END_STATE
);
initAudioPlayer
();
setCallback
(
mySteps
,
done
);
audioPlayer
.
fdSrc
=
fileDescriptor
;
})
/* *
* @tc.number : SUB_MEDIA_PLAYER_AudioPlayer_SRC_API_0300
* @tc.name : length is -1
* @tc.desc : Reliability Test
* @tc.size : MediumTest
* @tc.type : Reliability
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_PLAYER_AudioPlayer_SRC_API_0300
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
fileDescriptor
.
length
=
-
1
;
let
mySteps
=
new
Array
(
SRC_STATE
,
PLAY_STATE
,
PAUSE_STATE
,
PLAY_STATE
,
END_STATE
);
initAudioPlayer
();
setCallback
(
mySteps
,
done
);
audioPlayer
.
fdSrc
=
fileDescriptor
;
})
/* *
* @tc.number : SUB_MEDIA_PLAYER_AudioPlayer_SRC_API_0400
* @tc.name : fdSrc is undefined
* @tc.desc : Reliability Test
* @tc.size : MediumTest
* @tc.type : Reliability
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_PLAYER_AudioPlayer_SRC_API_0400
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
let
mySteps
=
new
Array
(
ERROR_STATE
,
END_STATE
);
initAudioPlayer
();
setCallback
(
mySteps
,
done
);
audioPlayer
.
fdSrc
=
undefined
;
})
/* *
* @tc.number : SUB_MEDIA_PLAYER_AudioPlayer_Play_API_0100
* @tc.name : 01.pause->play
...
...
multimedia/media/media_js_standard/videoPlayer/src/main/js/test/VideoPlayerAPICallbackTest.test.js
浏览文件 @
08b3bba4
...
...
@@ -26,6 +26,8 @@ describe('VideoPlayerAPICallbackTest', function () {
const
HEIGHT_VALUE
=
480
;
const
DURATION_TIME
=
10034
;
const
CREATE_EVENT
=
'
create
'
;
const
SETURL_EVENT
=
'
setUrl
'
;
const
SETFDSRC_EVENT
=
'
setfdSrc
'
;
const
SETSURFACE_EVENT
=
'
setDisplaySurface
'
;
const
GETDESCRIPTION
=
'
getTrackDescription
'
;
const
PREPARE_EVENT
=
'
prepare
'
;
...
...
@@ -53,12 +55,12 @@ describe('VideoPlayerAPICallbackTest', function () {
beforeAll
(
async
function
()
{
console
.
info
(
'
beforeAll case
'
);
await
getFileDescriptor
(
VIDEO_SOURCE
).
then
((
res
)
=>
{
fileDescriptor
=
res
;
});
})
beforeEach
(
async
function
()
{
await
getFileDescriptor
(
VIDEO_SOURCE
).
then
((
res
)
=>
{
fileDescriptor
=
res
;
});
await
toNewPage
(
page
);
page
=
(
page
+
1
)
%
2
;
await
msleep
(
1000
).
then
(()
=>
{},
failureCallback
).
catch
(
catchCallback
);
...
...
@@ -69,11 +71,11 @@ describe('VideoPlayerAPICallbackTest', function () {
afterEach
(
async
function
()
{
await
clearRouter
();
await
closeFileDescriptor
(
VIDEO_SOURCE
);
console
.
info
(
'
afterEach case
'
);
})
afterAll
(
async
function
()
{
await
closeFileDescriptor
(
VIDEO_SOURCE
);
console
.
info
(
'
afterAll case
'
);
})
...
...
@@ -119,7 +121,31 @@ describe('VideoPlayerAPICallbackTest', function () {
eventEmitter
.
emit
(
steps
[
0
],
videoPlayer
,
steps
,
done
);
}
}
function
setOnCallback
(
videoPlayer
,
steps
,
done
)
{
videoPlayer
.
on
(
'
playbackCompleted
'
,
()
=>
{
console
.
info
(
'
case playbackCompleted success
'
);
});
videoPlayer
.
on
(
'
bufferingUpdate
'
,
(
infoType
,
value
)
=>
{
console
.
info
(
'
case bufferingUpdate success infoType is
'
+
infoType
);
console
.
info
(
'
case bufferingUpdate success value is
'
+
value
);
});
videoPlayer
.
on
(
'
startRenderFrame
'
,
()
=>
{
console
.
info
(
'
case startRenderFrame success
'
);
});
videoPlayer
.
on
(
'
videoSizeChanged
'
,
(
width
,
height
)
=>
{
console
.
info
(
'
case videoSizeChanged success
'
);
});
videoPlayer
.
on
(
'
error
'
,
(
error
)
=>
{
console
.
info
(
`case error called, errMessage is
${
error
.
message
}
`
);
if
(
steps
[
0
]
==
ERROR_EVENT
)
{
done
();
}
});
}
eventEmitter
.
on
(
CREATE_EVENT
,
(
videoPlayer
,
steps
,
done
)
=>
{
steps
.
shift
();
media
.
createVideoPlayer
((
err
,
video
)
=>
{
...
...
@@ -136,10 +162,18 @@ describe('VideoPlayerAPICallbackTest', function () {
}
});
});
eventEmitter
.
on
(
SETSURFACE_EVENT
,
(
videoPlayer
,
steps
,
done
)
=>
{
eventEmitter
.
on
(
SETFDSRC_EVENT
,
(
videoPlayer
,
steps
,
done
)
=>
{
steps
.
shift
();
videoPlayer
.
fdSrc
=
fileDescriptor
;
toNextStep
(
videoPlayer
,
steps
,
done
);
});
eventEmitter
.
on
(
SETURL_EVENT
,
(
videoPlayer
,
steps
,
done
)
=>
{
steps
.
shift
();
videoPlayer
.
url
=
fdHead
+
fileDescriptor
.
fd
;
toNextStep
(
videoPlayer
,
steps
,
done
);
});
eventEmitter
.
on
(
SETSURFACE_EVENT
,
(
videoPlayer
,
steps
,
done
)
=>
{
steps
.
shift
();
videoPlayer
.
setDisplaySurface
(
surfaceID
,
(
err
)
=>
{
if
(
typeof
(
err
)
==
'
undefined
'
)
{
expect
(
videoPlayer
.
state
).
assertEqual
(
'
idle
'
);
...
...
@@ -156,7 +190,7 @@ describe('VideoPlayerAPICallbackTest', function () {
eventEmitter
.
on
(
PREPARE_EVENT
,
(
videoPlayer
,
steps
,
done
)
=>
{
steps
.
shift
();
videoPlayer
.
url
=
fdHead
+
fileDescriptor
.
fd
;
setOnCallback
(
videoPlayer
,
steps
,
done
)
;
videoPlayer
.
prepare
((
err
)
=>
{
if
(
typeof
(
err
)
==
'
undefined
'
)
{
expect
(
videoPlayer
.
state
).
assertEqual
(
'
prepared
'
);
...
...
@@ -366,6 +400,74 @@ describe('VideoPlayerAPICallbackTest', function () {
});
});
/* *
* @tc.number : SUB_MEDIA_VIDEO_PLAYER_fdSrc_CALLBACK_0100
* @tc.name : fd is wrong
* @tc.desc : Reliability Test
* @tc.size : MediumTest
* @tc.type : Reliability
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_VIDEO_PLAYER_fdSrc_CALLBACK_0100
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
fileDescriptor
.
fd
=
-
1
;
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETFDSRC_EVENT
,
SETSURFACE_EVENT
,
ERROR_EVENT
,
PREPARE_EVENT
,
ERROR_EVENT
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
})
/* *
* @tc.number : SUB_MEDIA_VIDEO_PLAYER_fdSrc_CALLBACK_0200
* @tc.name : offset is -1
* @tc.desc : Reliability Test
* @tc.size : MediumTest
* @tc.type : Reliability
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_VIDEO_PLAYER_fdSrc_CALLBACK_0200
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
fileDescriptor
.
offset
=
-
1
;
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETFDSRC_EVENT
,
SETSURFACE_EVENT
,
PREPARE_EVENT
,
PLAY_EVENT
,
PAUSE_EVENT
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
})
/* *
* @tc.number : SUB_MEDIA_VIDEO_PLAYER_fdSrc_CALLBACK_0300
* @tc.name : length is -1
* @tc.desc : Reliability Test
* @tc.size : MediumTest
* @tc.type : Reliability
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_VIDEO_PLAYER_fdSrc_CALLBACK_0300
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
fileDescriptor
.
length
=
-
1
;
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETFDSRC_EVENT
,
SETSURFACE_EVENT
,
PREPARE_EVENT
,
PLAY_EVENT
,
PAUSE_EVENT
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
})
/* *
* @tc.number : SUB_MEDIA_VIDEO_PLAYER_fdSrc_CALLBACK_0400
* @tc.name : fileDescriptor is undefined
* @tc.desc : Reliability Test
* @tc.size : MediumTest
* @tc.type : Reliability
* @tc.level : Level2
*/
it
(
'
SUB_MEDIA_VIDEO_PLAYER_fdSrc_CALLBACK_0400
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
fileDescriptor
=
undefined
;
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETFDSRC_EVENT
,
SETSURFACE_EVENT
,
ERROR_EVENT
,
PREPARE_EVENT
,
ERROR_EVENT
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
})
/* *
* @tc.number : SUB_MEDIA_VIDEO_PLAYER_PREPARE_CALLBACK_0100
* @tc.name : 01.create->prepare
...
...
@@ -377,7 +479,7 @@ describe('VideoPlayerAPICallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_PLAYER_PREPARE_CALLBACK_0100
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETSURFACE_EVENT
,
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SET
URL_EVENT
,
SET
SURFACE_EVENT
,
PREPARE_EVENT
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
})
...
...
@@ -393,7 +495,7 @@ describe('VideoPlayerAPICallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_PLAYER_PREPARE_CALLBACK_0200
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETSURFACE_EVENT
,
PREPARE_EVENT
,
PLAY_EVENT
,
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SET
URL_EVENT
,
SET
SURFACE_EVENT
,
PREPARE_EVENT
,
PLAY_EVENT
,
PREPARE_EVENT
,
ERROR_EVENT
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
})
...
...
@@ -409,7 +511,7 @@ describe('VideoPlayerAPICallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_PLAYER_PREPARE_CALLBACK_0300
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETSURFACE_EVENT
,
PREPARE_EVENT
,
PLAY_EVENT
,
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SET
URL_EVENT
,
SET
SURFACE_EVENT
,
PREPARE_EVENT
,
PLAY_EVENT
,
PAUSE_EVENT
,
PREPARE_EVENT
,
ERROR_EVENT
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
})
...
...
@@ -425,7 +527,7 @@ describe('VideoPlayerAPICallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_PLAYER_PREPARE_CALLBACK_0400
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETSURFACE_EVENT
,
PREPARE_EVENT
,
PLAY_EVENT
,
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SET
URL_EVENT
,
SET
SURFACE_EVENT
,
PREPARE_EVENT
,
PLAY_EVENT
,
STOP_EVENT
,
PREPARE_EVENT
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
})
...
...
@@ -441,8 +543,8 @@ describe('VideoPlayerAPICallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_PLAYER_PREPARE_CALLBACK_0500
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETSURFACE_EVENT
,
PREPARE_EVENT
,
PLAY_EVENT
,
RESET_EVENT
,
PREPARE_EVENT
,
RELEASE_EVENT
,
END_EVENT
);
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SET
URL_EVENT
,
SET
SURFACE_EVENT
,
PREPARE_EVENT
,
PLAY_EVENT
,
RESET_EVENT
,
SETURL_EVENT
,
PREPARE_EVENT
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
})
...
...
@@ -457,7 +559,7 @@ describe('VideoPlayerAPICallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_PLAYER_PREPARE_CALLBACK_0600
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETSURFACE_EVENT
,
PREPARE_EVENT
,
PLAY_EVENT
,
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SET
URL_EVENT
,
SET
SURFACE_EVENT
,
PREPARE_EVENT
,
PLAY_EVENT
,
SEEK_EVENT
,
SEEK_TIME
,
PREPARE_EVENT
,
ERROR_EVENT
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
})
...
...
@@ -473,7 +575,7 @@ describe('VideoPlayerAPICallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_PLAYER_PREPARE_CALLBACK_0700
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETSURFACE_EVENT
,
PREPARE_EVENT
,
PLAY_EVENT
,
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SET
URL_EVENT
,
SET
SURFACE_EVENT
,
PREPARE_EVENT
,
PLAY_EVENT
,
SEEK_MODE_EVENT
,
SEEK_TIME
,
PREPARE_EVENT
,
ERROR_EVENT
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
})
...
...
@@ -489,7 +591,7 @@ describe('VideoPlayerAPICallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_PLAYER_PREPARE_CALLBACK_0800
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETSURFACE_EVENT
,
PREPARE_EVENT
,
PLAY_EVENT
,
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SET
URL_EVENT
,
SET
SURFACE_EVENT
,
PREPARE_EVENT
,
PLAY_EVENT
,
SETVOLUME_EVENT
,
VOLUME_VALUE
,
PREPARE_EVENT
,
ERROR_EVENT
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
})
...
...
@@ -505,7 +607,7 @@ describe('VideoPlayerAPICallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_PLAYER_PREPARE_CALLBACK_0900
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETSURFACE_EVENT
,
PREPARE_EVENT
,
PLAY_EVENT
,
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SET
URL_EVENT
,
SET
SURFACE_EVENT
,
PREPARE_EVENT
,
PLAY_EVENT
,
SETSPEED_EVENT
,
SPEED_VALUE
,
PREPARE_EVENT
,
ERROR_EVENT
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
})
...
...
@@ -521,7 +623,7 @@ describe('VideoPlayerAPICallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_PLAYER_PREPARE_CALLBACK_1000
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETSURFACE_EVENT
,
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SET
URL_EVENT
,
SET
SURFACE_EVENT
,
PREPARE_EVENT
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
})
...
...
@@ -537,7 +639,7 @@ describe('VideoPlayerAPICallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_PLAYER_PREPARE_CALLBACK_1100
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETSURFACE_EVENT
,
PREPARE_EVENT
,
GETDESCRIPTION
,
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SET
URL_EVENT
,
SET
SURFACE_EVENT
,
PREPARE_EVENT
,
GETDESCRIPTION
,
PREPARE_EVENT
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
})
...
...
@@ -553,7 +655,7 @@ describe('VideoPlayerAPICallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_PLAYER_PREPARE_CALLBACK_1200
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETSURFACE_EVENT
,
PREPARE_EVENT
,
PREPARE_EVENT
,
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SET
URL_EVENT
,
SET
SURFACE_EVENT
,
PREPARE_EVENT
,
PREPARE_EVENT
,
PREPARE_EVENT
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
})
...
...
@@ -584,7 +686,7 @@ describe('VideoPlayerAPICallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_PLAYER_PLAY_CALLBACK_0200
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETSURFACE_EVENT
,
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SET
URL_EVENT
,
SET
SURFACE_EVENT
,
PREPARE_EVENT
,
PLAY_EVENT
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
})
...
...
@@ -600,7 +702,7 @@ describe('VideoPlayerAPICallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_PLAYER_PLAY_CALLBACK_0300
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETSURFACE_EVENT
,
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SET
URL_EVENT
,
SET
SURFACE_EVENT
,
PREPARE_EVENT
,
PLAY_EVENT
,
PAUSE_EVENT
,
PLAY_EVENT
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
})
...
...
@@ -616,7 +718,7 @@ describe('VideoPlayerAPICallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_PLAYER_PLAY_CALLBACK_0400
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETSURFACE_EVENT
,
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SET
URL_EVENT
,
SET
SURFACE_EVENT
,
PREPARE_EVENT
,
PLAY_EVENT
,
STOP_EVENT
,
PLAY_EVENT
,
ERROR_EVENT
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
})
...
...
@@ -632,7 +734,7 @@ describe('VideoPlayerAPICallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_PLAYER_PLAY_CALLBACK_0500
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETSURFACE_EVENT
,
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SET
URL_EVENT
,
SET
SURFACE_EVENT
,
PREPARE_EVENT
,
PLAY_EVENT
,
RESET_EVENT
,
PLAY_EVENT
,
ERROR_EVENT
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
})
...
...
@@ -648,7 +750,7 @@ describe('VideoPlayerAPICallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_PLAYER_PLAY_CALLBACK_0600
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETSURFACE_EVENT
,
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SET
URL_EVENT
,
SET
SURFACE_EVENT
,
PREPARE_EVENT
,
PLAY_EVENT
,
SEEK_EVENT
,
SEEK_TIME
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
})
...
...
@@ -664,7 +766,7 @@ describe('VideoPlayerAPICallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_PLAYER_PLAY_CALLBACK_0700
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETSURFACE_EVENT
,
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SET
URL_EVENT
,
SET
SURFACE_EVENT
,
PREPARE_EVENT
,
PLAY_EVENT
,
SEEK_MODE_EVENT
,
SEEK_TIME
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
})
...
...
@@ -680,7 +782,7 @@ describe('VideoPlayerAPICallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_PLAYER_PLAY_CALLBACK_0800
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETSURFACE_EVENT
,
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SET
URL_EVENT
,
SET
SURFACE_EVENT
,
PREPARE_EVENT
,
PLAY_EVENT
,
SETVOLUME_EVENT
,
VOLUME_VALUE
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
})
...
...
@@ -696,7 +798,7 @@ describe('VideoPlayerAPICallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_PLAYER_PLAY_CALLBACK_0900
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETSURFACE_EVENT
,
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SET
URL_EVENT
,
SET
SURFACE_EVENT
,
PREPARE_EVENT
,
PLAY_EVENT
,
SETSPEED_EVENT
,
SPEED_VALUE
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
})
...
...
@@ -712,7 +814,7 @@ describe('VideoPlayerAPICallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_PLAYER_PLAY_CALLBACK_1000
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETSURFACE_EVENT
,
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SET
URL_EVENT
,
SET
SURFACE_EVENT
,
PLAY_EVENT
,
ERROR_EVENT
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
})
...
...
@@ -728,7 +830,7 @@ describe('VideoPlayerAPICallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_PLAYER_PLAY_CALLBACK_1100
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETSURFACE_EVENT
,
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SET
URL_EVENT
,
SET
SURFACE_EVENT
,
PREPARE_EVENT
,
GETDESCRIPTION
,
PLAY_EVENT
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
})
...
...
@@ -744,7 +846,7 @@ describe('VideoPlayerAPICallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_PLAYER_PLAY_CALLBACK_1200
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETSURFACE_EVENT
,
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SET
URL_EVENT
,
SET
SURFACE_EVENT
,
PREPARE_EVENT
,
PLAY_EVENT
,
PLAY_EVENT
,
PLAY_EVENT
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
})
...
...
@@ -775,7 +877,7 @@ describe('VideoPlayerAPICallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_PLAYER_PAUSE_CALLBACK_0200
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETSURFACE_EVENT
,
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SET
URL_EVENT
,
SET
SURFACE_EVENT
,
PREPARE_EVENT
,
PAUSE_EVENT
,
ERROR_EVENT
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
})
...
...
@@ -791,7 +893,7 @@ describe('VideoPlayerAPICallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_PLAYER_PAUSE_CALLBACK_0300
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETSURFACE_EVENT
,
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SET
URL_EVENT
,
SET
SURFACE_EVENT
,
PREPARE_EVENT
,
PLAY_EVENT
,
PAUSE_EVENT
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
})
...
...
@@ -807,7 +909,7 @@ describe('VideoPlayerAPICallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_PLAYER_PAUSE_CALLBACK_0400
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETSURFACE_EVENT
,
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SET
URL_EVENT
,
SET
SURFACE_EVENT
,
PREPARE_EVENT
,
PLAY_EVENT
,
STOP_EVENT
,
PAUSE_EVENT
,
ERROR_EVENT
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
})
...
...
@@ -823,7 +925,7 @@ describe('VideoPlayerAPICallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_PLAYER_PAUSE_CALLBACK_0500
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETSURFACE_EVENT
,
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SET
URL_EVENT
,
SET
SURFACE_EVENT
,
PREPARE_EVENT
,
PLAY_EVENT
,
RESET_EVENT
,
PAUSE_EVENT
,
ERROR_EVENT
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
})
...
...
@@ -839,7 +941,7 @@ describe('VideoPlayerAPICallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_PLAYER_PAUSE_CALLBACK_0600
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETSURFACE_EVENT
,
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SET
URL_EVENT
,
SET
SURFACE_EVENT
,
PREPARE_EVENT
,
PLAY_EVENT
,
SEEK_EVENT
,
SEEK_TIME
,
PAUSE_EVENT
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
})
...
...
@@ -855,7 +957,7 @@ describe('VideoPlayerAPICallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_PLAYER_PAUSE_CALLBACK_0700
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETSURFACE_EVENT
,
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SET
URL_EVENT
,
SET
SURFACE_EVENT
,
PREPARE_EVENT
,
PLAY_EVENT
,
SEEK_MODE_EVENT
,
SEEK_TIME
,
PAUSE_EVENT
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
})
...
...
@@ -871,7 +973,7 @@ describe('VideoPlayerAPICallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_PLAYER_PAUSE_CALLBACK_0800
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETSURFACE_EVENT
,
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SET
URL_EVENT
,
SET
SURFACE_EVENT
,
PREPARE_EVENT
,
PLAY_EVENT
,
SETVOLUME_EVENT
,
VOLUME_VALUE
,
PAUSE_EVENT
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
})
...
...
@@ -887,7 +989,7 @@ describe('VideoPlayerAPICallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_PLAYER_PAUSE_CALLBACK_0900
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETSURFACE_EVENT
,
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SET
URL_EVENT
,
SET
SURFACE_EVENT
,
PREPARE_EVENT
,
PLAY_EVENT
,
SETSPEED_EVENT
,
SPEED_VALUE
,
PAUSE_EVENT
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
})
...
...
@@ -903,7 +1005,7 @@ describe('VideoPlayerAPICallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_PLAYER_PAUSE_CALLBACK_1000
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETSURFACE_EVENT
,
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SET
URL_EVENT
,
SET
SURFACE_EVENT
,
PAUSE_EVENT
,
ERROR_EVENT
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
})
...
...
@@ -919,7 +1021,7 @@ describe('VideoPlayerAPICallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_PLAYER_PAUSE_CALLBACK_1100
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETSURFACE_EVENT
,
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SET
URL_EVENT
,
SET
SURFACE_EVENT
,
PREPARE_EVENT
,
GETDESCRIPTION
,
PAUSE_EVENT
,
ERROR_EVENT
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
})
...
...
@@ -935,7 +1037,7 @@ describe('VideoPlayerAPICallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_PLAYER_PAUSE_CALLBACK_1200
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETSURFACE_EVENT
,
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SET
URL_EVENT
,
SET
SURFACE_EVENT
,
PREPARE_EVENT
,
PLAY_EVENT
,
PAUSE_EVENT
,
PAUSE_EVENT
,
PAUSE_EVENT
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
})
...
...
@@ -966,7 +1068,7 @@ describe('VideoPlayerAPICallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_PLAYER_STOP_CALLBACK_0200
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETSURFACE_EVENT
,
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SET
URL_EVENT
,
SET
SURFACE_EVENT
,
PREPARE_EVENT
,
STOP_EVENT
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
})
...
...
@@ -982,7 +1084,7 @@ describe('VideoPlayerAPICallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_PLAYER_STOP_CALLBACK_0300
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETSURFACE_EVENT
,
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SET
URL_EVENT
,
SET
SURFACE_EVENT
,
PREPARE_EVENT
,
PLAY_EVENT
,
STOP_EVENT
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
})
...
...
@@ -998,7 +1100,7 @@ describe('VideoPlayerAPICallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_PLAYER_STOP_CALLBACK_0400
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETSURFACE_EVENT
,
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SET
URL_EVENT
,
SET
SURFACE_EVENT
,
PREPARE_EVENT
,
PLAY_EVENT
,
PAUSE_EVENT
,
STOP_EVENT
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
})
...
...
@@ -1014,7 +1116,7 @@ describe('VideoPlayerAPICallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_PLAYER_STOP_CALLBACK_0500
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETSURFACE_EVENT
,
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SET
URL_EVENT
,
SET
SURFACE_EVENT
,
PREPARE_EVENT
,
PLAY_EVENT
,
RESET_EVENT
,
STOP_EVENT
,
ERROR_EVENT
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
})
...
...
@@ -1030,7 +1132,7 @@ describe('VideoPlayerAPICallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_PLAYER_STOP_CALLBACK_0600
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETSURFACE_EVENT
,
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SET
URL_EVENT
,
SET
SURFACE_EVENT
,
PREPARE_EVENT
,
PLAY_EVENT
,
SEEK_EVENT
,
SEEK_TIME
,
STOP_EVENT
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
})
...
...
@@ -1046,7 +1148,7 @@ describe('VideoPlayerAPICallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_PLAYER_STOP_CALLBACK_0700
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETSURFACE_EVENT
,
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SET
URL_EVENT
,
SET
SURFACE_EVENT
,
PREPARE_EVENT
,
PLAY_EVENT
,
SEEK_MODE_EVENT
,
SEEK_TIME
,
STOP_EVENT
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
})
...
...
@@ -1062,7 +1164,7 @@ describe('VideoPlayerAPICallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_PLAYER_STOP_CALLBACK_0800
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETSURFACE_EVENT
,
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SET
URL_EVENT
,
SET
SURFACE_EVENT
,
PREPARE_EVENT
,
PLAY_EVENT
,
SETVOLUME_EVENT
,
VOLUME_VALUE
,
STOP_EVENT
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
})
...
...
@@ -1078,7 +1180,7 @@ describe('VideoPlayerAPICallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_PLAYER_STOP_CALLBACK_0900
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETSURFACE_EVENT
,
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SET
URL_EVENT
,
SET
SURFACE_EVENT
,
PREPARE_EVENT
,
PLAY_EVENT
,
SETSPEED_EVENT
,
SPEED_VALUE
,
STOP_EVENT
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
})
...
...
@@ -1094,7 +1196,7 @@ describe('VideoPlayerAPICallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_PLAYER_STOP_CALLBACK_1000
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETSURFACE_EVENT
,
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SET
URL_EVENT
,
SET
SURFACE_EVENT
,
STOP_EVENT
,
ERROR_EVENT
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
})
...
...
@@ -1110,7 +1212,7 @@ describe('VideoPlayerAPICallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_PLAYER_STOP_CALLBACK_1100
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETSURFACE_EVENT
,
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SET
URL_EVENT
,
SET
SURFACE_EVENT
,
PREPARE_EVENT
,
GETDESCRIPTION
,
STOP_EVENT
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
})
...
...
@@ -1126,7 +1228,7 @@ describe('VideoPlayerAPICallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_PLAYER_STOP_CALLBACK_1200
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETSURFACE_EVENT
,
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SET
URL_EVENT
,
SET
SURFACE_EVENT
,
PREPARE_EVENT
,
PLAY_EVENT
,
STOP_EVENT
,
STOP_EVENT
,
STOP_EVENT
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
})
...
...
@@ -1157,7 +1259,7 @@ describe('VideoPlayerAPICallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_PLAYER_RESET_CALLBACK_0200
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETSURFACE_EVENT
,
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SET
URL_EVENT
,
SET
SURFACE_EVENT
,
PREPARE_EVENT
,
RESET_EVENT
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
})
...
...
@@ -1173,7 +1275,7 @@ describe('VideoPlayerAPICallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_PLAYER_RESET_CALLBACK_0300
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETSURFACE_EVENT
,
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SET
URL_EVENT
,
SET
SURFACE_EVENT
,
PREPARE_EVENT
,
PLAY_EVENT
,
RESET_EVENT
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
})
...
...
@@ -1189,7 +1291,7 @@ describe('VideoPlayerAPICallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_PLAYER_RESET_CALLBACK_0400
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETSURFACE_EVENT
,
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SET
URL_EVENT
,
SET
SURFACE_EVENT
,
PREPARE_EVENT
,
PLAY_EVENT
,
PAUSE_EVENT
,
RESET_EVENT
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
})
...
...
@@ -1205,7 +1307,7 @@ describe('VideoPlayerAPICallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_PLAYER_RESET_CALLBACK_0500
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETSURFACE_EVENT
,
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SET
URL_EVENT
,
SET
SURFACE_EVENT
,
PREPARE_EVENT
,
PLAY_EVENT
,
STOP_EVENT
,
RESET_EVENT
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
})
...
...
@@ -1221,7 +1323,7 @@ describe('VideoPlayerAPICallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_PLAYER_RESET_CALLBACK_0600
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETSURFACE_EVENT
,
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SET
URL_EVENT
,
SET
SURFACE_EVENT
,
PREPARE_EVENT
,
PLAY_EVENT
,
SEEK_EVENT
,
SEEK_TIME
,
RESET_EVENT
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
})
...
...
@@ -1237,7 +1339,7 @@ describe('VideoPlayerAPICallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_PLAYER_RESET_CALLBACK_0700
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETSURFACE_EVENT
,
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SET
URL_EVENT
,
SET
SURFACE_EVENT
,
PREPARE_EVENT
,
PLAY_EVENT
,
SEEK_MODE_EVENT
,
SEEK_TIME
,
RESET_EVENT
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
})
...
...
@@ -1253,7 +1355,7 @@ describe('VideoPlayerAPICallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_PLAYER_RESET_CALLBACK_0800
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETSURFACE_EVENT
,
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SET
URL_EVENT
,
SET
SURFACE_EVENT
,
PREPARE_EVENT
,
PLAY_EVENT
,
SETVOLUME_EVENT
,
VOLUME_VALUE
,
RESET_EVENT
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
})
...
...
@@ -1269,7 +1371,7 @@ describe('VideoPlayerAPICallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_PLAYER_RESET_CALLBACK_0900
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETSURFACE_EVENT
,
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SET
URL_EVENT
,
SET
SURFACE_EVENT
,
PREPARE_EVENT
,
PLAY_EVENT
,
SETSPEED_EVENT
,
SPEED_VALUE
,
RESET_EVENT
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
})
...
...
@@ -1285,7 +1387,7 @@ describe('VideoPlayerAPICallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_PLAYER_RESET_CALLBACK_1000
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETSURFACE_EVENT
,
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SET
URL_EVENT
,
SET
SURFACE_EVENT
,
RESET_EVENT
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
})
...
...
@@ -1301,7 +1403,7 @@ describe('VideoPlayerAPICallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_PLAYER_RESET_CALLBACK_1100
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETSURFACE_EVENT
,
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SET
URL_EVENT
,
SET
SURFACE_EVENT
,
PREPARE_EVENT
,
GETDESCRIPTION
,
RESET_EVENT
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
})
...
...
@@ -1317,7 +1419,7 @@ describe('VideoPlayerAPICallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_PLAYER_RESET_CALLBACK_1200
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETSURFACE_EVENT
,
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SET
URL_EVENT
,
SET
SURFACE_EVENT
,
PREPARE_EVENT
,
RESET_EVENT
,
RESET_EVENT
,
RESET_EVENT
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
})
...
...
@@ -1348,7 +1450,7 @@ describe('VideoPlayerAPICallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_PLAYER_RELEASE_CALLBACK_0200
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETSURFACE_EVENT
,
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SET
URL_EVENT
,
SET
SURFACE_EVENT
,
PREPARE_EVENT
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
})
...
...
@@ -1364,7 +1466,7 @@ describe('VideoPlayerAPICallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_PLAYER_RELEASE_CALLBACK_0300
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETSURFACE_EVENT
,
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SET
URL_EVENT
,
SET
SURFACE_EVENT
,
PREPARE_EVENT
,
PLAY_EVENT
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
})
...
...
@@ -1380,7 +1482,7 @@ describe('VideoPlayerAPICallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_PLAYER_RELEASE_CALLBACK_0400
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETSURFACE_EVENT
,
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SET
URL_EVENT
,
SET
SURFACE_EVENT
,
PREPARE_EVENT
,
PLAY_EVENT
,
PAUSE_EVENT
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
})
...
...
@@ -1396,7 +1498,7 @@ describe('VideoPlayerAPICallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_PLAYER_RELEASE_CALLBACK_0500
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETSURFACE_EVENT
,
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SET
URL_EVENT
,
SET
SURFACE_EVENT
,
PREPARE_EVENT
,
PLAY_EVENT
,
STOP_EVENT
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
})
...
...
@@ -1412,7 +1514,7 @@ describe('VideoPlayerAPICallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_PLAYER_RELEASE_CALLBACK_0600
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETSURFACE_EVENT
,
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SET
URL_EVENT
,
SET
SURFACE_EVENT
,
PREPARE_EVENT
,
PLAY_EVENT
,
SEEK_EVENT
,
SEEK_TIME
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
})
...
...
@@ -1428,7 +1530,7 @@ describe('VideoPlayerAPICallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_PLAYER_RELEASE_CALLBACK_0700
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETSURFACE_EVENT
,
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SET
URL_EVENT
,
SET
SURFACE_EVENT
,
PREPARE_EVENT
,
PLAY_EVENT
,
SEEK_MODE_EVENT
,
SEEK_TIME
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
})
...
...
@@ -1444,7 +1546,7 @@ describe('VideoPlayerAPICallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_PLAYER_RELEASE_CALLBACK_0800
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETSURFACE_EVENT
,
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SET
URL_EVENT
,
SET
SURFACE_EVENT
,
PREPARE_EVENT
,
PLAY_EVENT
,
SETVOLUME_EVENT
,
VOLUME_VALUE
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
})
...
...
@@ -1460,7 +1562,7 @@ describe('VideoPlayerAPICallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_PLAYER_RELEASE_CALLBACK_0900
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETSURFACE_EVENT
,
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SET
URL_EVENT
,
SET
SURFACE_EVENT
,
PREPARE_EVENT
,
PLAY_EVENT
,
SETSPEED_EVENT
,
SPEED_VALUE
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
})
...
...
@@ -1476,7 +1578,7 @@ describe('VideoPlayerAPICallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_PLAYER_RELEASE_CALLBACK_1000
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETSURFACE_EVENT
,
RELEASE_EVENT
,
END_EVENT
);
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SET
URL_EVENT
,
SET
SURFACE_EVENT
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
})
...
...
@@ -1491,7 +1593,7 @@ describe('VideoPlayerAPICallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_PLAYER_RELEASE_CALLBACK_1100
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETSURFACE_EVENT
,
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SET
URL_EVENT
,
SET
SURFACE_EVENT
,
PREPARE_EVENT
,
GETDESCRIPTION
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
})
...
...
@@ -1507,7 +1609,7 @@ describe('VideoPlayerAPICallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_PLAYER_RELEASE_CALLBACK_1200
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETSURFACE_EVENT
,
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SET
URL_EVENT
,
SET
SURFACE_EVENT
,
PREPARE_EVENT
,
RESET_EVENT
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
})
...
...
@@ -1538,7 +1640,7 @@ describe('VideoPlayerAPICallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_PLAYER_SEEK_CALLBACK_0200
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETSURFACE_EVENT
,
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SET
URL_EVENT
,
SET
SURFACE_EVENT
,
PREPARE_EVENT
,
SEEK_EVENT
,
SEEK_TIME
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
})
...
...
@@ -1554,7 +1656,7 @@ describe('VideoPlayerAPICallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_PLAYER_SEEK_CALLBACK_0300
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETSURFACE_EVENT
,
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SET
URL_EVENT
,
SET
SURFACE_EVENT
,
PREPARE_EVENT
,
PLAY_EVENT
,
SEEK_EVENT
,
SEEK_TIME
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
})
...
...
@@ -1570,7 +1672,7 @@ describe('VideoPlayerAPICallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_PLAYER_SEEK_CALLBACK_0400
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETSURFACE_EVENT
,
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SET
URL_EVENT
,
SET
SURFACE_EVENT
,
PREPARE_EVENT
,
PLAY_EVENT
,
PAUSE_EVENT
,
SEEK_EVENT
,
SEEK_TIME
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
})
...
...
@@ -1586,7 +1688,7 @@ describe('VideoPlayerAPICallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_PLAYER_SEEK_CALLBACK_0500
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETSURFACE_EVENT
,
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SET
URL_EVENT
,
SET
SURFACE_EVENT
,
PREPARE_EVENT
,
PLAY_EVENT
,
STOP_EVENT
,
SEEK_EVENT
,
SEEK_TIME
,
ERROR_EVENT
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
})
...
...
@@ -1602,7 +1704,7 @@ describe('VideoPlayerAPICallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_PLAYER_SEEK_CALLBACK_0600
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETSURFACE_EVENT
,
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SET
URL_EVENT
,
SET
SURFACE_EVENT
,
PREPARE_EVENT
,
PLAY_EVENT
,
RESET_EVENT
,
SEEK_EVENT
,
SEEK_TIME
,
ERROR_EVENT
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
})
...
...
@@ -1618,7 +1720,7 @@ describe('VideoPlayerAPICallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_PLAYER_SEEK_CALLBACK_0700
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETSURFACE_EVENT
,
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SET
URL_EVENT
,
SET
SURFACE_EVENT
,
PREPARE_EVENT
,
PLAY_EVENT
,
SETVOLUME_EVENT
,
VOLUME_VALUE
,
SEEK_EVENT
,
SEEK_TIME
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
...
...
@@ -1635,7 +1737,7 @@ describe('VideoPlayerAPICallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_PLAYER_SEEK_CALLBACK_0800
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETSURFACE_EVENT
,
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SET
URL_EVENT
,
SET
SURFACE_EVENT
,
PREPARE_EVENT
,
PLAY_EVENT
,
SETSPEED_EVENT
,
SPEED_VALUE
,
SEEK_EVENT
,
SEEK_TIME
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
...
...
@@ -1652,7 +1754,7 @@ describe('VideoPlayerAPICallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_PLAYER_SEEK_CALLBACK_0900
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETSURFACE_EVENT
,
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SET
URL_EVENT
,
SET
SURFACE_EVENT
,
SEEK_EVENT
,
SEEK_TIME
,
ERROR_EVENT
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
})
...
...
@@ -1668,7 +1770,7 @@ describe('VideoPlayerAPICallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_PLAYER_SEEK_CALLBACK_1000
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETSURFACE_EVENT
,
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SET
URL_EVENT
,
SET
SURFACE_EVENT
,
PREPARE_EVENT
,
PLAY_EVENT
,
GETDESCRIPTION
,
SEEK_EVENT
,
SEEK_TIME
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
})
...
...
@@ -1684,7 +1786,7 @@ describe('VideoPlayerAPICallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_PLAYER_SEEK_CALLBACK_1100
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETSURFACE_EVENT
,
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SET
URL_EVENT
,
SET
SURFACE_EVENT
,
PREPARE_EVENT
,
PLAY_EVENT
,
SEEK_EVENT
,
SEEK_TIME
,
SEEK_EVENT
,
SEEK_TIME
,
SEEK_EVENT
,
SEEK_TIME
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
...
...
@@ -1701,7 +1803,7 @@ describe('VideoPlayerAPICallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_PLAYER_SEEK_CALLBACK_1300
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETSURFACE_EVENT
,
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SET
URL_EVENT
,
SET
SURFACE_EVENT
,
PREPARE_EVENT
,
PLAY_EVENT
,
SEEK_EVENT
,
-
1
,
ERROR_EVENT
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
})
...
...
@@ -1717,7 +1819,7 @@ describe('VideoPlayerAPICallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_PLAYER_SEEK_CALLBACK_1400
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETSURFACE_EVENT
,
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SET
URL_EVENT
,
SET
SURFACE_EVENT
,
PREPARE_EVENT
,
PLAY_EVENT
,
SEEK_EVENT
,
DURATION_TIME
+
1000
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
})
...
...
@@ -1748,7 +1850,7 @@ describe('VideoPlayerAPICallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_PLAYER_SETVOLUME_CALLBACK_0200
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETSURFACE_EVENT
,
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SET
URL_EVENT
,
SET
SURFACE_EVENT
,
PREPARE_EVENT
,
SETVOLUME_EVENT
,
VOLUME_VALUE
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
})
...
...
@@ -1764,7 +1866,7 @@ describe('VideoPlayerAPICallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_PLAYER_SETVOLUME_CALLBACK_0300
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETSURFACE_EVENT
,
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SET
URL_EVENT
,
SET
SURFACE_EVENT
,
PREPARE_EVENT
,
PLAY_EVENT
,
SETVOLUME_EVENT
,
VOLUME_VALUE
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
})
...
...
@@ -1780,7 +1882,7 @@ describe('VideoPlayerAPICallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_PLAYER_SETVOLUME_CALLBACK_0400
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETSURFACE_EVENT
,
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SET
URL_EVENT
,
SET
SURFACE_EVENT
,
PREPARE_EVENT
,
PLAY_EVENT
,
PAUSE_EVENT
,
SETVOLUME_EVENT
,
VOLUME_VALUE
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
})
...
...
@@ -1796,7 +1898,7 @@ describe('VideoPlayerAPICallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_PLAYER_SETVOLUME_CALLBACK_0500
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETSURFACE_EVENT
,
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SET
URL_EVENT
,
SET
SURFACE_EVENT
,
PREPARE_EVENT
,
PLAY_EVENT
,
STOP_EVENT
,
SETVOLUME_EVENT
,
VOLUME_VALUE
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
})
...
...
@@ -1812,7 +1914,7 @@ describe('VideoPlayerAPICallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_PLAYER_SETVOLUME_CALLBACK_0600
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETSURFACE_EVENT
,
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SET
URL_EVENT
,
SET
SURFACE_EVENT
,
PREPARE_EVENT
,
PLAY_EVENT
,
RESET_EVENT
,
SETVOLUME_EVENT
,
VOLUME_VALUE
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
})
...
...
@@ -1828,7 +1930,7 @@ describe('VideoPlayerAPICallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_PLAYER_SETVOLUME_CALLBACK_0700
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETSURFACE_EVENT
,
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SET
URL_EVENT
,
SET
SURFACE_EVENT
,
PREPARE_EVENT
,
PLAY_EVENT
,
SEEK_EVENT
,
SEEK_TIME
,
SETVOLUME_EVENT
,
VOLUME_VALUE
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
...
...
@@ -1845,7 +1947,7 @@ describe('VideoPlayerAPICallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_PLAYER_SETVOLUME_CALLBACK_0800
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETSURFACE_EVENT
,
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SET
URL_EVENT
,
SET
SURFACE_EVENT
,
PREPARE_EVENT
,
PLAY_EVENT
,
SETSPEED_EVENT
,
SPEED_VALUE
,
SETVOLUME_EVENT
,
VOLUME_VALUE
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
...
...
@@ -1862,7 +1964,7 @@ describe('VideoPlayerAPICallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_PLAYER_SETVOLUME_CALLBACK_0900
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETSURFACE_EVENT
,
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SET
URL_EVENT
,
SET
SURFACE_EVENT
,
SETVOLUME_EVENT
,
VOLUME_VALUE
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
})
...
...
@@ -1878,7 +1980,7 @@ describe('VideoPlayerAPICallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_PLAYER_SETVOLUME_CALLBACK_1000
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETSURFACE_EVENT
,
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SET
URL_EVENT
,
SET
SURFACE_EVENT
,
PREPARE_EVENT
,
PLAY_EVENT
,
GETDESCRIPTION
,
SETVOLUME_EVENT
,
VOLUME_VALUE
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
})
...
...
@@ -1894,7 +1996,7 @@ describe('VideoPlayerAPICallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_PLAYER_SETVOLUME_CALLBACK_1100
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETSURFACE_EVENT
,
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SET
URL_EVENT
,
SET
SURFACE_EVENT
,
PREPARE_EVENT
,
PLAY_EVENT
,
SETVOLUME_EVENT
,
VOLUME_VALUE
,
SETVOLUME_EVENT
,
VOLUME_VALUE
,
SETVOLUME_EVENT
,
VOLUME_VALUE
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
...
...
@@ -1911,7 +2013,7 @@ describe('VideoPlayerAPICallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_PLAYER_SETVOLUME_CALLBACK_1300
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETSURFACE_EVENT
,
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SET
URL_EVENT
,
SET
SURFACE_EVENT
,
PREPARE_EVENT
,
PLAY_EVENT
,
SETVOLUME_EVENT
,
-
1
,
ERROR_EVENT
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
})
...
...
@@ -1927,7 +2029,7 @@ describe('VideoPlayerAPICallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_PLAYER_SETVOLUME_CALLBACK_1400
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETSURFACE_EVENT
,
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SET
URL_EVENT
,
SET
SURFACE_EVENT
,
PREPARE_EVENT
,
PLAY_EVENT
,
SETVOLUME_EVENT
,
2
,
ERROR_EVENT
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
})
...
...
@@ -1958,7 +2060,7 @@ describe('VideoPlayerAPICallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_PLAYER_SETSPEED_CALLBACK_0200
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETSURFACE_EVENT
,
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SET
URL_EVENT
,
SET
SURFACE_EVENT
,
PREPARE_EVENT
,
SETSPEED_EVENT
,
SPEED_VALUE
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
})
...
...
@@ -1974,7 +2076,7 @@ describe('VideoPlayerAPICallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_PLAYER_SETSPEED_CALLBACK_0300
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETSURFACE_EVENT
,
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SET
URL_EVENT
,
SET
SURFACE_EVENT
,
PREPARE_EVENT
,
PLAY_EVENT
,
SETSPEED_EVENT
,
SPEED_VALUE
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
})
...
...
@@ -1990,7 +2092,7 @@ describe('VideoPlayerAPICallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_PLAYER_SETSPEED_CALLBACK_0400
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETSURFACE_EVENT
,
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SET
URL_EVENT
,
SET
SURFACE_EVENT
,
PREPARE_EVENT
,
PLAY_EVENT
,
PAUSE_EVENT
,
SETSPEED_EVENT
,
SPEED_VALUE
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
})
...
...
@@ -2006,7 +2108,7 @@ describe('VideoPlayerAPICallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_PLAYER_SETSPEED_CALLBACK_0500
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETSURFACE_EVENT
,
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SET
URL_EVENT
,
SET
SURFACE_EVENT
,
PREPARE_EVENT
,
PLAY_EVENT
,
STOP_EVENT
,
SETSPEED_EVENT
,
SPEED_VALUE
,
ERROR_EVENT
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
...
...
@@ -2023,7 +2125,7 @@ describe('VideoPlayerAPICallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_PLAYER_SETSPEED_CALLBACK_0600
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETSURFACE_EVENT
,
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SET
URL_EVENT
,
SET
SURFACE_EVENT
,
PREPARE_EVENT
,
PLAY_EVENT
,
RESET_EVENT
,
SETSPEED_EVENT
,
SPEED_VALUE
,
ERROR_EVENT
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
...
...
@@ -2040,7 +2142,7 @@ describe('VideoPlayerAPICallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_PLAYER_SETSPEED_CALLBACK_0700
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETSURFACE_EVENT
,
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SET
URL_EVENT
,
SET
SURFACE_EVENT
,
PREPARE_EVENT
,
PLAY_EVENT
,
SEEK_EVENT
,
SEEK_TIME
,
SETSPEED_EVENT
,
SPEED_VALUE
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
...
...
@@ -2057,7 +2159,7 @@ describe('VideoPlayerAPICallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_PLAYER_SETSPEED_CALLBACK_0800
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETSURFACE_EVENT
,
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SET
URL_EVENT
,
SET
SURFACE_EVENT
,
PREPARE_EVENT
,
PLAY_EVENT
,
SETVOLUME_EVENT
,
VOLUME_VALUE
,
SETSPEED_EVENT
,
SPEED_VALUE
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
...
...
@@ -2074,7 +2176,7 @@ describe('VideoPlayerAPICallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_PLAYER_SETSPEED_CALLBACK_0900
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETSURFACE_EVENT
,
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SET
URL_EVENT
,
SET
SURFACE_EVENT
,
SETSPEED_EVENT
,
SPEED_VALUE
,
ERROR_EVENT
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
})
...
...
@@ -2090,7 +2192,7 @@ describe('VideoPlayerAPICallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_PLAYER_SETSPEED_CALLBACK_1000
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETSURFACE_EVENT
,
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SET
URL_EVENT
,
SET
SURFACE_EVENT
,
PREPARE_EVENT
,
PLAY_EVENT
,
GETDESCRIPTION
,
SETSPEED_EVENT
,
SPEED_VALUE
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
})
...
...
@@ -2106,7 +2208,7 @@ describe('VideoPlayerAPICallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_PLAYER_SETSPEED_CALLBACK_1100
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETSURFACE_EVENT
,
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SET
URL_EVENT
,
SET
SURFACE_EVENT
,
PREPARE_EVENT
,
PLAY_EVENT
,
SETSPEED_EVENT
,
SPEED_VALUE
,
SETSPEED_EVENT
,
SPEED_VALUE
,
SETSPEED_EVENT
,
SPEED_VALUE
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
...
...
@@ -2123,7 +2225,7 @@ describe('VideoPlayerAPICallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_PLAYER_SETSPEED_CALLBACK_1300
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETSURFACE_EVENT
,
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SET
URL_EVENT
,
SET
SURFACE_EVENT
,
PREPARE_EVENT
,
PLAY_EVENT
,
SETSPEED_EVENT
,
-
1
,
ERROR_EVENT
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
})
...
...
@@ -2139,7 +2241,7 @@ describe('VideoPlayerAPICallbackTest', function () {
it
(
'
SUB_MEDIA_VIDEO_PLAYER_SETSPEED_CALLBACK_1400
'
,
0
,
async
function
(
done
)
{
isFileOpen
(
fileDescriptor
,
done
);
let
videoPlayer
=
null
;
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SETSURFACE_EVENT
,
let
mySteps
=
new
Array
(
CREATE_EVENT
,
SET
URL_EVENT
,
SET
SURFACE_EVENT
,
PREPARE_EVENT
,
PLAY_EVENT
,
SETSPEED_EVENT
,
5
,
ERROR_EVENT
,
RELEASE_EVENT
,
END_EVENT
);
eventEmitter
.
emit
(
mySteps
[
0
],
videoPlayer
,
mySteps
,
done
);
})
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录