Comments (6)
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.
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 filledCENTER_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 viewFIT_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.
Thanks it's working fine.. Do you have any plan to include FIT feature here?
from exomedia.
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.
Hello,
Do you have app:resize_mode="zoom" feature in your library. I don't find it.
from exomedia.
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)
- how to support avi video HOT 1
- `setVideoRotation` Not Rotating Video HOT 2
- ExoMedia does not support AVI video format HOT 1
- OverideDuration is not working HOT 1
- Player is accessed on the wrong thread HOT 1
- Source error
- AppBar show during controller show in full screen. HOT 2
- Update TV Video Player Controls
- When will 5.0.0 be released? HOT 3
- Improved VideoControls Error Handling
- Crash when add library ExoPlayer 2.17.0 HOT 5
- ExoMedia demo crashes with v5.0.0 on Android 8.1 and Android 9 virtual devices HOT 1
- jetifier enabled in demo app (migrate constraintlayout) HOT 3
- Many requests to server HOT 1
- Authentication: Bearer token HOT 2
- the video window will shake
- [Question] What about using your library for content URI scheme?
- can this project support to a minium version of android 17? HOT 1
- Can open videoplayback file?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from exomedia.