P paul allen Member Licensed User Longtime User Apr 21, 2020 #1 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
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 Apr 21, 2020 #2 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 Format (ExoPlayer library) exoplayer.dev Upvote 0
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 Format (ExoPlayer library) exoplayer.dev
P paul allen Member Licensed User Longtime User Apr 21, 2020 #3 ok will try, thank you. paul Upvote 0