GithubHelp home page GithubHelp logo

Comments (6)

brianwernick avatar brianwernick commented on September 22, 2024 1

The videoScale attribute and setScaleType function have all of the available scale types documented. It sounds like you are looking for FIT_XY or FIT_CENTER as described above; just note that FIT_XY will scale independent of the video's aspect ratio so will result it skewed content so FIT_CENTER is likely what you are looking for.

from exomedia.

brianwernick avatar brianwernick commented on September 22, 2024

You should be able to use the videoScale attribute (or the setScaleType() function) on the VideoView to support those needs.

You will likely be interested in

  • CENTER_CROP: Uniformly scales the video so that both the width and height of the view is filled
  • CENTER_INSIDE: Uniformly scales the video down so that the entire video fits in the view; if the source video is larger than the view then only one of the width or height will be smaller than the view, otherwise it's possible both the width and height are smaller than the view
  • FIT_CENTER: Uniformly scales the video up or down so that the entire video fits in the view; this means only one of the width or height will be smaller than the view

The fixed_height and fixed_width use cases above will depend on how the VideoView is defined in XML. It is also possible you may need to specify the measureBasedOnAspectRatio attribute (or through the setMeasureBasedOnAspectRatioEnabled function) as well

from exomedia.

pavelsust avatar pavelsust commented on September 22, 2024

Thanks it's working fine.. Do you have any plan to include FIT feature here?

from exomedia.

pavelsust avatar pavelsust commented on September 22, 2024

Actually I was looking for FIT. If I use center-crop sometimes it remove some video height. So I was thinking if we can use FIT. It will be better for us.

from exomedia.

pavelsust avatar pavelsust commented on September 22, 2024

Hello,
Do you have app:resize_mode="zoom" feature in your library. I don't find it.

from exomedia.

brianwernick avatar brianwernick commented on September 22, 2024

I don't know what "zoom" represents; what are you expecting this to do and I should be able to answer based on that?

from exomedia.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.