Add plugin types
This commit is contained in:
@@ -5,6 +5,7 @@ import globalize from '../../scripts/globalize';
|
||||
import castSenderApiLoader from './castSenderApi';
|
||||
import ServerConnections from '../../components/ServerConnections';
|
||||
import alert from '../../components/alert';
|
||||
import { PluginType } from '../../types/plugin.ts';
|
||||
import Events from '../../utils/events.ts';
|
||||
|
||||
// Based on https://github.com/googlecast/CastVideos-chrome/blob/master/CastVideos.js
|
||||
@@ -569,7 +570,7 @@ class ChromecastPlayer {
|
||||
constructor() {
|
||||
// playbackManager needs this
|
||||
this.name = PlayerName;
|
||||
this.type = 'mediaplayer';
|
||||
this.type = PluginType.MediaPlayer;
|
||||
this.id = 'chromecast';
|
||||
this.isLocalPlayer = false;
|
||||
this.lastPlayerData = {};
|
||||
|
||||
Reference in New Issue
Block a user