mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-30 16:02:00 +02:00
Add option to close player after playback
This commit is contained in:
@@ -345,12 +345,13 @@ class ClapperPlayer extends PlayerBase
|
||||
|
||||
_onStreamEnded(player)
|
||||
{
|
||||
debug('stream ended');
|
||||
this._trackId++;
|
||||
|
||||
if(this._trackId < this._playlist.length)
|
||||
this.set_media(this._playlist[this._trackId]);
|
||||
else
|
||||
this.stop();
|
||||
else if(settings.get_boolean('close-auto'))
|
||||
this._onCloseRequest(this.widget.get_root());
|
||||
}
|
||||
|
||||
_onUriLoaded(player, uri)
|
||||
|
Reference in New Issue
Block a user