Files
clapper/clapper_src/playerRemote.js
2020-12-15 18:20:48 +01:00

25 lines
525 B
JavaScript

const { GObject } = imports.gi;
const Misc = imports.clapper_src.misc;
const { WebClient } = imports.clapper_src.webClient;
let { settings } = Misc;
var PlayerRemote = GObject.registerClass(
class ClapperPlayerRemote extends GObject.Object
{
_init()
{
super._init();
this.webclient = new WebClient(settings.get_int('webserver-port'));
}
set_playlist(playlist)
{
this.webclient.sendMessage({
action: 'set_playlist',
value: playlist
});
}
});