videojs怎么在控制欄上設(shè)置“當(dāng)前時(shí)間”和“剩余時(shí)間”呢,如下代表,在controlBar里面設(shè)置了“currentTimeDisplay”、“durationDisplay” 但是死活不出來,設(shè)置“fullscreenToggle”、“volumePanel”都能生效,是跟什么設(shè)置沖突了嗎?```<template><div class="contianer"><video ref="videoPlayer" id="my-video" class="video-js vjs-default-skin" controls></video></div></template><script>import 'video.js/dist/video-js.css'import videojs from 'video.js'import 'videojs-contrib-hls'export default {name: 'HelloWorld',data () {return {player: null,options: {textTrackDisplay: false,posterImage: true,errorDisplay: false,controlBar: {currentTimeDisplay: true, // 當(dāng)前時(shí)間timeDivider: true, // 時(shí)間分割線durationDisplay: true, // 總時(shí)間progressControl: true, // 進(jìn)度條remainingTimeDisplay: true, //customControlSpacer: true, //fullscreenToggle: true, // 全屏按鈕volumePanel: false},sources: [{src: 'http://media.w3.org/2010/05/sintel/trailer.mp4',type: 'video/mp4'}]}}},mounted () {this.player = videojs(this.$refs.videoPlayer, this.options, function onPlayerReady () {})}}}</script>```
videojs 怎么在控制條上設(shè)置“當(dāng)前時(shí)間”和“剩余時(shí)間”?
慕粉4204745
2019-07-12 18:37:22