autoresize

How to implement autoresize/autorotate of Android Player?

If you are programming an Android App with a VideoPlayer, sometimes you want that it looks more like the YouTube App. The user navigates to a video and the first screen is in portrait mode such that the player is on top and the description and other information is below the player. The intuitive behaviour of the user would be to rotate the device to landscape mode to see the video in fullscreen mode. During the rotation, the video should not be interrupted. If the user rotates the device back to portrait mode, he/she would see the previous screen again and also here the video should not be interrupted during the rotation. The main challenge here are: - Which player should be used? VideoView oder MediaPlayer? - How to define the layout? - How to change the surfaceview of the player? - How to catch the rotation event?
Subscribe to autoresize