fix chromecast button

This commit is contained in:
Dimitrios Panteleimon Giakatos
2020-07-24 11:37:27 +03:00
parent 44a3cd923d
commit 7da6113c8f
3 changed files with 5 additions and 3 deletions
+3 -1
View File
@@ -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
View File
@@ -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,