Add option to close player after playback

This commit is contained in:
Rafostar
2020-12-03 11:04:37 +01:00
parent 44e04d7e60
commit 7a66da1fed
4 changed files with 8 additions and 3 deletions

View File

@@ -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)