Android-VimeoPlayer icon indicating copy to clipboard operation
Android-VimeoPlayer copied to clipboard

Get video dimensions and set aspect ratio based on that

Open crearo opened this issue 5 years ago • 2 comments

First of all, thanks for your great work! I was going through the Youtube version of this, and was bummed that I might have to write the Vimeo one. But saw you've already done it, and done it well! Thanks!

I have 2 types of videos; landscape and portrait. I am placing the player views in a recyclerview and want to dynamically resize the element based on the video width and height. Do you know if I can get the video dimensions?

crearo avatar May 10 '19 17:05 crearo

Do you mean "get the video resolution"?

Unfortunately, We can't get the Vimeo video quality.

ct7ct7ct7 avatar May 22 '19 14:05 ct7ct7ct7

Yeah video resolution/dimension. Basically width x height in pixels.

crearo avatar May 23 '19 08:05 crearo