Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
3.0k views
in Technique[技术] by (71.8m points)

vue中的video问题请教

用的video引入的ma4,如果是普通视频打开全屏的时候是横屏,如果是直播(其实是录播),打开全屏的时候是竖屏,这个怎么实现,是video根据视频自动判断的吗,因为刚才自己用手机录的打开全屏的时候就是竖屏image.png


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

可以使用H5的Screen Orientation API参考链接


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...