瀏覽代碼

关闭手势进度

harry 1 年之前
父節點
當前提交
82c0a068e9
共有 1 個文件被更改,包括 4 次插入3 次删除
  1. 4 3
      src/components/VideoSwiper/index.tsx

+ 4 - 3
src/components/VideoSwiper/index.tsx

@@ -351,8 +351,9 @@ function CustomVideo({ video, current, index, onTimeUpdate, onProgressMove, need
                 src={video.videoPath || ''}
                 src={video.videoPath || ''}
                 controls={false}
                 controls={false}
                 autoplay={false}
                 autoplay={false}
+                enableProgressGesture={false}
                 showCenterPlayBtn={false}
                 showCenterPlayBtn={false}
-                showBottomProgress={true}
+                showBottomProgress={false}
                 poster={video.videoCoverSnapshotPath}
                 poster={video.videoCoverSnapshotPath}
                 onTimeUpdate={didTimeUpdate}
                 onTimeUpdate={didTimeUpdate}
                 onEnded={onEnded}
                 onEnded={onEnded}
@@ -377,7 +378,7 @@ function CustomVideo({ video, current, index, onTimeUpdate, onProgressMove, need
                 </View>
                 </View>
             </View>
             </View>
 
 
-            {!showProgressIndicator && <VideoIntroduce detail={video} showRedShareBtn={showRedShareBtn} index={index}/>}
+            {!showProgressIndicator && <VideoIntroduce detail={video} showRedShareBtn={showRedShareBtn} />}
             {showProgressIndicator && <View className='progress-indicator'>
             {showProgressIndicator && <View className='progress-indicator'>
                 <View className='showInfo'>
                 <View className='showInfo'>
                     <View className='showInfo-a'>{formatSecondsAsTime(seekTime)}</View>
                     <View className='showInfo-a'>{formatSecondsAsTime(seekTime)}</View>
@@ -396,7 +397,7 @@ function CustomVideo({ video, current, index, onTimeUpdate, onProgressMove, need
     )
     )
 }
 }
 
 
-function VideoIntroduce({ detail, showRedShareBtn, index}) {
+function VideoIntroduce({ detail, showRedShareBtn}) {
     return (
     return (
         <View className='video-introduce'>
         <View className='video-introduce'>
             <View className='video-user-info'>
             <View className='video-user-info'>