Lines Matching refs:state
245 avPlayer.on('stateChange', async (state, reason) => {
246 console.info(`case stateChange called, state is ${state}, reason is ${reason}`);
252 console.info(`case state is ${state}`);
253 switch (state) {
255 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.INITIALIZED);
270 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.PREPARED);
285 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.PLAYING);
290 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.PLAYING);
300 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.PAUSED);
308 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.COMPLETED);
315 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.IDLE);
323 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.STOPPED);
326 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.IDLE);
332 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.RELEASED);
365 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.PAUSED);
371 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.PLAYING);
380 if (avPlayer.state == AV_PLAYER_STATE.PREPARED) {
390 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.PLAYING);
426 avPlayer.on('stateChange', async (state, reason) => {
427 console.info(`case stateChange called, state is ${state}, reason is ${reason}`);
428 console.info(`case state is ${state}`);
429 switch (state) {
432 console.info('playPauseLoopWithCallBack play state is INITIALIZED')
437 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.PREPARED);
438 console.info('playPauseLoopWithCallBack play state is PREPARED')
443 console.info('playPauseLoopWithCallBack play state is PLAYING')
444 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.PLAYING);
464 console.info('playPauseLoopWithCallBack play state is PAUSED')
465 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.PAUSED);
514 avPlayer.on('stateChange', async (state, reason) => {
515 console.info(`case stateChange called, state is ${state}, reason is ${reason}`);
516 console.info(`case state is ${state}`);
517 switch (state) {
519 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.IDLE);
524 console.info('createToReleaseLoop play state is INITIALIZED')
529 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.RELEASED);
576 avPlayer.on('stateChange', async (state, reason) => {
577 console.info(`case stateChange called, state is ${state}, reason is ${reason}`);
578 console.info(`case state is ${state}`);
579 switch (state) {
582 console.info('playToCompletedLoop play state is INITIALIZED')
590 console.info('playToCompletedLoop play state is PLAYING')
591 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.PLAYING);
610 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.COMPLETED);
640 if(avPlayer.state == AV_PLAYER_STATE.INITIALIZED) {
648 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.PLAYING);
660 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.RELEASED);
682 avPlayer.on('stateChange', async (state, reason) => {
683 console.info(`case stateChange called, state is ${state}, reason is ${reason}`);
684 console.info(`case state is ${state}`);
685 switch (state) {
688 console.info('seekLoopWithoutCallbackLoop play state is INITIALIZED')
693 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.PREPARED);
698 console.info('seekLoopWithoutCallbackLoop play state is PLAYING')
699 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.PLAYING);
709 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.RELEASED);
746 avPlayer.on('stateChange', async (state, reason) => {
747 console.info(`case stateChange called, state is ${state}, reason is ${reason}`);
748 console.info(`case state is ${state}`);
749 switch (state) {
752 console.info('prepareToStopLoop play state is INITIALIZED')
757 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.PREPARED);
762 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.STOPPED);
768 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.RELEASED);
805 avPlayer.on('stateChange', async (state, reason) => {
806 console.info(`case stateChange called, state is ${state}, reason is ${reason}`);
807 console.info(`case state is ${state}`);
808 switch (state) {
811 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.IDLE);
817 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.RELEASED);
828 console.info('prepareToResetLoop play state is INITIALIZED')
833 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.PREPARED);
838 console.info('prepareToResetLoop play state is PLAYING')
839 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.PLAYING);
873 avPlayer.on('stateChange', async (state, reason) => {
874 console.info(`case stateChange called, state is ${state}, reason is ${reason}`);
875 console.info(`case state is ${state}`);
876 switch (state) {
878 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.IDLE);
883 console.info('createToReleaseLoop2 play state is INITIALIZED')
887 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.PREPARED);
892 console.info('createToReleaseLoop2 play state is PLAYING')
893 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.PLAYING);
897 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.RELEASED);
946 avPlayer.on('stateChange', async (state, reason) => {
947 console.info(`createTimeCallback stateChange called, state is ${state}, reason is ${reason}`);
948 console.info(`createTimeCallback state is ${state}`);
949 switch (state) {
951 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.IDLE);
960 console.info('createTimeCallback play state is release')
961 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.RELEASED);
991 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.RELEASED);
1012 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.PREPARED);
1013 console.info('prepareTimeWithoutCallback avPlayer state is prepared')
1022 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.RELEASED);
1044 avPlayer.on('stateChange', async (state, reason) => {
1045 console.info(`case stateChange called, state is ${state}, reason is ${reason}`);
1046 console.info(`case state is ${state}`);
1047 switch (state) {
1049 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.IDLE);
1053 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.RELEASED);
1064 console.info('prepareTimeWithCallback play state is INITIALIZED')
1071 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.PREPARED);
1072 console.info('prepareTimeWithCallback avPlayer state is prepared')
1097 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.PREPARED);
1098 console.info('playTimeWithoutCallback avPlayer state is prepared')
1107 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.PLAYING);
1116 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.RELEASED);
1139 avPlayer.on('stateChange', async (state, reason) => {
1140 console.info(`case stateChange called, state is ${state}, reason is ${reason}`);
1141 console.info(`case state is ${state}`);
1142 switch (state) {
1145 console.info('playTimeCallback play state is INITIALIZED')
1153 console.info('playTimeCallback play state is prepared')
1158 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.PREPARED);
1159 console.info('playTimeCallback avPlayer state is prepared')
1166 console.info('playTimeCallback play state is PLAYING')
1167 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.PLAYING);
1177 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.RELEASED);
1191 console.info('playTimeWithCallback play state is PAUSED')
1192 expect(avPlayer.state).assertEqual('paused');
1215 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.PREPARED);
1216 console.info('pauseTimeWithoutCallback avPlayer state is prepared')
1220 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.PLAYING);
1229 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.PAUSED);
1240 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.RELEASED);
1262 avPlayer.on('stateChange', async (state, reason) => {
1263 console.info(`case stateChange called, state is ${state}, reason is ${reason}`);
1264 console.info(`case state is ${state}`);
1265 switch (state) {
1268 console.info('pauseTimeCallback play state is INITIALIZED')
1276 console.info('pauseTimeCallback play state is prepared')
1281 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.PREPARED);
1282 console.info('pauseTimeCallback avPlayer state is prepared')
1286 console.info('pauseTimeCallback play state is PLAYING')
1287 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.PLAYING);
1295 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.PAUSED);
1305 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.RELEASED);
1331 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.PREPARED);
1332 console.info('stopTimeWithoutCallback avPlayer state is prepared')
1336 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.PLAYING);
1346 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.STOPPED);
1347 console.info('stopTimeWithoutCallback avPlayer state is stop')
1354 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.RELEASED);
1376 avPlayer.on('stateChange', async (state, reason) => {
1377 console.info(`case stateChange called, state is ${state}, reason is ${reason}`);
1378 console.info(`case state is ${state}`);
1379 switch (state) {
1385 console.info('stopTimeCallback play state is INITIALIZED')
1393 console.info('stopTimeCallback play state is prepared')
1398 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.PREPARED);
1399 console.info('stopTimeCallback avPlayer state is prepared')
1406 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.STOPPED);
1415 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.RELEASED);
1441 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.PREPARED);
1442 console.info('resetTimeWithoutCallback avPlayer state is prepared')
1447 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.PLAYING);
1457 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.IDLE);
1466 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.RELEASED);
1488 avPlayer.on('stateChange', async (state, reason) => {
1489 console.info(`case stateChange called, state is ${state}, reason is ${reason}`);
1490 console.info(`case state is ${state}`);
1491 switch (state) {
1493 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.IDLE);
1503 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.RELEASED);
1515 console.info('resetTimeCallback play state is INITIALIZED')
1542 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.RELEASED);
1569 avPlayer.on('stateChange', async (state, reason) => {
1570 console.info(`case stateChange called, state is ${state}, reason is ${reason}`);
1571 console.info(`case state is ${state}`);
1572 switch (state) {
1575 console.info('releaseTimeCallback play state is INITIALIZED')
1581 console.info('releaseTimeCallback play state is release')
1582 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.RELEASED);
1620 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.PREPARED);
1621 console.info('seekTimeWithoutCallback avPlayer state is prepared')
1626 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.PLAYING);
1640 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.RELEASED);
1662 avPlayer.on('stateChange', async (state, reason) => {
1663 console.info(`case stateChange called, state is ${state}, reason is ${reason}`);
1664 console.info(`case state is ${state}`);
1665 switch (state) {
1668 console.info('seekTimeCallback play state is INITIALIZED')
1675 console.info('seekTimeCallback play state is prepared')
1680 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.PREPARED);
1681 console.info('seekTimeCallback avPlayer state is prepared')
1685 console.info('seekTimeCallback play state is PLAYING')
1686 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.PLAYING);
1693 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.RELEASED);
1704 console.info('seekTimeCallback play state is PAUSED')
1705 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.PAUSED);
1735 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.PREPARED);
1736 console.info('getTrackDescriptionTimeWithoutCallback avPlayer state is prepared')
1740 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.PLAYING);
1764 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.RELEASED);
1787 avPlayer.on('stateChange', async (state, reason) => {
1788 console.info(`case stateChange called, state is ${state}, reason is ${reason}`);
1789 console.info(`case state is ${state}`);
1790 switch (state) {
1793 console.info('getTrackDescriptionTimeCallback play state is INITIALIZED')
1800 console.info('getTrackDescriptionTimeCallback play state is prepared')
1805 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.PREPARED);
1806 console.info('getTrackDescriptionTimeCallback avPlayer state is prepared')
1810 console.info('getTrackDescriptionTimeCallback play state is PLAYING')
1811 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.PLAYING);
1817 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.RELEASED);
1846 console.info('getTrackDescriptionTimeCallback play state is PAUSED')
1847 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.PAUSED);
1868 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.PREPARED);
1869 console.info('setSpeedTimeWithoutCallback avPlayer state is prepared')
1881 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.RELEASED);
1903 avPlayer.on('stateChange', async (state, reason) => {
1904 console.info(`case stateChange called, state is ${state}, reason is ${reason}`);
1905 console.info(`case state is ${state}`);
1906 switch (state) {
1909 console.info('setSpeedTimeCallback play state is INITIALIZED')
1917 console.info('setSpeedTimeCallback play state is prepared')
1922 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.PREPARED);
1923 console.info('setSpeedTimeCallback avPlayer state is prepared')
1927 console.info('setSpeedTimeCallback play state is PLAYING')
1928 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.PLAYING);
1932 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.RELEASED);
1945 console.info('setSpeedTimeCallback play state is PAUSED')
1946 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.PAUSED);
1976 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.PREPARED);
1977 console.info('setBitrateTimeWithoutCallback avPlayer state is prepared')
1990 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.RELEASED);
2008 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.PREPARED);
2009 console.info('setVolumeTimeWithoutCallback avPlayer state is prepared')
2022 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.RELEASED);
2044 avPlayer.on('stateChange', async (state, reason) => {
2045 console.info(`case stateChange called, state is ${state}, reason is ${reason}`);
2046 console.info(`case state is ${state}`);
2047 switch (state) {
2050 console.info('setVolumeTimeCallback play state is INITIALIZED')
2058 console.info('setVolumeTimeCallback play state is prepared')
2063 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.PREPARED);
2064 console.info('setVolumeTimeCallback avPlayer state is prepared')
2068 console.info('setVolumeTimeCallback play state is PLAYING')
2069 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.PLAYING);
2073 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.RELEASED);
2087 console.info('setVolumeTimeCallback play state is PAUSED')
2088 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.PAUSED);
2117 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.PREPARED);
2118 console.info('firstFrameTime avPlayer state is prepared')
2129 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.RELEASED);
2146 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.PLAYING);
2150 if(avPlayer.state == AV_PLAYER_STATE.PLAYING){
2157 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.PAUSED);
2170 if(avPlayer.state == AV_PLAYER_STATE.INITIALIZED) {
2175 if(avPlayer.state == AV_PLAYER_STATE.PREPARED){
2187 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.RELEASED);
2196 avPlayer.on('stateChange', async (state, reason) => {
2197 console.info(`case stateChange called, state is ${state}, reason is ${reason}`);
2198 console.info(`case state is ${state}`);
2199 switch (state) {
2202 console.info('setAVPlayerPlay play state is INITIALIZED')
2209 console.info('setAVPlayerPlay play state is PLAYING')
2210 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.PLAYING);
2221 expect(avPlayer.state).assertEqual('completed');
2226 expect(avPlayer.state).assertEqual('released');
2261 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.IDLE);
2280 avPlayer.on('stateChange', async (state, reason) => {
2281 console.info(`case stateChange called, state is ${state}, reason is ${reason}`);
2286 switch (state) {
2288 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.INITIALIZED);
2304 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.PREPARED);
2315 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.PLAYING);
2339 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.RELEASED);
2363 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.IDLE);
2376 expect(avPlayer.state).assertEqual(AV_PLAYER_STATE.PREPARED);