Commit 23f13f50 authored by Sébastien Toque's avatar Sébastien Toque

video player: allow scale pinch if start state is fit screen

parent ed78327c
......@@ -174,7 +174,7 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
private PlaylistAdapter mPlaylistAdapter;
private PlaylistModel mPlaylistModel;
private static final int SURFACE_BEST_FIT = 0;
static final int SURFACE_BEST_FIT = 0;
static final int SURFACE_FIT_SCREEN = 1;
private static final int SURFACE_FILL = 2;
private static final int SURFACE_16_9 = 3;
......
......@@ -300,6 +300,8 @@ class VideoTouchDelegate(private val player: VideoPlayerActivity,
} else if (!grow && savedSize != -1) {
player.setVideoSurfacesize(savedSize)
savedSize = -1
} else if (!grow && player.currentSize == VideoPlayerActivity.SURFACE_FIT_SCREEN) {
player.setVideoSurfacesize(VideoPlayerActivity.SURFACE_BEST_FIT)
}
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment