mirror of
https://github.com/yuliskov/SmartTube.git
synced 2026-05-13 08:20:51 -05:00
embed player restore tweaks
This commit is contained in:
+1
-1
Submodule MediaServiceCore updated: 2f70730743...f183726acc
+9
-5
@@ -64,11 +64,9 @@ public class VideoStateController extends BasePlayerController {
|
||||
|
||||
enableIncognitoIfNeeded(item);
|
||||
|
||||
if (!item.equals(getVideo())) { // skip switch from the embed to the fullscreen one
|
||||
// Don't do reset on videoLoaded state because this will influences minimized music videos.
|
||||
resetPositionIfNeeded(item);
|
||||
resetGlobalSpeedIfNeeded();
|
||||
}
|
||||
// Don't do reset on videoLoaded state because this will influences minimized music videos.
|
||||
resetPositionIfNeeded(item);
|
||||
resetGlobalSpeedIfNeeded();
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -328,6 +326,12 @@ public class VideoStateController extends BasePlayerController {
|
||||
isLive = false;
|
||||
}
|
||||
|
||||
// Don't reset if doing switch from the embed to the fullscreen one
|
||||
boolean sameVideo = item.equals(getVideo());
|
||||
if (sameVideo) {
|
||||
isShort = false;
|
||||
}
|
||||
|
||||
if (isShort || isVideoEnded || isLive) {
|
||||
resetPosition(item);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user