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

VideoPlay aspect ratio #1

Open
tasomaniac opened this issue Mar 6, 2014 · 5 comments
Open

VideoPlay aspect ratio #1

tasomaniac opened this issue Mar 6, 2014 · 5 comments

Comments

@tasomaniac
Copy link

When we do wrap_content as the height and width the controls will be small and not at the bottom of the screen

When we make match_parent the aspect ratio of the video will not be respected. It is stretched.

@maan-smith
Copy link

Hi,
Good work so far. I love the idea of this repo. I have a question I am trying to square the video just like instagram do. Can you help me on this?

@juleZZZ
Copy link
Member

juleZZZ commented May 6, 2014

Hi,
You can try and set previewHeight = previewWidth on lines 51 and 55 in AdaptiveSurfaceView.java file - but in this case the video preview would be disproportionate and this is not what you are looking for..
Take a look at this repo https://github.com/dmytrodanylyk/android-video-crop which is based on TextureView class - perhaps you can find the idea there..

@maan-smith
Copy link

Thanks for the reply.
I am looking just like instagram. Like I want to record video with square
aspect ratio.
Please help me if you know any library like instagram.
On May 6, 2014 4:33 PM, "Julia Zudikova" [email protected] wrote:

Hi,
You can try and set previewHeight = previewWidth on lines 51 and 55 in
AdaptiveSurfaceView.java file - but in this case the video preview would be
disproportionate and this is not what you are looking for..
Take a look at this repo
https://github.com/dmytrodanylyk/android-video-crop which is based on
TextureView class - perhaps you can find the idea there..


Reply to this email directly or view it on GitHubhttps://github.com//issues/1#issuecomment-42291983
.

@juleZZZ
Copy link
Member

juleZZZ commented May 7, 2014

I haven't dealed with anything like Instagram, so I couldn't help you, sorry

@maan-smith
Copy link

No problem at all and thanks for your reply.
Btw have you seen what they did?
On May 7, 2014 11:16 AM, "Julia Zudikova" [email protected] wrote:

I haven't dealed with anything like Instagram, so I couldn't help you,
sorry


Reply to this email directly or view it on GitHubhttps://github.com//issues/1#issuecomment-42393126
.

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

No branches or pull requests

3 participants