diff --git a/multimedia/media/media_js_standard/audioDecoder/src/main/js/test/AudioDecoderFuncCallbackTest.test.js b/multimedia/media/media_js_standard/audioDecoder/src/main/js/test/AudioDecoderFuncCallbackTest.test.js index d24bf42f48005c3bad2076528e6601cc519439ee..4277d6dfbff9026e4213873cddc523383e663ed7 100644 --- a/multimedia/media/media_js_standard/audioDecoder/src/main/js/test/AudioDecoderFuncCallbackTest.test.js +++ b/multimedia/media/media_js_standard/audioDecoder/src/main/js/test/AudioDecoderFuncCallbackTest.test.js @@ -712,7 +712,7 @@ describe('AudioDecoderFuncCallback', function () { audioDecodeProcessor.start(async(err) => { expect(err).assertUndefined(); console.info(`case start 1`); - await sleep(2000); + await sleep(500); eventEmitter.emit('flush'); }) }); diff --git a/multimedia/media/media_js_standard/audioDecoder/src/main/js/test/AudioDecoderFuncPromiseTest.test.js b/multimedia/media/media_js_standard/audioDecoder/src/main/js/test/AudioDecoderFuncPromiseTest.test.js index 21050dba4eca18b351f08b3f5ca131c29ad288cb..e39d9cab4bfa5197ec6fdcaa855d34fef681d364 100644 --- a/multimedia/media/media_js_standard/audioDecoder/src/main/js/test/AudioDecoderFuncPromiseTest.test.js +++ b/multimedia/media/media_js_standard/audioDecoder/src/main/js/test/AudioDecoderFuncPromiseTest.test.js @@ -644,7 +644,7 @@ describe('AudioDecoderFuncPromise', function () { await audioDecodeProcessor.start().then(() => { console.info("case start success"); }, failCallback).catch(failCatch); - await sleep(3000).then(() => { + await sleep(500).then(() => { inputQueue = []; outputQueue = []; audioDecodeProcessor.flush().then(() => { diff --git a/multimedia/media/media_js_standard/audioEncoder/src/main/js/test/AudioEncoderFuncCallbackTest.test.js b/multimedia/media/media_js_standard/audioEncoder/src/main/js/test/AudioEncoderFuncCallbackTest.test.js index 904541c64bb3c407b8a72fad50cf1d94c75f216e..033c69c7845f52021127c7aae12d3e781b37ab84 100644 --- a/multimedia/media/media_js_standard/audioEncoder/src/main/js/test/AudioEncoderFuncCallbackTest.test.js +++ b/multimedia/media/media_js_standard/audioEncoder/src/main/js/test/AudioEncoderFuncCallbackTest.test.js @@ -543,7 +543,7 @@ describe('AudioEncoderFuncCallback', function () { audioEncodeProcessor.start(async(err) => { expect(err).assertUndefined(); console.info(`case start 1`); - await sleep(2000); + await sleep(500); eventEmitter.emit('flush'); }) }); diff --git a/multimedia/media/media_js_standard/audioEncoder/src/main/js/test/AudioEncoderFuncPromiseTest.test.js b/multimedia/media/media_js_standard/audioEncoder/src/main/js/test/AudioEncoderFuncPromiseTest.test.js index 34fd04f370baacb179155c8847e763b882e08ff1..85374873cfdf7ae5320fa09073b4fa9101339445 100644 --- a/multimedia/media/media_js_standard/audioEncoder/src/main/js/test/AudioEncoderFuncPromiseTest.test.js +++ b/multimedia/media/media_js_standard/audioEncoder/src/main/js/test/AudioEncoderFuncPromiseTest.test.js @@ -498,7 +498,7 @@ describe('AudioEncoderFuncPromise', function () { await audioEncodeProcessor.start().then(() => { console.info("case start success") }, failCallback).catch(failCatch); - await sleep(5000).then(() => { + await sleep(500).then(() => { inputQueue = []; outputQueue = []; audioEncodeProcessor.flush().then(() => { diff --git a/multimedia/media/media_js_standard/videoDecoder/src/main/js/test/VideoDecoderReliCallbackTest.test.js b/multimedia/media/media_js_standard/videoDecoder/src/main/js/test/VideoDecoderReliCallbackTest.test.js index 74cf79c91b53c933785396025011d786b6578c9a..dd5983c9b3c3a75231254f43053323b699612a8a 100644 --- a/multimedia/media/media_js_standard/videoDecoder/src/main/js/test/VideoDecoderReliCallbackTest.test.js +++ b/multimedia/media/media_js_standard/videoDecoder/src/main/js/test/VideoDecoderReliCallbackTest.test.js @@ -490,7 +490,7 @@ describe('VideoDecoderReliCallbackTest', function () { it('SUB_MEDIA_VIDEO_DECODER_FUNCTION_CALLBACK_01_0300', 0, async function (done) { let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START, DECODE_STEP.WAIT_FOR_ALL_OUTS); - eosFrameId = 50; + eosFrameId = 10; workdoneAtEOS = true; toCreateVideoDecoderByMime('video/avc', mySteps, done); }) @@ -519,9 +519,9 @@ describe('VideoDecoderReliCallbackTest', function () { */ it('SUB_MEDIA_VIDEO_DECODER_FUNCTION_CALLBACK_01_0500', 0, async function (done) { let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START, - DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.STOP, DECODE_STEP.START, DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.STOP, + DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.STOP, DECODE_STEP.START, DECODE_STEP.STOP, DECODE_STEP.RESET, DECODE_STEP.RELEASE); - eosFrameId = 50; + eosFrameId = 10; toCreateVideoDecoderByMime('video/avc', mySteps, done); }) @@ -605,7 +605,7 @@ describe('VideoDecoderReliCallbackTest', function () { it('SUB_MEDIA_VIDEO_DECODER_API_CONFIGURE_CALLBACK_0600', 0, async function (done) { let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START, DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.CONFIGURE, DECODE_STEP.ERROR, DECODE_STEP.RELEASE); - eosFrameId = 50; + eosFrameId = 10; toCreateVideoDecoderByMime('video/avc', mySteps, done); }) @@ -743,7 +743,7 @@ describe('VideoDecoderReliCallbackTest', function () { let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START, DECODE_STEP.WAIT_FOR_EOS , DECODE_STEP.PREPARE, DECODE_STEP.ERROR, DECODE_STEP.RELEASE); - eosFrameId = 50; + eosFrameId = 10; toCreateVideoDecoderByMime('video/avc', mySteps, done); }) @@ -855,7 +855,7 @@ describe('VideoDecoderReliCallbackTest', function () { let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START, DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.START, DECODE_STEP.ERROR, DECODE_STEP.RELEASE); - eosFrameId = 50; + eosFrameId = 10; toCreateVideoDecoderByMime('video/avc', mySteps, done); }) @@ -966,7 +966,7 @@ describe('VideoDecoderReliCallbackTest', function () { it('SUB_MEDIA_VIDEO_DECODER_API_FLUSH_CALLBACK_0700', 0, async function (done) { let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START, DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.FLUSH, DECODE_STEP.RELEASE); - eosFrameId = 50; + eosFrameId = 10; toCreateVideoDecoderByMime('video/avc', mySteps, done); }) @@ -1077,7 +1077,7 @@ describe('VideoDecoderReliCallbackTest', function () { it('SUB_MEDIA_VIDEO_DECODER_API_STOP_CALLBACK_0700', 0, async function (done) { let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START, DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.STOP, DECODE_STEP.RELEASE); - eosFrameId = 50; + eosFrameId = 10; toCreateVideoDecoderByMime('video/avc', mySteps, done); }) @@ -1188,7 +1188,7 @@ describe('VideoDecoderReliCallbackTest', function () { it('SUB_MEDIA_VIDEO_DECODER_API_RESET_CALLBACK_0700', 0, async function (done) { let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START, DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.RESET, DECODE_STEP.RELEASE); - eosFrameId = 50; + eosFrameId = 10; toCreateVideoDecoderByMime('video/avc', mySteps, done); }) @@ -1217,7 +1217,7 @@ describe('VideoDecoderReliCallbackTest', function () { it('SUB_MEDIA_VIDEO_DECODER_API_EOS_CALLBACK_0100', 0, async function (done) { let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START, DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.FLUSH, DECODE_STEP.STOP, DECODE_STEP.RELEASE); - eosFrameId = 50; + eosFrameId = 10; toCreateVideoDecoderByMime('video/avc', mySteps, done); }) @@ -1232,7 +1232,7 @@ describe('VideoDecoderReliCallbackTest', function () { it('SUB_MEDIA_VIDEO_DECODER_API_EOS_CALLBACK_0200', 0, async function (done) { let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START, DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.FLUSH, DECODE_STEP.RELEASE); - eosFrameId = 50; + eosFrameId = 10; toCreateVideoDecoderByMime('video/avc', mySteps, done); }) @@ -1247,7 +1247,7 @@ describe('VideoDecoderReliCallbackTest', function () { it('SUB_MEDIA_VIDEO_DECODER_API_EOS_CALLBACK_0300', 0, async function (done) { let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START, DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.RESET, DECODE_STEP.CONFIGURE, DECODE_STEP.RELEASE); - eosFrameId = 50; + eosFrameId = 10; toCreateVideoDecoderByMime('video/avc', mySteps, done); }) @@ -1262,7 +1262,7 @@ describe('VideoDecoderReliCallbackTest', function () { it('SUB_MEDIA_VIDEO_DECODER_API_EOS_CALLBACK_0400', 0, async function (done) { let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START, DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.STOP, DECODE_STEP.START, DECODE_STEP.RELEASE); - eosFrameId = 50; + eosFrameId = 10; toCreateVideoDecoderByMime('video/avc', mySteps, done); }) @@ -1277,7 +1277,7 @@ describe('VideoDecoderReliCallbackTest', function () { it('SUB_MEDIA_VIDEO_DECODER_API_EOS_CALLBACK_0500', 0, async function (done) { let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START, DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.STOP, DECODE_STEP.START, DECODE_STEP.STOP, DECODE_STEP.RELEASE); - eosFrameId = 50; + eosFrameId = 10; toCreateVideoDecoderByMime('video/avc', mySteps, done); }) }) diff --git a/multimedia/media/media_js_standard/videoDecoder/src/main/js/test/VideoDecoderReliPromiseTest.test.js b/multimedia/media/media_js_standard/videoDecoder/src/main/js/test/VideoDecoderReliPromiseTest.test.js index 40fa6293f51b14f3855f34bd381ce9a18a793ed7..80e03fbe194561e2483a93f5fbd77dcd65e10376 100644 --- a/multimedia/media/media_js_standard/videoDecoder/src/main/js/test/VideoDecoderReliPromiseTest.test.js +++ b/multimedia/media/media_js_standard/videoDecoder/src/main/js/test/VideoDecoderReliPromiseTest.test.js @@ -484,7 +484,7 @@ describe('VideoDecoderReliPromiseTest', function () { it('SUB_MEDIA_VIDEO_DECODER_FUNCTION_PROMISE_01_0300', 0, async function (done) { let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START, DECODE_STEP.WAIT_FOR_ALL_OUTS); - eosFrameId = 50; + eosFrameId = 10; workdoneAtEOS = true; toCreateVideoDecoderByMime('video/avc', mySteps, done); }) @@ -513,9 +513,9 @@ describe('VideoDecoderReliPromiseTest', function () { */ it('SUB_MEDIA_VIDEO_DECODER_FUNCTION_PROMISE_01_0500', 0, async function (done) { let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START, - DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.STOP, DECODE_STEP.START, DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.STOP, + DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.STOP, DECODE_STEP.START, DECODE_STEP.STOP, DECODE_STEP.RESET, DECODE_STEP.RELEASE); - eosFrameId = 50; + eosFrameId = 10; toCreateVideoDecoderByMime('video/avc', mySteps, done); }) @@ -599,7 +599,7 @@ describe('VideoDecoderReliPromiseTest', function () { it('SUB_MEDIA_VIDEO_DECODER_API_CONFIGURE_PROMISE_0600', 0, async function (done) { let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START, DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.CONFIGURE, DECODE_STEP.ERROR, DECODE_STEP.RELEASE); - eosFrameId = 50; + eosFrameId = 10; toCreateVideoDecoderByMime('video/avc', mySteps, done); }) @@ -737,7 +737,7 @@ describe('VideoDecoderReliPromiseTest', function () { let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START, DECODE_STEP.WAIT_FOR_EOS , DECODE_STEP.PREPARE, DECODE_STEP.ERROR, DECODE_STEP.RELEASE); - eosFrameId = 50; + eosFrameId = 10; toCreateVideoDecoderByMime('video/avc', mySteps, done); }) @@ -849,7 +849,7 @@ describe('VideoDecoderReliPromiseTest', function () { let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START, DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.START, DECODE_STEP.ERROR, DECODE_STEP.RELEASE); - eosFrameId = 50; + eosFrameId = 10; toCreateVideoDecoderByMime('video/avc', mySteps, done); }) @@ -960,7 +960,7 @@ describe('VideoDecoderReliPromiseTest', function () { it('SUB_MEDIA_VIDEO_DECODER_API_FLUSH_PROMISE_0700', 0, async function (done) { let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START, DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.FLUSH, DECODE_STEP.RELEASE); - eosFrameId = 50; + eosFrameId = 10; toCreateVideoDecoderByMime('video/avc', mySteps, done); }) @@ -1071,7 +1071,7 @@ describe('VideoDecoderReliPromiseTest', function () { it('SUB_MEDIA_VIDEO_DECODER_API_STOP_PROMISE_0700', 0, async function (done) { let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START, DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.STOP, DECODE_STEP.RELEASE); - eosFrameId = 50; + eosFrameId = 10; toCreateVideoDecoderByMime('video/avc', mySteps, done); }) @@ -1182,7 +1182,7 @@ describe('VideoDecoderReliPromiseTest', function () { it('SUB_MEDIA_VIDEO_DECODER_API_RESET_PROMISE_0700', 0, async function (done) { let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START, DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.RESET, DECODE_STEP.RELEASE); - eosFrameId = 50; + eosFrameId = 10; toCreateVideoDecoderByMime('video/avc', mySteps, done); }) @@ -1211,7 +1211,7 @@ describe('VideoDecoderReliPromiseTest', function () { it('SUB_MEDIA_VIDEO_DECODER_API_EOS_PROMISE_0100', 0, async function (done) { let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START, DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.FLUSH, DECODE_STEP.STOP, DECODE_STEP.RELEASE); - eosFrameId = 50; + eosFrameId = 10; toCreateVideoDecoderByMime('video/avc', mySteps, done); }) @@ -1226,7 +1226,7 @@ describe('VideoDecoderReliPromiseTest', function () { it('SUB_MEDIA_VIDEO_DECODER_API_EOS_PROMISE_0200', 0, async function (done) { let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START, DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.FLUSH, DECODE_STEP.RELEASE); - eosFrameId = 50; + eosFrameId = 10; toCreateVideoDecoderByMime('video/avc', mySteps, done); }) @@ -1241,7 +1241,7 @@ describe('VideoDecoderReliPromiseTest', function () { it('SUB_MEDIA_VIDEO_DECODER_API_EOS_PROMISE_0300', 0, async function (done) { let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START, DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.RESET, DECODE_STEP.CONFIGURE, DECODE_STEP.RELEASE); - eosFrameId = 50; + eosFrameId = 10; toCreateVideoDecoderByMime('video/avc', mySteps, done); }) @@ -1256,7 +1256,7 @@ describe('VideoDecoderReliPromiseTest', function () { it('SUB_MEDIA_VIDEO_DECODER_API_EOS_PROMISE_0400', 0, async function (done) { let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START, DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.STOP, DECODE_STEP.START, DECODE_STEP.RELEASE); - eosFrameId = 50; + eosFrameId = 10; toCreateVideoDecoderByMime('video/avc', mySteps, done); }) @@ -1271,7 +1271,7 @@ describe('VideoDecoderReliPromiseTest', function () { it('SUB_MEDIA_VIDEO_DECODER_API_EOS_PROMISE_0500', 0, async function (done) { let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START, DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.STOP, DECODE_STEP.START, DECODE_STEP.STOP, DECODE_STEP.RELEASE); - eosFrameId = 50; + eosFrameId = 10; toCreateVideoDecoderByMime('video/avc', mySteps, done); }) }) diff --git a/multimedia/media/media_js_standard/videoDecoder/src/main/js/test/VideoDecoderSoftwareReliCallbackTest.test.js b/multimedia/media/media_js_standard/videoDecoder/src/main/js/test/VideoDecoderSoftwareReliCallbackTest.test.js index 54fd76ece17aafd9fb1c0b7b6b4a1e13ef14cb7a..5c6f644ead7ee6b82ca642ce5385fcd10b6e9dfa 100644 --- a/multimedia/media/media_js_standard/videoDecoder/src/main/js/test/VideoDecoderSoftwareReliCallbackTest.test.js +++ b/multimedia/media/media_js_standard/videoDecoder/src/main/js/test/VideoDecoderSoftwareReliCallbackTest.test.js @@ -491,7 +491,7 @@ describe('VideoDecoderSoftwareReliCallbackTest', function () { it('SUB_MEDIA_VIDEO_SOFTWARE_DECODER_FUNCTION_CALLBACK_01_0300', 0, async function (done) { let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START, DECODE_STEP.WAIT_FOR_ALL_OUTS); - eosFrameId = 50; + eosFrameId = 10; workdoneAtEOS = true; toCreateVideoDecoderByName('avdec_h264', mySteps, done); }) @@ -520,9 +520,9 @@ describe('VideoDecoderSoftwareReliCallbackTest', function () { */ it('SUB_MEDIA_VIDEO_SOFTWARE_DECODER_FUNCTION_CALLBACK_01_0500', 0, async function (done) { let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START, - DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.STOP, DECODE_STEP.START, DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.STOP, + DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.STOP, DECODE_STEP.START, DECODE_STEP.STOP, DECODE_STEP.RESET, DECODE_STEP.RELEASE); - eosFrameId = 50; + eosFrameId = 10; toCreateVideoDecoderByName('avdec_h264', mySteps, done); }) @@ -606,7 +606,7 @@ describe('VideoDecoderSoftwareReliCallbackTest', function () { it('SUB_MEDIA_VIDEO_SOFTWARE_DECODER_API_CONFIGURE_CALLBACK_0600', 0, async function (done) { let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START, DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.CONFIGURE, DECODE_STEP.ERROR, DECODE_STEP.RELEASE); - eosFrameId = 50; + eosFrameId = 10; toCreateVideoDecoderByName('avdec_h264', mySteps, done); }) @@ -744,7 +744,7 @@ describe('VideoDecoderSoftwareReliCallbackTest', function () { let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START, DECODE_STEP.WAIT_FOR_EOS , DECODE_STEP.PREPARE, DECODE_STEP.ERROR, DECODE_STEP.RELEASE); - eosFrameId = 50; + eosFrameId = 10; toCreateVideoDecoderByName('avdec_h264', mySteps, done); }) @@ -856,7 +856,7 @@ describe('VideoDecoderSoftwareReliCallbackTest', function () { let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START, DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.START, DECODE_STEP.ERROR, DECODE_STEP.RELEASE); - eosFrameId = 50; + eosFrameId = 10; toCreateVideoDecoderByName('avdec_h264', mySteps, done); }) @@ -967,7 +967,7 @@ describe('VideoDecoderSoftwareReliCallbackTest', function () { it('SUB_MEDIA_VIDEO_SOFTWARE_DECODER_API_FLUSH_CALLBACK_0700', 0, async function (done) { let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START, DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.FLUSH, DECODE_STEP.RELEASE); - eosFrameId = 50; + eosFrameId = 10; toCreateVideoDecoderByName('avdec_h264', mySteps, done); }) @@ -1078,7 +1078,7 @@ describe('VideoDecoderSoftwareReliCallbackTest', function () { it('SUB_MEDIA_VIDEO_SOFTWARE_DECODER_API_STOP_CALLBACK_0700', 0, async function (done) { let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START, DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.STOP, DECODE_STEP.RELEASE); - eosFrameId = 50; + eosFrameId = 10; toCreateVideoDecoderByName('avdec_h264', mySteps, done); }) @@ -1189,7 +1189,7 @@ describe('VideoDecoderSoftwareReliCallbackTest', function () { it('SUB_MEDIA_VIDEO_SOFTWARE_DECODER_API_RESET_CALLBACK_0700', 0, async function (done) { let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START, DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.RESET, DECODE_STEP.RELEASE); - eosFrameId = 50; + eosFrameId = 10; toCreateVideoDecoderByName('avdec_h264', mySteps, done); }) @@ -1218,7 +1218,7 @@ describe('VideoDecoderSoftwareReliCallbackTest', function () { it('SUB_MEDIA_VIDEO_SOFTWARE_DECODER_API_EOS_CALLBACK_0100', 0, async function (done) { let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START, DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.FLUSH, DECODE_STEP.STOP, DECODE_STEP.RELEASE); - eosFrameId = 50; + eosFrameId = 10; toCreateVideoDecoderByName('avdec_h264', mySteps, done); }) @@ -1233,7 +1233,7 @@ describe('VideoDecoderSoftwareReliCallbackTest', function () { it('SUB_MEDIA_VIDEO_SOFTWARE_DECODER_API_EOS_CALLBACK_0200', 0, async function (done) { let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START, DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.FLUSH, DECODE_STEP.RELEASE); - eosFrameId = 50; + eosFrameId = 10; toCreateVideoDecoderByName('avdec_h264', mySteps, done); }) @@ -1248,7 +1248,7 @@ describe('VideoDecoderSoftwareReliCallbackTest', function () { it('SUB_MEDIA_VIDEO_SOFTWARE_DECODER_API_EOS_CALLBACK_0300', 0, async function (done) { let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START, DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.RESET, DECODE_STEP.CONFIGURE, DECODE_STEP.RELEASE); - eosFrameId = 50; + eosFrameId = 10; toCreateVideoDecoderByName('avdec_h264', mySteps, done); }) @@ -1263,7 +1263,7 @@ describe('VideoDecoderSoftwareReliCallbackTest', function () { it('SUB_MEDIA_VIDEO_SOFTWARE_DECODER_API_EOS_CALLBACK_0400', 0, async function (done) { let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START, DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.STOP, DECODE_STEP.START, DECODE_STEP.RELEASE); - eosFrameId = 50; + eosFrameId = 10; toCreateVideoDecoderByName('avdec_h264', mySteps, done); }) @@ -1278,7 +1278,7 @@ describe('VideoDecoderSoftwareReliCallbackTest', function () { it('SUB_MEDIA_VIDEO_SOFTWARE_DECODER_API_EOS_CALLBACK_0500', 0, async function (done) { let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START, DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.STOP, DECODE_STEP.START, DECODE_STEP.STOP, DECODE_STEP.RELEASE); - eosFrameId = 50; + eosFrameId = 10; toCreateVideoDecoderByName('avdec_h264', mySteps, done); }) }) diff --git a/multimedia/media/media_js_standard/videoDecoder/src/main/js/test/VideoDecoderSoftwareReliPromiseTest.test.js b/multimedia/media/media_js_standard/videoDecoder/src/main/js/test/VideoDecoderSoftwareReliPromiseTest.test.js index 3279c45c63e2a397f0fa2154101d57f236f13098..a134ff3474df63195e84df7581ab410430555934 100644 --- a/multimedia/media/media_js_standard/videoDecoder/src/main/js/test/VideoDecoderSoftwareReliPromiseTest.test.js +++ b/multimedia/media/media_js_standard/videoDecoder/src/main/js/test/VideoDecoderSoftwareReliPromiseTest.test.js @@ -486,7 +486,7 @@ describe('VideoDecoderSoftwareReliPromiseTest', function () { it('SUB_MEDIA_VIDEO_SOFTWARE_DECODER_FUNCTION_PROMISE_01_0300', 0, async function (done) { let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START, DECODE_STEP.WAIT_FOR_ALL_OUTS); - eosFrameId = 50; + eosFrameId = 10; workdoneAtEOS = true; toCreateVideoDecoderByName('avdec_h264', mySteps, done); }) @@ -515,9 +515,9 @@ describe('VideoDecoderSoftwareReliPromiseTest', function () { */ it('SUB_MEDIA_VIDEO_SOFTWARE_DECODER_FUNCTION_PROMISE_01_0500', 0, async function (done) { let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START, - DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.STOP, DECODE_STEP.START, DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.STOP, + DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.STOP, DECODE_STEP.START, DECODE_STEP.STOP, DECODE_STEP.RESET, DECODE_STEP.RELEASE); - eosFrameId = 50; + eosFrameId = 10; toCreateVideoDecoderByName('avdec_h264', mySteps, done); }) @@ -601,7 +601,7 @@ describe('VideoDecoderSoftwareReliPromiseTest', function () { it('SUB_MEDIA_VIDEO_SOFTWARE_DECODER_API_CONFIGURE_PROMISE_0600', 0, async function (done) { let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START, DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.CONFIGURE, DECODE_STEP.ERROR, DECODE_STEP.RELEASE); - eosFrameId = 50; + eosFrameId = 10; toCreateVideoDecoderByName('avdec_h264', mySteps, done); }) @@ -739,7 +739,7 @@ describe('VideoDecoderSoftwareReliPromiseTest', function () { let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START, DECODE_STEP.WAIT_FOR_EOS , DECODE_STEP.PREPARE, DECODE_STEP.ERROR, DECODE_STEP.RELEASE); - eosFrameId = 50; + eosFrameId = 10; toCreateVideoDecoderByName('avdec_h264', mySteps, done); }) @@ -851,7 +851,7 @@ describe('VideoDecoderSoftwareReliPromiseTest', function () { let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START, DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.START, DECODE_STEP.ERROR, DECODE_STEP.RELEASE); - eosFrameId = 50; + eosFrameId = 10; toCreateVideoDecoderByName('avdec_h264', mySteps, done); }) @@ -962,7 +962,7 @@ describe('VideoDecoderSoftwareReliPromiseTest', function () { it('SUB_MEDIA_VIDEO_SOFTWARE_DECODER_API_FLUSH_PROMISE_0700', 0, async function (done) { let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START, DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.FLUSH, DECODE_STEP.RELEASE); - eosFrameId = 50; + eosFrameId = 10; toCreateVideoDecoderByName('avdec_h264', mySteps, done); }) @@ -1073,7 +1073,7 @@ describe('VideoDecoderSoftwareReliPromiseTest', function () { it('SUB_MEDIA_VIDEO_SOFTWARE_DECODER_API_STOP_PROMISE_0700', 0, async function (done) { let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START, DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.STOP, DECODE_STEP.RELEASE); - eosFrameId = 50; + eosFrameId = 10; toCreateVideoDecoderByName('avdec_h264', mySteps, done); }) @@ -1184,7 +1184,7 @@ describe('VideoDecoderSoftwareReliPromiseTest', function () { it('SUB_MEDIA_VIDEO_SOFTWARE_DECODER_API_RESET_PROMISE_0700', 0, async function (done) { let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START, DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.RESET, DECODE_STEP.RELEASE); - eosFrameId = 50; + eosFrameId = 10; toCreateVideoDecoderByName('avdec_h264', mySteps, done); }) @@ -1213,7 +1213,7 @@ describe('VideoDecoderSoftwareReliPromiseTest', function () { it('SUB_MEDIA_VIDEO_SOFTWARE_DECODER_API_EOS_PROMISE_0100', 0, async function (done) { let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START, DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.FLUSH, DECODE_STEP.STOP, DECODE_STEP.RELEASE); - eosFrameId = 50; + eosFrameId = 10; toCreateVideoDecoderByName('avdec_h264', mySteps, done); }) @@ -1228,7 +1228,7 @@ describe('VideoDecoderSoftwareReliPromiseTest', function () { it('SUB_MEDIA_VIDEO_SOFTWARE_DECODER_API_EOS_PROMISE_0200', 0, async function (done) { let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START, DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.FLUSH, DECODE_STEP.RELEASE); - eosFrameId = 50; + eosFrameId = 10; toCreateVideoDecoderByName('avdec_h264', mySteps, done); }) @@ -1243,7 +1243,7 @@ describe('VideoDecoderSoftwareReliPromiseTest', function () { it('SUB_MEDIA_VIDEO_SOFTWARE_DECODER_API_EOS_PROMISE_0300', 0, async function (done) { let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START, DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.RESET, DECODE_STEP.CONFIGURE, DECODE_STEP.RELEASE); - eosFrameId = 50; + eosFrameId = 10; toCreateVideoDecoderByName('avdec_h264', mySteps, done); }) @@ -1258,7 +1258,7 @@ describe('VideoDecoderSoftwareReliPromiseTest', function () { it('SUB_MEDIA_VIDEO_SOFTWARE_DECODER_API_EOS_PROMISE_0400', 0, async function (done) { let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START, DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.STOP, DECODE_STEP.START, DECODE_STEP.RELEASE); - eosFrameId = 50; + eosFrameId = 10; toCreateVideoDecoderByName('avdec_h264', mySteps, done); }) @@ -1273,7 +1273,7 @@ describe('VideoDecoderSoftwareReliPromiseTest', function () { it('SUB_MEDIA_VIDEO_SOFTWARE_DECODER_API_EOS_PROMISE_0500', 0, async function (done) { let mySteps = new Array(DECODE_STEP.CONFIGURE, DECODE_STEP.SETSURFACE, DECODE_STEP.PREPARE, DECODE_STEP.START, DECODE_STEP.WAIT_FOR_EOS, DECODE_STEP.STOP, DECODE_STEP.START, DECODE_STEP.STOP, DECODE_STEP.RELEASE); - eosFrameId = 50; + eosFrameId = 10; toCreateVideoDecoderByName('avdec_h264', mySteps, done); }) })