mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-31 00:11:59 +02:00
Initial video playlist support
For now player will load only first video from playlist. Good enough for testing. Full playlist support will be added later on.
This commit is contained in:
@@ -13,12 +13,17 @@ var App = GObject.registerClass({
|
||||
}
|
||||
}, class ClapperApp extends Gtk.Application
|
||||
{
|
||||
_init(args)
|
||||
_init(opts)
|
||||
{
|
||||
GLib.set_prgname(APP_NAME);
|
||||
|
||||
super._init();
|
||||
|
||||
let defaults = {
|
||||
playlist: [],
|
||||
};
|
||||
Object.assign(this, defaults, opts);
|
||||
|
||||
this.window = null;
|
||||
this.interface = null;
|
||||
this.player = null;
|
||||
@@ -100,6 +105,9 @@ var App = GObject.registerClass({
|
||||
|
||||
this.player.widget.show_all();
|
||||
this.emit('ready', true);
|
||||
|
||||
if(this.playlist.length)
|
||||
this.player.set_uri(this.playlist[0]);
|
||||
}
|
||||
|
||||
_onWindowFullscreenChanged(window, isFullscreen)
|
||||
|
Reference in New Issue
Block a user