You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This will happens if video is recorded from camera(will not happens in every device and not with all manufacturers(smart phone) brand).. so basically it's not this project's issue, but still you can do a little thing -
If you print video Width and Height(like from cursor or somewhere else) it will print wrong value in your case but if you print the same but from MediaPlayer which you can get from videoView.setOnPreparedListener in onPrepared(MediaPlayer mp), you will get correct values..so you can pass this values in initBounds(...) method of class CropVideoView and refresh the view and i think it's done(as of i know because i'm not able to try more detailed test of this solution but you should try) (you might also needs to change more code in methods like - onSizeChanged(...) or specially in getCropRect()) and please let as know what will happens or possibly the Solution..
I extract width and height like this
val videoWidth =
Integer.valueOf(
retriever.extractMetadata(MediaMetadataRetriever.METADATA_KEY_VIDEO_WIDTH)
.toString()
)
val videoHeight =
Integer.valueOf(
retriever.extractMetadata(MediaMetadataRetriever.METADATA_KEY_VIDEO_HEIGHT)
.toString()
)
but videos that are capture from camera are not being cropped properly, only cropped from upside. Please help me out I check each and every thing but not getting it.. I am beginner to this plz help...
No description provided.
The text was updated successfully, but these errors were encountered: