updating commons, target sdk to 30
This commit is contained in:
parent
2e20c8dc59
commit
fc470d9408
3 changed files with 6 additions and 7 deletions
|
|
@ -140,8 +140,8 @@ class ThreadActivity : SimpleActivity() {
|
|||
} else if (it.mimetype.startsWith("video/")) {
|
||||
val metaRetriever = MediaMetadataRetriever()
|
||||
metaRetriever.setDataSource(this, it.uri)
|
||||
it.width = metaRetriever.extractMetadata(MediaMetadataRetriever.METADATA_KEY_VIDEO_WIDTH).toInt()
|
||||
it.height = metaRetriever.extractMetadata(MediaMetadataRetriever.METADATA_KEY_VIDEO_HEIGHT).toInt()
|
||||
it.width = metaRetriever.extractMetadata(MediaMetadataRetriever.METADATA_KEY_VIDEO_WIDTH)!!.toInt()
|
||||
it.height = metaRetriever.extractMetadata(MediaMetadataRetriever.METADATA_KEY_VIDEO_HEIGHT)!!.toInt()
|
||||
}
|
||||
|
||||
if (it.width < 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue