API 浏览器
视频

使用 QVideo 组件可以轻松嵌入类似 Youtube 的视频。它还会默认调整大小以适应容器。

¥Using the QVideo component makes embedding a video like Youtube easy. It also resizes to fit the container by default.

提示

你可能还想查看我们自己的 HTML 5 视频播放器组件:QMediaPlayer,比 QVideo(本质上是一个指向嵌入 YouTube 视频的 iframe)先进得多。

¥You may also want to check our own HTML 5 video player component: QMediaPlayer, which is far more advanced than QVideo (which essentially is an iframe pointing to embedded Youtube videos).

Loading QVideo API...

用法(Usage)

¥Usage

基本(Basic)

¥Basic

Basic



使用宽高比(With aspect ratio)

¥With aspect ratio

With aspect ratio



等效标记(Markup equivalent)

¥Markup equivalent

HTML markup