san*_*uda 3 javascript css video.js
我正在为我的网站使用 video.js 播放器。我想改变控制栏元素的位置。
目前,它显示播放/暂停、音量、进度条和全屏。
我怎样才能改变订单?
我的代码如下:
var videojs = videojs('video-player', {
techOrder: ["youtube", "html5"],
preload: 'auto',
controls: true,
autoplay: true,
fluid: true,
controlBar: {
CurrentTimeDisplay: true,
TimeDivider: true,
DurationDisplay: true
},
plugins: {
videoJsResolutionSwitcher: {
default: 'high',
dynamicLabel: true
}
}
}).ready(function() {
var player = this;
......
Run Code Online (Sandbox Code Playgroud)
san*_*uda 10
我可以通过进行如下更改来解决:
var videojs = videojs('video-player', {
techOrder: ["youtube", "html5"],
preload: 'auto',
controls: video.player.controls,
autoplay: video.player.autoplay,
fluid: true,
controlBar: {
children: [
"playToggle",
"volumeMenuButton",
"durationDisplay",
"timeDivider",
"currentTimeDisplay",
"progressControl",
"remainingTimeDisplay",
"fullscreenToggle"
]
},
plugins: {
videoJsResolutionSwitcher: {
default: 'high',
dynamicLabel: true
}
}
}).ready(function() {
var player = this;
Run Code Online (Sandbox Code Playgroud)
我认为它会在未来帮助某人。
来自JS Bin 的想法
| 归档时间: |
|
| 查看次数: |
6356 次 |
| 最近记录: |