mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-30 07:42:23 +02:00
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:
@@ -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
|
||||||
{
|
{
|
||||||
|
@@ -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
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user