Android Question videoview size

paul allen

Member
Licensed User
Longtime User
is there a way to determine the size of the input video such as 4x3 or 16x9.
i'm loading video from my web site.
thanks.
paul
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
Better to use ExoPlayer.

You can then get the video format with:
B4X:
Sub Player_Ready
	Log("Ready")
	Dim VideoFormat As JavaObject = player1
	VideoFormat = VideoFormat.GetFieldJO("player").RunMethod("getVideoFormat", Null)
	Log(VideoFormat.GetField("width"))
	Log(VideoFormat.GetField("height"))
End Sub
 
Upvote 0
Top