mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-30 16:02:00 +02:00
Only auto fullscreen with new playlist
This fixes a bug when player would enter fullscreen when changing playlist item
This commit is contained in:
@@ -21,6 +21,7 @@ class ClapperPlayer extends PlayerBase
|
|||||||
this.needsFastSeekRestore = false;
|
this.needsFastSeekRestore = false;
|
||||||
this.customVideoTitle = null;
|
this.customVideoTitle = null;
|
||||||
|
|
||||||
|
this.canAutoFullscreen = false;
|
||||||
this.playOnFullscreen = false;
|
this.playOnFullscreen = false;
|
||||||
this.quitOnStop = false;
|
this.quitOnStop = false;
|
||||||
this.needsTocUpdate = true;
|
this.needsTocUpdate = true;
|
||||||
@@ -141,6 +142,7 @@ class ClapperPlayer extends PlayerBase
|
|||||||
set_playlist(playlist)
|
set_playlist(playlist)
|
||||||
{
|
{
|
||||||
this.playlistWidget.removeAll();
|
this.playlistWidget.removeAll();
|
||||||
|
this.canAutoFullscreen = true;
|
||||||
|
|
||||||
for(let source of playlist) {
|
for(let source of playlist) {
|
||||||
const uri = this._getSourceUri(source);
|
const uri = this._getSourceUri(source);
|
||||||
@@ -428,9 +430,11 @@ class ClapperPlayer extends PlayerBase
|
|||||||
debug(`URI loaded: ${uri}`);
|
debug(`URI loaded: ${uri}`);
|
||||||
this.needsTocUpdate = true;
|
this.needsTocUpdate = true;
|
||||||
|
|
||||||
if(settings.get_boolean('fullscreen-auto')) {
|
if(this.canAutoFullscreen && settings.get_boolean('fullscreen-auto')) {
|
||||||
const root = player.widget.get_root();
|
const root = player.widget.get_root();
|
||||||
const clapperWidget = root.get_child();
|
const clapperWidget = root.get_child();
|
||||||
|
this.canAutoFullscreen = false;
|
||||||
|
|
||||||
/* Do not enter fullscreen when already in it
|
/* Do not enter fullscreen when already in it
|
||||||
* or when in floating mode */
|
* or when in floating mode */
|
||||||
if(
|
if(
|
||||||
|
Reference in New Issue
Block a user