Browser Video Options

Customize video playback

当前为 2019-07-10 提交的版本,查看 最新版本

作者
Karl Piper
评分
0 0 0
版本
2.2
创建于
2017-10-27
更新于
2019-07-10
大小
5.0 KB
许可证
暂无
适用于
![logo image](https://i.imgur.com/CxT2VtA.png)


About

  • Custom video playback defaults. See settings section for the breakdown.

Works with

  • Local files (file:///example/video.webm)
  • Hosted files (example.com/video.webm)
    • Leave feedback if you discover any issues

Settings

╔══════════════════╦═══════════════════════════════════╦════════════╗
║ Options          ║              Description          ║   Value    ║
╠══════════════════╬═══════════════════════════════════╬════════════╣
║ Controls         ║ Show video control bar            ║ true/false ║
║ noDownload       ║ Hide download control control     ║ true/false ║
║ noRemotePlayback ║ Hide remote playback control      ║ true/false ║
║ noFullscreen     ║ Hide fullscreen control           ║ true/false ║
║ noPip            ║ Hide picture-in-picture control   ║ true/false ║
║ Loop             ║ Replay video after ending         ║ true/false ║
║ Autoplay         ║ Automatically start playing       ║ true/false ║
║ Muted            ║ Mute video (overrides volume)     ║ true/false ║
║ Width            ║ Video width, optional             ║ CSS units  ║
║ Height           ║ Video height, optional            ║ CSS units  ║
║ Poster           ║ Placeholder image, optional       ║ URL        ║
║ Volume           ║ Volume, defaults to 1.0, optional ║ 0.0 - 1.0  ║
╠══════════════════╬═══════════════════════════════════╬════════════╣
║ showSettings     ║ Display settings, for debugging   ║ true/false ║
╚══════════════════╩═══════════════════════════════════╩════════════╝