mirror of
https://github.com/yuliskov/SmartTube.git
synced 2026-05-13 08:20:51 -05:00
remote fix with the preview
This commit is contained in:
+4
@@ -272,6 +272,10 @@ public class PlayerUIController extends BasePlayerController {
|
||||
|
||||
@Override
|
||||
public void onSeekEnd() {
|
||||
if (getPlayer() == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
getPlayer().updateEndingTime();
|
||||
}
|
||||
|
||||
|
||||
+8
-4
@@ -129,7 +129,7 @@ public class RemoteController extends BasePlayerController implements OnDataChan
|
||||
}
|
||||
|
||||
private void postStartPlaying(@Nullable Video item, boolean isPlaying) {
|
||||
if (!mRemoteControlData.isDeviceLinkEnabled() || !isConnectedBefore()) {
|
||||
if (isRemoteDisabled()) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -147,7 +147,7 @@ public class RemoteController extends BasePlayerController implements OnDataChan
|
||||
}
|
||||
|
||||
private void postStartPlaying(String videoId, long positionMs, long durationMs, boolean isPlaying) {
|
||||
if (!mRemoteControlData.isDeviceLinkEnabled() || !isConnectedBefore()) {
|
||||
if (isRemoteDisabled()) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -159,7 +159,7 @@ public class RemoteController extends BasePlayerController implements OnDataChan
|
||||
}
|
||||
|
||||
private void postState(long positionMs, long durationMs, boolean isPlaying) {
|
||||
if (!mRemoteControlData.isDeviceLinkEnabled() || !isConnectedBefore()) {
|
||||
if (isRemoteDisabled()) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -171,7 +171,7 @@ public class RemoteController extends BasePlayerController implements OnDataChan
|
||||
}
|
||||
|
||||
private void postVolumeChange(int volume) {
|
||||
if (!mRemoteControlData.isDeviceLinkEnabled() || !isConnectedBefore()) {
|
||||
if (isRemoteDisabled()) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -538,4 +538,8 @@ public class RemoteController extends BasePlayerController implements OnDataChan
|
||||
private boolean isConnectedBefore() {
|
||||
return mConnected || mRemoteControlData.isConnectedBefore();
|
||||
}
|
||||
|
||||
private boolean isRemoteDisabled() {
|
||||
return !mRemoteControlData.isDeviceLinkEnabled() || !isConnectedBefore() || isEmbedPlayer();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user