Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reziseMode.AspectRatioFrameLayout #5

Closed
lgvg92 opened this issue Feb 20, 2020 · 4 comments
Closed

reziseMode.AspectRatioFrameLayout #5

lgvg92 opened this issue Feb 20, 2020 · 4 comments
Labels
enhancement New feature or request

Comments

@lgvg92
Copy link

lgvg92 commented Feb 20, 2020

Hi! I hope you well!
I have been working with your library and its really helpfull. I just have one question,
I want to set Resize Mode to the player view to be RESIZE_MODE_FIT but after so many tries I can't achieve this. is it possible? and how could I do this?
thanks in advance

@pankaj89 pankaj89 added the enhancement New feature or request label Feb 21, 2020
@pankaj89
Copy link
Owner

Thanks for suggestion, will add this feature in next release.

@lgvg92
Copy link
Author

lgvg92 commented Feb 21, 2020

Thank you so much for your reply. Do you have any estimation about the next release date? Many thanks for your feedback

pankaj89 added a commit that referenced this issue Feb 21, 2020
@pankaj89
Copy link
Owner

Here it is, You can now use
implementation 'com.github.pankaj89:MasterExoPlayer:1.4.4'

Now you can use getPlayerView() immediately after instance creation of MasterExoPlayerHelper

In kotlin

masterExoPlayerHelper.getPlayerView().apply {
      resizeMode = AspectRatioFrameLayout.RESIZE_MODE_ZOOM
}

In Java

masterExoPlayerHelper.getPlayerView().setResizeMode(

@lgvg92
Copy link
Author

lgvg92 commented Feb 21, 2020

I just try this and it works perfectly! thanks a lot! :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants