fixed .m2ts handling
This commit is contained in:
parent
03246a8df4
commit
adda4be428
2 changed files with 2 additions and 2 deletions
|
@ -153,7 +153,7 @@ public class MetadataHandler implements MethodChannel.MethodCallHandler {
|
|||
String mimeType = call.argument("mimeType");
|
||||
try (InputStream is = new FileInputStream(path)) {
|
||||
Map<String, Object> metadataMap = new HashMap<>();
|
||||
if (!Constants.MIME_MP2TS.equalsIgnoreCase(mimeType)) {
|
||||
if (!Constants.MIME_MP2T.equalsIgnoreCase(mimeType)) {
|
||||
Metadata metadata = ImageMetadataReader.readMetadata(is);
|
||||
|
||||
// EXIF Sub-IFD
|
||||
|
|
|
@ -13,7 +13,7 @@ public class Constants {
|
|||
public static final String MIME_GIF = "image/gif";
|
||||
public static final String MIME_JPEG = "image/jpeg";
|
||||
public static final String MIME_PNG = "image/png";
|
||||
public static final String MIME_MP2TS = "video/mp2ts";
|
||||
public static final String MIME_MP2T = "video/mp2t"; // .m2ts
|
||||
public static final String MIME_VIDEO = "video";
|
||||
|
||||
// video metadata keys, from android.media.MediaMetadataRetriever
|
||||
|
|
Loading…
Reference in a new issue