Add progressive video download option

Buffer download whole network video during playback to allow fast seeking for online media. Can be disabled in prefs (enabled by default).
This commit is contained in:
Rafostar
2020-12-08 20:31:45 +01:00
parent 6ea210ff12
commit 8dfede27ac
5 changed files with 69 additions and 13 deletions

View File

@@ -1,4 +1,4 @@
const { GObject, Gtk, Pango } = imports.gi;
const { GObject, Gst, Gtk, Pango } = imports.gi;
const Misc = imports.clapper_src.misc;
const PrefsBase = imports.clapper_src.prefsBase;
@@ -85,6 +85,18 @@ class ClapperSubtitlesPage extends PrefsBase.Grid
}
});
var NetworkPage = GObject.registerClass(
class ClapperNetworkPage extends PrefsBase.Grid
{
_init()
{
super._init();
this.addTitle('Client');
this.addPlayFlagCheckButton('Progressive download buffering', Gst.PlayFlags.DOWNLOAD);
}
});
var GStreamerPage = GObject.registerClass(
class ClapperGStreamerPage extends PrefsBase.Grid
{