Move defined play flags to prefs

They are used only in prefs and it allows starting prefs in web app.
This commit is contained in:
Rafostar
2020-12-15 22:49:06 +01:00
parent a056fac1c1
commit 234451f62a
2 changed files with 19 additions and 19 deletions

View File

@@ -3,28 +3,11 @@ const Debug = imports.clapper_src.debug;
const Misc = imports.clapper_src.misc; const Misc = imports.clapper_src.misc;
const { WebApp } = imports.clapper_src.webApp; const { WebApp } = imports.clapper_src.webApp;
let WebServer;
/* PlayFlags are not exported through GI */
Gst.PlayFlags = {
VIDEO: 1,
AUDIO: 2,
TEXT: 4,
VIS: 8,
SOFT_VOLUME: 16,
NATIVE_AUDIO: 32,
NATIVE_VIDEO: 64,
DOWNLOAD: 128,
BUFFERING: 256,
DEINTERLACE: 512,
SOFT_COLORBALANCE: 1024,
FORCE_FILTERS: 2048,
FORCE_SW_DECODERS: 4096,
};
let { debug } = Debug; let { debug } = Debug;
let { settings } = Misc; let { settings } = Misc;
let WebServer;
var PlayerBase = GObject.registerClass( var PlayerBase = GObject.registerClass(
class ClapperPlayerBase extends GstPlayer.Player class ClapperPlayerBase extends GstPlayer.Player
{ {

View File

@@ -4,6 +4,23 @@ const PrefsBase = imports.clapper_src.prefsBase;
let { settings } = Misc; let { settings } = Misc;
/* PlayFlags are not exported through GI */
Gst.PlayFlags = {
VIDEO: 1,
AUDIO: 2,
TEXT: 4,
VIS: 8,
SOFT_VOLUME: 16,
NATIVE_AUDIO: 32,
NATIVE_VIDEO: 64,
DOWNLOAD: 128,
BUFFERING: 256,
DEINTERLACE: 512,
SOFT_COLORBALANCE: 1024,
FORCE_FILTERS: 2048,
FORCE_SW_DECODERS: 4096,
};
var GeneralPage = GObject.registerClass( var GeneralPage = GObject.registerClass(
class ClapperGeneralPage extends PrefsBase.Grid class ClapperGeneralPage extends PrefsBase.Grid
{ {