ソースを参照

关闭手势进度

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 || ''}
                 controls={false}
                 autoplay={false}
+                enableProgressGesture={false}
                 showCenterPlayBtn={false}
-                showBottomProgress={true}
+                showBottomProgress={false}
                 poster={video.videoCoverSnapshotPath}
                 onTimeUpdate={didTimeUpdate}
                 onEnded={onEnded}
@@ -377,7 +378,7 @@ function CustomVideo({ video, current, index, onTimeUpdate, onProgressMove, need
                 </View>
             </View>
 
-            {!showProgressIndicator && <VideoIntroduce detail={video} showRedShareBtn={showRedShareBtn} index={index}/>}
+            {!showProgressIndicator && <VideoIntroduce detail={video} showRedShareBtn={showRedShareBtn} />}
             {showProgressIndicator && <View className='progress-indicator'>
                 <View className='showInfo'>
                     <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 (
         <View className='video-introduce'>
             <View className='video-user-info'>