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
 
Better to use ExoPlayer.

You can then get the video format with:
Code: Copy
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
Back
Top