|
@@ -92,7 +92,6 @@ import androidx.fragment.app.FragmentManager;
|
|
import androidx.media3.common.MediaItem;
|
|
import androidx.media3.common.MediaItem;
|
|
import androidx.media3.common.util.UnstableApi;
|
|
import androidx.media3.common.util.UnstableApi;
|
|
import androidx.media3.exoplayer.ExoPlayer;
|
|
import androidx.media3.exoplayer.ExoPlayer;
|
|
-import androidx.media3.ui.PlayerControlView;
|
|
|
|
|
|
|
|
@UnstableApi
|
|
@UnstableApi
|
|
/**
|
|
/**
|
|
@@ -105,7 +104,7 @@ import androidx.media3.ui.PlayerControlView;
|
|
* instantiation too.
|
|
* instantiation too.
|
|
*/
|
|
*/
|
|
public class PreviewMediaFragment extends FileFragment implements
|
|
public class PreviewMediaFragment extends FileFragment implements
|
|
- Injectable, PlayerControlView.OnFullScreenModeChangedListener {
|
|
|
|
|
|
+ Injectable {
|
|
|
|
|
|
private static final String TAG = PreviewMediaFragment.class.getSimpleName();
|
|
private static final String TAG = PreviewMediaFragment.class.getSimpleName();
|
|
|
|
|
|
@@ -418,6 +417,7 @@ public class PreviewMediaFragment extends FileFragment implements
|
|
|
|
|
|
int type = WindowInsetsCompat.Type.systemBars();
|
|
int type = WindowInsetsCompat.Type.systemBars();
|
|
binding.exoplayerView.setFullscreenButtonClickListener(isFullScreen -> {
|
|
binding.exoplayerView.setFullscreenButtonClickListener(isFullScreen -> {
|
|
|
|
+ Log_OC.e(TAG, "Fullscreen: " + isFullScreen);
|
|
if (isFullScreen) {
|
|
if (isFullScreen) {
|
|
windowInsetsController.hide(type);
|
|
windowInsetsController.hide(type);
|
|
actionBar.hide();
|
|
actionBar.hide();
|
|
@@ -559,11 +559,6 @@ public class PreviewMediaFragment extends FileFragment implements
|
|
autoplay = false;
|
|
autoplay = false;
|
|
}
|
|
}
|
|
|
|
|
|
- @Override
|
|
|
|
- public void onFullScreenModeChanged(boolean isFullScreen) {
|
|
|
|
- Log_OC.e(TAG, "Fullscreen: " + isFullScreen);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
private static class LoadStreamUrl extends AsyncTask<Long, Void, Uri> {
|
|
private static class LoadStreamUrl extends AsyncTask<Long, Void, Uri> {
|
|
|
|
|
|
private final ClientFactory clientFactory;
|
|
private final ClientFactory clientFactory;
|