mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-30 16:02:00 +02:00
Support for multiple media files
This enables support for starting media player with more than one file path specified. When a file playback finishes, next is loaded automatically.
This commit is contained in:
@@ -264,10 +264,8 @@ var App = GObject.registerClass({
|
||||
this.player.widget.disconnect(this.playerDrawSignal);
|
||||
this.emit('ready', true);
|
||||
|
||||
if(!this.playlist.length)
|
||||
return;
|
||||
|
||||
this.player.set_media(this.playlist[0]);
|
||||
if(this.playlist.length)
|
||||
this.player.set_playlist(this.playlist);
|
||||
}
|
||||
|
||||
_onPlayerStateChanged(self, state)
|
||||
|
Reference in New Issue
Block a user