remove MediaStore.Video.Media.ORIENTATION field of video metadata
This commit is contained in:
parent
f4ca41daa1
commit
5eaecce783
@ -72,7 +72,6 @@ class PhotoGalleryPlugin : FlutterPlugin, MethodCallHandler {
|
|||||||
MediaStore.Video.Media.TITLE,
|
MediaStore.Video.Media.TITLE,
|
||||||
MediaStore.Video.Media.WIDTH,
|
MediaStore.Video.Media.WIDTH,
|
||||||
MediaStore.Video.Media.HEIGHT,
|
MediaStore.Video.Media.HEIGHT,
|
||||||
MediaStore.Video.Media.ORIENTATION,
|
|
||||||
MediaStore.Video.Media.MIME_TYPE,
|
MediaStore.Video.Media.MIME_TYPE,
|
||||||
MediaStore.Video.Media.DURATION,
|
MediaStore.Video.Media.DURATION,
|
||||||
MediaStore.Video.Media.DATE_TAKEN,
|
MediaStore.Video.Media.DATE_TAKEN,
|
||||||
@ -846,7 +845,6 @@ class PhotoGalleryPlugin : FlutterPlugin, MethodCallHandler {
|
|||||||
val titleColumn = cursor.getColumnIndex(MediaStore.Video.Media.TITLE)
|
val titleColumn = cursor.getColumnIndex(MediaStore.Video.Media.TITLE)
|
||||||
val widthColumn = cursor.getColumnIndex(MediaStore.Video.Media.WIDTH)
|
val widthColumn = cursor.getColumnIndex(MediaStore.Video.Media.WIDTH)
|
||||||
val heightColumn = cursor.getColumnIndex(MediaStore.Video.Media.HEIGHT)
|
val heightColumn = cursor.getColumnIndex(MediaStore.Video.Media.HEIGHT)
|
||||||
val orientationColumn = cursor.getColumnIndex(MediaStore.Video.Media.ORIENTATION)
|
|
||||||
val mimeColumn = cursor.getColumnIndex(MediaStore.Video.Media.MIME_TYPE)
|
val mimeColumn = cursor.getColumnIndex(MediaStore.Video.Media.MIME_TYPE)
|
||||||
val durationColumn = cursor.getColumnIndex(MediaStore.Video.Media.DURATION)
|
val durationColumn = cursor.getColumnIndex(MediaStore.Video.Media.DURATION)
|
||||||
val dateTakenColumn = cursor.getColumnIndex(MediaStore.Video.Media.DATE_TAKEN)
|
val dateTakenColumn = cursor.getColumnIndex(MediaStore.Video.Media.DATE_TAKEN)
|
||||||
@ -857,7 +855,6 @@ class PhotoGalleryPlugin : FlutterPlugin, MethodCallHandler {
|
|||||||
val title = cursor.getString(titleColumn)
|
val title = cursor.getString(titleColumn)
|
||||||
val width = cursor.getLong(widthColumn)
|
val width = cursor.getLong(widthColumn)
|
||||||
val height = cursor.getLong(heightColumn)
|
val height = cursor.getLong(heightColumn)
|
||||||
val orientation = cursor.getLong(orientationColumn)
|
|
||||||
val mimeType = cursor.getString(mimeColumn)
|
val mimeType = cursor.getString(mimeColumn)
|
||||||
val duration = cursor.getLong(durationColumn)
|
val duration = cursor.getLong(durationColumn)
|
||||||
var dateTaken: Long? = null
|
var dateTaken: Long? = null
|
||||||
@ -875,7 +872,6 @@ class PhotoGalleryPlugin : FlutterPlugin, MethodCallHandler {
|
|||||||
"title" to title,
|
"title" to title,
|
||||||
"mediumType" to videoType,
|
"mediumType" to videoType,
|
||||||
"width" to width,
|
"width" to width,
|
||||||
"orientation" to orientationDegree2Value(orientation),
|
|
||||||
"height" to height,
|
"height" to height,
|
||||||
"mimeType" to mimeType,
|
"mimeType" to mimeType,
|
||||||
"duration" to duration,
|
"duration" to duration,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user