switch id
This commit is contained in:
parent
8268cb6662
commit
6e0bfa99be
3 changed files with 75 additions and 3 deletions
|
@ -1,6 +1,7 @@
|
|||
import * as electron from 'electron';
|
||||
import * as os from 'os';
|
||||
import {resolve} from 'path';
|
||||
import * as CiderReceiver from '../base/castreceiver';
|
||||
|
||||
export default class ChromecastPlugin {
|
||||
|
||||
|
@ -133,9 +134,8 @@ export default class ChromecastPlugin {
|
|||
|
||||
private loadMedia(client: any, song: any, artist: any, album: any, albumart: any, cb?: any) {
|
||||
// const u = 'http://' + this.getIp() + ':' + server.address().port + '/';
|
||||
const DefaultMediaReceiver : any = require('castv2-client').DefaultMediaReceiver;
|
||||
|
||||
client.launch(DefaultMediaReceiver, (err: any, player: any) => {
|
||||
// const DefaultMediaReceiver : any = require('castv2-client').DefaultMediaReceiver;
|
||||
client.launch(CiderReceiver, (err: any, player: any) => {
|
||||
if (err) {
|
||||
console.log(err);
|
||||
return;
|
||||
|
@ -273,6 +273,7 @@ export default class ChromecastPlugin {
|
|||
return ''
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Base Plugin Details (Eventually implemented into a GUI in settings)
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue