Commit 2c970ec0f67d283a39fd4c65c68316ec1547262b

Authored by 史婷婷
1 parent bda22930

feat: 视频播放增加控制条

Showing 1 changed file with 1 additions and 2 deletions
@@ -33,10 +33,9 @@ const VideoPlay: React.FC<VideoPlayProps> = (props) => { @@ -33,10 +33,9 @@ const VideoPlay: React.FC<VideoPlayProps> = (props) => {
33 props?.url ? <video 33 props?.url ? <video
34 id={props?.url} 34 id={props?.url}
35 ref={videoRef} 35 ref={videoRef}
  36 + controls={true}
36 autoPlay 37 autoPlay
37 loop 38 loop
38 - muted  
39 - playsInline  
40 className={`${props?.className}`} 39 className={`${props?.className}`}
41 > 40 >
42 <source src={props?.url} type="video/mp4" /> 41 <source src={props?.url} type="video/mp4" />