| | |
| | | this._opt.isDebug = opt.debug === true; |
| | | this._opt.timeout = typeof opt.timeout === 'number' ? opt.timeout : 30; |
| | | this._opt.supportDblclickFullscreen = opt.supportDblclickFullscreen === true; |
| | | //this._opt.showBandwidth = opt.showBandwidth === true; |
| | | opt.showBandwidth = true; |
| | | this._opt.showBandwidth = opt.showBandwidth === true; |
| | | opt.showBandwidth = false; |
| | | this._opt.operateBtns = Object.assign({ |
| | | fullscreen: true, |
| | | screenshot: true, |
| | | fullscreen: false, |
| | | screenshot: false, |
| | | play: false, |
| | | audio: false |
| | | }, opt.operateBtns || {}); |
| | |
| | | this._trigger('fullscreen', value); |
| | | } |
| | | this._fullscreen = value; |
| | | //解决在预览模式页面无法全屏情况 |
| | | if(this._fullscreen==true){ |
| | | this.resize() |
| | | } |
| | | }, |
| | | get() { |
| | | return this._fullscreen; |