Parcourir la source

fix(回放): 删除多余操作

xieyonghong il y a 3 ans
Parent
commit
515adc11ed

+ 0 - 6
src/pages/media/Device/Playback/index.tsx

@@ -205,12 +205,6 @@ export default () => {
                 playTimeNode.current.onNextPlay();
               }
             }}
-            onDestroy={() => {
-              setPlayStatus(0);
-              if (player.current.getVueInstance) {
-                player.current.getVueInstance().pause();
-              }
-            }}
             onError={() => {
               setPlayStatus(0);
             }}

+ 0 - 1
src/pages/media/Device/Playback/timeLine.tsx

@@ -62,7 +62,6 @@ const Progress = forwardRef((props: Props, ref) => {
   }, [props.dateTime]);
 
   const onChange = (startTime: number, endTime: number, deviceId: string, channelId: string) => {
-    console.log(startTime, endTime, deviceId, channelId);
     setPlayTime(startTime);
     props.onChange({
       startTime: moment(startTime),