fix chromecast button
This commit is contained in:
@@ -36,7 +36,9 @@ class Controller {
|
||||
this.initSubtitleButton();
|
||||
this.initHighlights();
|
||||
this.initAirplayButton();
|
||||
this.initChromecastButton();
|
||||
if (utils.isChrome) {
|
||||
this.initChromecastButton();
|
||||
}
|
||||
if (!utils.isMobile) {
|
||||
this.initVolumeButton();
|
||||
}
|
||||
|
||||
+2
-1
@@ -1,5 +1,6 @@
|
||||
/* global DPLAYER_VERSION */
|
||||
import defaultApiBackend from './api.js';
|
||||
import utils from './utils';
|
||||
|
||||
export default (options) => {
|
||||
// default options
|
||||
@@ -12,7 +13,7 @@ export default (options) => {
|
||||
lang: (navigator.language || navigator.browserLanguage).toLowerCase(),
|
||||
screenshot: false,
|
||||
airplay: true,
|
||||
chromecast: false,
|
||||
chromecast: utils.isChrome,
|
||||
hotkey: true,
|
||||
preload: 'metadata',
|
||||
volume: 0.7,
|
||||
|
||||
Reference in New Issue
Block a user