未验证 提交 1ad73bf4 编写于 作者: O openharmony_ci 提交者: Gitee

!3820 修改音频播放设置src顺序、删除API8之后的枚举类

Merge pull request !3820 from FULIZHONG/OpenHarmony-3.1-Release
...@@ -72,7 +72,6 @@ describe('PlayerLocalTestAudioFormat', function () { ...@@ -72,7 +72,6 @@ describe('PlayerLocalTestAudioFormat', function () {
async function playSource(audioSource, done) { async function playSource(audioSource, done) {
let audioPlayer = media.createAudioPlayer(); let audioPlayer = media.createAudioPlayer();
await getFd(audioSource); await getFd(audioSource);
audioPlayer.src = fdPath;
audioPlayer.on('dataLoad', () => { audioPlayer.on('dataLoad', () => {
console.info('case set source success'); console.info('case set source success');
expect(audioPlayer.state).assertEqual('paused'); expect(audioPlayer.state).assertEqual('paused');
...@@ -142,6 +141,7 @@ describe('PlayerLocalTestAudioFormat', function () { ...@@ -142,6 +141,7 @@ describe('PlayerLocalTestAudioFormat', function () {
expect().assertFail(); expect().assertFail();
done(); done();
}); });
audioPlayer.src = fdPath;
} }
/* * /* *
......
...@@ -44,8 +44,6 @@ describe('VideoPlayerEnumTest', function () { ...@@ -44,8 +44,6 @@ describe('VideoPlayerEnumTest', function () {
it('SUB_MEDIA_VIDEO_PLAYER_ENUM_SEEK_MODE_00_0100', 0, async function (done) { it('SUB_MEDIA_VIDEO_PLAYER_ENUM_SEEK_MODE_00_0100', 0, async function (done) {
expect(media.SeekMode.SEEK_NEXT_SYNC).assertEqual(0); expect(media.SeekMode.SEEK_NEXT_SYNC).assertEqual(0);
expect(media.SeekMode.SEEK_PREV_SYNC).assertEqual(1); expect(media.SeekMode.SEEK_PREV_SYNC).assertEqual(1);
expect(media.SeekMode.SEEK_CLOSEST_SYNC).assertEqual(2);
expect(media.SeekMode.SEEK_CLOSEST).assertEqual(3);
done(); done();
}) })
...@@ -71,20 +69,6 @@ describe('VideoPlayerEnumTest', function () { ...@@ -71,20 +69,6 @@ describe('VideoPlayerEnumTest', function () {
done(); done();
}) })
/* *
* @tc.number : SUB_MEDIA_VIDEO_PLAYER_ENUM_AV_DATA_SOURCE_ERROR_00_0100
* @tc.name : AVDataSourceError
* @tc.desc : AVDataSourceError Enumeration test
* @tc.size : MediumTest
* @tc.type : Function test
* @tc.level : Level0
*/
it('SUB_MEDIA_VIDEO_PLAYER_ENUM_AV_DATA_SOURCE_ERROR_00_0100', 0, async function (done) {
expect(media.AVDataSourceError.SOURCE_ERROR_IO).assertEqual(-2);
expect(media.AVDataSourceError.SOURCE_ERROR_EOF).assertEqual(-1);
done();
})
/* * /* *
* @tc.number : SUB_MEDIA_VIDEO_PLAYER_ENUM_BUFFERING_INFO_TYPE_00_0100 * @tc.number : SUB_MEDIA_VIDEO_PLAYER_ENUM_BUFFERING_INFO_TYPE_00_0100
* @tc.name : BufferingInfoType * @tc.name : BufferingInfoType
...@@ -143,7 +127,6 @@ describe('VideoPlayerEnumTest', function () { ...@@ -143,7 +127,6 @@ describe('VideoPlayerEnumTest', function () {
it('SUB_MEDIA_VIDEO_PLAYER_ENUM_MEDIA_TYPE_00_0100', 0, async function (done) { it('SUB_MEDIA_VIDEO_PLAYER_ENUM_MEDIA_TYPE_00_0100', 0, async function (done) {
expect(media.MediaType.MEDIA_TYPE_AUD).assertEqual(0); expect(media.MediaType.MEDIA_TYPE_AUD).assertEqual(0);
expect(media.MediaType.MEDIA_TYPE_VID).assertEqual(1); expect(media.MediaType.MEDIA_TYPE_VID).assertEqual(1);
expect(media.MediaType.MEDIA_TYPE_SUBTITLE).assertEqual(2);
done(); done();
}) })
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册