diff --git a/multimedia/media/media_js_standard/audioPlayer/src/main/js/test/PlayerLocalTestAudioAPI.test.js b/multimedia/media/media_js_standard/audioPlayer/src/main/js/test/PlayerLocalTestAudioAPI.test.js index d910429953bf9bfbfd70f0e1bb99c92f1b3dfb48..d2ac4eb457571a74a7ab8406c3bee834179910bf 100644 --- a/multimedia/media/media_js_standard/audioPlayer/src/main/js/test/PlayerLocalTestAudioAPI.test.js +++ b/multimedia/media/media_js_standard/audioPlayer/src/main/js/test/PlayerLocalTestAudioAPI.test.js @@ -268,7 +268,7 @@ describe('PlayerLocalTestAudioAPI', function () { it('SUB_MULTIMEDIA_MEDIA_AUDIOPLAYER_SRC_API_0200', 0, async function (done) { mediaTestBase.isFileOpen(fileDescriptor, done); fileDescriptor.offset = 1; - let mySteps = new Array(SRC_STATE, PLAY_STATE, PAUSE_STATE, PLAY_STATE, END_STATE); + let mySteps = new Array(ERROR_STATE, END_STATE); initAudioPlayer(); setCallback(mySteps, done); audioPlayer.fdSrc = fileDescriptor; @@ -284,6 +284,8 @@ describe('PlayerLocalTestAudioAPI', function () { */ it('SUB_MULTIMEDIA_MEDIA_AUDIOPLAYER_SRC_API_0300', 0, async function (done) { mediaTestBase.isFileOpen(fileDescriptor, done); + fileDescriptor.fd = fdNumber; + fileDescriptor.offset = 0; fileDescriptor.length = -1; let mySteps = new Array(SRC_STATE, PLAY_STATE, PAUSE_STATE, PLAY_STATE, END_STATE); initAudioPlayer(); @@ -722,9 +724,9 @@ describe('PlayerLocalTestAudioAPI', function () { it('SUB_MULTIMEDIA_MEDIA_AUDIOPLAYER_TIME_API_0200', 0, async function (done) { mediaTestBase.isFileOpen(fileDescriptor, done); initAudioPlayer(); - audioPlayer.src = fdHead + fileDescriptor.fd; + audioPlayer.src = fdPath; mediaTestBase.msleep(PLAY_TIME); - expect(audioPlayer.src).assertEqual(fdHead + fileDescriptor.fd); + expect(audioPlayer.src).assertEqual(fdPath); expect(audioPlayer.currentTime).assertEqual(0); expect(audioPlayer.duration).assertEqual(DURATION_TIME); expect(audioPlayer.state).assertEqual('idle'); diff --git a/multimedia/media/media_js_standard/audioPlayer/src/main/js/test/PlayerLocalTestAudioFUNC.test.js b/multimedia/media/media_js_standard/audioPlayer/src/main/js/test/PlayerLocalTestAudioFUNC.test.js index 74a8fb8238794ce59bdb7c9b40515db069e70c5a..d4269db05b96e9f6b3535119c02018fe5a8c55ce 100644 --- a/multimedia/media/media_js_standard/audioPlayer/src/main/js/test/PlayerLocalTestAudioFUNC.test.js +++ b/multimedia/media/media_js_standard/audioPlayer/src/main/js/test/PlayerLocalTestAudioFUNC.test.js @@ -105,7 +105,7 @@ describe('PlayerLocalTestAudioFUNC', function () { switch (mySteps[0]) { case SRC_STATE: console.info(`case to prepare`); - audioPlayer.src = fdHead + fileDescriptor.fd; + audioPlayer.src = fdPath; break; case FDSRC_STATE: console.info(`case to prepare`); @@ -323,7 +323,7 @@ describe('PlayerLocalTestAudioFUNC', function () { DURATION_TIME / 2, SEEK_STATE, DURATION_TIME, FINISH_STATE, RELEASE_STATE, END_STATE); initAudioPlayer(); setCallback(mySteps, done); - audioPlayer.src = fdHead + fileDescriptor.fd; + audioPlayer.src = fdPath; }) /* * @@ -339,7 +339,7 @@ describe('PlayerLocalTestAudioFUNC', function () { let mySteps = new Array(SRC_STATE, GETDESCRIPTION_PROMISE, GETDESCRIPTION_CALLBACK, RELEASE_STATE, END_STATE); initAudioPlayer(); setCallback(mySteps, done); - audioPlayer.src = fdHead + fileDescriptor.fd; + audioPlayer.src = fdPath; }) /* * diff --git a/multimedia/media/media_js_standard/videoPlayer/src/main/js/test/VideoPlayerAPICallbackTest.test.js b/multimedia/media/media_js_standard/videoPlayer/src/main/js/test/VideoPlayerAPICallbackTest.test.js index 2a9ff7a18809f4db116664a26cc1e3059e569119..99eaba12e88df2ad2c35e234198a8593ae5e7d1a 100644 --- a/multimedia/media/media_js_standard/videoPlayer/src/main/js/test/VideoPlayerAPICallbackTest.test.js +++ b/multimedia/media/media_js_standard/videoPlayer/src/main/js/test/VideoPlayerAPICallbackTest.test.js @@ -418,7 +418,7 @@ describe('VideoPlayerAPICallbackTest', function () { 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); + PREPARE_EVENT, ERROR_EVENT, RELEASE_EVENT, END_EVENT); eventEmitter.emit(mySteps[0], videoPlayer, mySteps, done); }) diff --git a/multimedia/media/media_js_standard/videoPlayer/src/main/js/test/VideoPlayerFuncCallbackTest.test.js b/multimedia/media/media_js_standard/videoPlayer/src/main/js/test/VideoPlayerFuncCallbackTest.test.js index a74e1a4e0da4487515f4da93c1646d2418d815fa..3cb42707e805861adab57c0f2c477089f6e7cbc9 100644 --- a/multimedia/media/media_js_standard/videoPlayer/src/main/js/test/VideoPlayerFuncCallbackTest.test.js +++ b/multimedia/media/media_js_standard/videoPlayer/src/main/js/test/VideoPlayerFuncCallbackTest.test.js @@ -605,7 +605,7 @@ describe('VideoPlayerFuncCallbackTest', function () { }); eventEmitter.on('test_setSurface', () => { - videoPlayer.url = fdHead + fileDescriptor.fd; + videoPlayer.url = fdPath; videoPlayer.setDisplaySurface(surfaceID, (err) => { if (err == null) { expect(videoPlayer.state).assertEqual('idle'); @@ -690,7 +690,6 @@ describe('VideoPlayerFuncCallbackTest', function () { it('SUB_MULTIMEDIA_MEDIA_VIDEO_PLAYER_FUNCTION_CALLBACK_BASE_0100', 0, async function (done) { mediaTestBase.isFileOpen(fileDescriptor, done); let videoPlayer = null; - let fdPath = fdHead + fileDescriptor.fd; let mySteps = new Array(CREATE_EVENT, SETFDSOURCE_EVENT, fileDescriptor, SETSURFACE_EVENT, PREPARE_EVENT, PLAY_EVENT, PAUSE_EVENT, PLAY_EVENT, STOP_EVENT, RESET_EVENT, SETSOURCE_EVENT, fdPath, PREPARE_EVENT, SETLOOP_EVENT, true, PLAY_EVENT, SEEK_EVENT, DURATION_TIME / 2, SEEK_EVENT, 0, diff --git a/multimedia/media/media_js_standard/videoPlayer/src/main/js/test/VideoPlayerFuncPromiseTest.test.js b/multimedia/media/media_js_standard/videoPlayer/src/main/js/test/VideoPlayerFuncPromiseTest.test.js index 47fee6e15ad0fd7693facb4c70b539697376fb60..0f627552deefc9c571a21aeef18c800d32b072a3 100644 --- a/multimedia/media/media_js_standard/videoPlayer/src/main/js/test/VideoPlayerFuncPromiseTest.test.js +++ b/multimedia/media/media_js_standard/videoPlayer/src/main/js/test/VideoPlayerFuncPromiseTest.test.js @@ -318,7 +318,7 @@ describe('VideoPlayerFuncPromiseTest', function () { } }, mediaTestBase.failureCallback).catch(mediaTestBase.catchCallback); - videoPlayer.url = fdHead + fileDescriptor.fd; + videoPlayer.url = fdPath; await videoPlayer.setDisplaySurface(surfaceID).then(() => { expect(videoPlayer.state).assertEqual('idle'); console.info('case setDisplaySurface success'); @@ -494,7 +494,7 @@ describe('VideoPlayerFuncPromiseTest', function () { } }, mediaTestBase.failureCallback).catch(mediaTestBase.catchCallback); - videoPlayer.url = fdHead + fileDescriptor.fd; + videoPlayer.url = fdPath; await videoPlayer.setDisplaySurface(surfaceID).then(() => { expect(videoPlayer.state).assertEqual('idle'); console.info('case setDisplaySurface success');