Android: how to start video recording in portrait mode

I am trying to play a video from url using the following code:

Intent intent= new Intent(Intent.ACTION_VIEW);
intent.setDataAndType(Uri.parse(movieurl), "video/*");
startActivity(intent);

When I intended to run, does it show that the video player in landscape mode allows you to set it to portrait mode?

+3
source share
1 answer

This functionality is provided by the video player. The video player was configured to display video in landscape mode. You can use the video call and media controller to create your own media player.

+3
source

All Articles