diff --git a/clapper_src/playerBase.js b/clapper_src/playerBase.js index 1dc851fc..a02ed2e1 100644 --- a/clapper_src/playerBase.js +++ b/clapper_src/playerBase.js @@ -3,28 +3,11 @@ const Debug = imports.clapper_src.debug; const Misc = imports.clapper_src.misc; 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 { settings } = Misc; +let WebServer; + var PlayerBase = GObject.registerClass( class ClapperPlayerBase extends GstPlayer.Player { diff --git a/clapper_src/prefs.js b/clapper_src/prefs.js index 57bf7cd5..5f1e09ec 100644 --- a/clapper_src/prefs.js +++ b/clapper_src/prefs.js @@ -4,6 +4,23 @@ const PrefsBase = imports.clapper_src.prefsBase; 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( class ClapperGeneralPage extends PrefsBase.Grid {