|
|
@ -9,18 +9,30 @@ interface Props { |
|
|
|
|
|
|
|
|
|
|
|
const VideoFull: FC<Props> = () => { |
|
|
|
const VideoFull: FC<Props> = () => { |
|
|
|
const {url} = Taro.useRouter().params |
|
|
|
const {url} = Taro.useRouter().params |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Taro.useLoad(() => { |
|
|
|
|
|
|
|
if (!url) { |
|
|
|
|
|
|
|
Taro.showModal({ |
|
|
|
|
|
|
|
title: '播放地址错', |
|
|
|
|
|
|
|
success(){ |
|
|
|
|
|
|
|
Taro.navigateBack() |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
return ( |
|
|
|
return ( |
|
|
|
<Video |
|
|
|
<Video |
|
|
|
className={styles.video} |
|
|
|
className={styles.video} |
|
|
|
|
|
|
|
controls |
|
|
|
src={url!} |
|
|
|
src={url!} |
|
|
|
autoplay |
|
|
|
autoplay |
|
|
|
loop |
|
|
|
showCenterPlayBtn |
|
|
|
showFullscreenBtn={false} |
|
|
|
|
|
|
|
showPlayBtn={false} |
|
|
|
|
|
|
|
showCenterPlayBtn={true} |
|
|
|
|
|
|
|
enableProgressGesture={false} |
|
|
|
|
|
|
|
enablePlayGesture |
|
|
|
enablePlayGesture |
|
|
|
autoPauseIfOpenNative |
|
|
|
autoPauseIfOpenNative |
|
|
|
|
|
|
|
autoPauseIfNavigate |
|
|
|
|
|
|
|
showFullscreenBtn={false} |
|
|
|
|
|
|
|
enableProgressGesture={false} |
|
|
|
/> |
|
|
|
/> |
|
|
|
) |
|
|
|
) |
|
|
|
} |
|
|
|
} |
|
|
|