mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-31 00:11:59 +02:00
22 lines
426 B
JavaScript
22 lines
426 B
JavaScript
const { GObject } = imports.gi;
|
|
const { WebClient } = imports.clapper_src.webClient;
|
|
|
|
var PlayerRemote = GObject.registerClass(
|
|
class ClapperPlayerRemote extends GObject.Object
|
|
{
|
|
_init()
|
|
{
|
|
super._init();
|
|
|
|
this.webclient = new WebClient();
|
|
}
|
|
|
|
set_playlist(playlist)
|
|
{
|
|
this.webclient.sendMessage({
|
|
action: 'set_playlist',
|
|
value: playlist
|
|
});
|
|
}
|
|
});
|