使用 video.js 进行视频定位 [英] Video orientation using video.js

查看:88
本文介绍了使用 video.js 进行视频定位的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在 video.js 播放器中设置 .mp4 文件的方向?我没有看到诸如 Orientation="Portrait" 之类的属性,但我想知道在运行时设置宽度和高度是否可以做到这一点.

is it possible to set the orientation a .mp4 file in the video.js player? I don't see properties to do so such as Orientation="Portrait", but I was wondering if setting the width and height at runtime would do this.

推荐答案

你应该试试这个插件.

Video.js 缩放旋转

一个可以轻松旋转或放大视频的 videoJS 插件

A videoJS plugin to easily rotate or zoom in a video

https://github.com/xbgmsharp/videojs-rotatezoom

这篇关于使用 video.js 进行视频定位的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆