Do not import GstClapper for remote app

No need to import and initialize whole GStreamer for web application if the only thing needed there is a single enum.
This commit is contained in:
Rafał Dzięgiel
2021-02-22 16:34:08 +01:00
parent 8df5c38357
commit 6950cf1bbb
5 changed files with 19 additions and 11 deletions

View File

@@ -1,6 +1,13 @@
const { GObject } = imports.gi;
const { WebClient } = imports.src.webClient;
var ClapperState = {
STOPPED: 0,
BUFFERING: 1,
PAUSED: 2,
PLAYING: 3,
};
var PlayerRemote = GObject.registerClass(
class ClapperPlayerRemote extends GObject.Object
{