const h5Params= {{
id: `myvideo${item.id || item.tempFilePath}`,
src: item.tempFilePath,
autoPlay: false,
loop: false,
muted: false,
preload: true,
controls: system === "iOS",
// ios
playsinline: true,
"webkit-playsinline": true,
// android
"x5-video-player-type": "h5-paeg",
"x5-video-player-fullscreen": true,
"x5-video-orientation": "portraint",
style: {
position: "inherit",
width: "100%",
height: "100%",
top: 0,
left: 0
}
}}
<video className={styles.video_item} {...h5Params} />
taro h5 ios 视频无法全屏播放问题
最新推荐文章于 2024-03-01 16:14:37 发布