| 
					
				 | 
			
			
				@@ -512,12 +512,10 @@ export const play = async () => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         songID: detailState.activeDetail.examSongId, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    startCapture() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     state.playState = state.audiosInstance.getStatus() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     clearAccelerateRefreshPlayer() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     accelerateRefreshPlayer() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    startCapture() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -701,12 +699,10 @@ const cloudToggleState = async () => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         hertz: SettingState.sett.hertz, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    startCapture() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     await promisefiyPostMessage({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       api: 'cloudSuspend', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    endCapture() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   const cloudGetMediaStatused = await promisefiyPostMessage({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     api: 'cloudGetMediaStatus', 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -1008,50 +1004,23 @@ export const noteClick = (evt: MouseEvent) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 let playStartTime: number = 0 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 export const startCapture = async () => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  if (detailState.activeDetail?.isAppPlay) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    playStartTime = new Date().getTime() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    console.log('startCapture', playStartTime) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  // console.log('startCapture:',SettingState.sett.camera, browserInfo.isApp, !state.captureStatus, state.evaluatingStatus, SettingState.eva.save) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  console.log('SettingState.sett.camera:', SettingState.sett.camera, " SettingState.eva.save:",  SettingState.eva.save) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   if ( 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     SettingState.sett.camera && 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    browserInfo.isApp && 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    !state.captureStatus && 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    state.evaluatingStatus && 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     SettingState.eva.save 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   ) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    state.captureStatus = true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     postMessage({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       api: 'startCapture', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    }, () => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      postMessage({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        api: 'setCaptureMode', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        content: { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          mode: 'evaluating', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 export const endCapture = async () => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  if (detailState.activeDetail?.isAppPlay) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    const playTime = new Date().getTime() - playStartTime 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    if (playStartTime !== 0 && playTime > 0) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      state.audiosInstance?.event.emit('updatePlayTime', playTime / 1000) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      playStartTime = 0 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  if (browserInfo.isApp && state.evaluatingStatus && SettingState.sett.camera && state.captureStatus) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  if (SettingState.eva.save && SettingState.sett.camera ) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     postMessage( 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         api: 'endCapture', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      () => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        state.captureStatus = false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    ) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    evaluatPlayerStop() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 |