Hi everyone,
I'm using B4XPages. From my main page, I click a button to open a second page that contains an ExoPlayer. I pass an HLS (.m3u8) video URL to the second page, and the video plays correctly.
The problem occurs when I rotate the phone.
the app stays on the player page, which is what I want. However, after rotating the device, the ExoPlayer is no longer full screen and doesn't resize to fit the new orientation.
How can I:
I'm using B4XPages. From my main page, I click a button to open a second page that contains an ExoPlayer. I pass an HLS (.m3u8) video URL to the second page, and the video plays correctly.
The problem occurs when I rotate the phone.
- If I don't add the following line to the manifest, Android recreates the Activity after rotation, and the app returns to the main page.
- If I do add this line:
the app stays on the player page, which is what I want. However, after rotating the device, the ExoPlayer is no longer full screen and doesn't resize to fit the new orientation.
How can I:
- Keep the player page open after device rotation, and
- Make ExoPlayer resize correctly so it fills the entire screen in both portrait and landscape?