diff options
| author | RblSb <msrblsb@gmail.com> | 2025-02-06 06:41:49 +0300 |
|---|---|---|
| committer | RblSb <msrblsb@gmail.com> | 2025-02-07 01:12:14 +0300 |
| commit | d86f0c30e1726a56e670955c3b995945c1daf834 (patch) | |
| tree | 2cff6b1c76191df76291f93c5a46810f09181727 /src/client/Player.hx | |
| parent | 382f9b2ebedca905028341825350a0fa69d88673 (diff) | |
Fixes pack
- Fix timer seek on server pause with double timer.pause() calls
- Implement multi-caching
- Better uploading progress with XMLHttpRequest
- Better upload/cache error reporting
Diffstat (limited to 'src/client/Player.hx')
| -rw-r--r-- | src/client/Player.hx | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/client/Player.hx b/src/client/Player.hx index e5ea87c..64248fe 100644 --- a/src/client/Player.hx +++ b/src/client/Player.hx @@ -279,8 +279,11 @@ class Player { if (!main.isLeader()) { // user click, so we can unpause by removing leader // (doesn't work in Firefox because of no video click propagation) - final allowUnpause = (hasAutoPause && inUserInteraction); - if (allowUnpause || main.hasUnpauseWithoutLeader()) { + var allowUnpause = hasAutoPause && inUserInteraction; + if (!allowUnpause) allowUnpause = main.hasUnpauseWithoutLeader(); + // do not remove leader with custom rate + if (getPlaybackRate() != 1) allowUnpause = false; + if (allowUnpause) { main.removeLeader(); } else { // paused and no leader - instant pause @@ -299,7 +302,9 @@ class Player { }); if (hasAutoPause) { // do not remove leader if user cannot request it back - if (main.hasPermission(RequestLeaderPerm)) main.toggleLeader(); + if (main.hasPermission(RequestLeaderPerm) && getPlaybackRate() == 1) { + main.removeLeader(); + } } } |
