Support .mts and .mpo files (#1029)
This commit is contained in:
parent
6ae0002930
commit
58d6d23967
2 changed files with 6 additions and 0 deletions
|
@ -22,6 +22,7 @@ const (
|
|||
FormatHEVC FileFormat = "hevc"
|
||||
FormatMov FileFormat = "mov" // Video files.
|
||||
FormatMp4 FileFormat = "mp4"
|
||||
FormatMpo FileFormat = "mpo"
|
||||
FormatAvc FileFormat = "avc"
|
||||
FormatAvi FileFormat = "avi"
|
||||
Format3gp FileFormat = "3gp"
|
||||
|
@ -29,6 +30,7 @@ const (
|
|||
FormatFlv FileFormat = "flv"
|
||||
FormatMkv FileFormat = "mkv"
|
||||
FormatMpg FileFormat = "mpg"
|
||||
FormatMts FileFormat = "mts"
|
||||
FormatOgv FileFormat = "ogv"
|
||||
FormatWebm FileFormat = "webm"
|
||||
FormatWMV FileFormat = "wmv"
|
||||
|
@ -77,6 +79,8 @@ var FileExt = FileExtensions{
|
|||
".mkv": FormatMkv,
|
||||
".mpg": FormatMpg,
|
||||
".mpeg": FormatMpg,
|
||||
".mpo": FormatMpo,
|
||||
".mts": FormatMts,
|
||||
".ogv": FormatOgv,
|
||||
".webm": FormatWebm,
|
||||
".wmv": FormatWMV,
|
||||
|
|
|
@ -18,6 +18,7 @@ var MediaTypes = map[FileFormat]MediaType{
|
|||
FormatTiff: MediaImage,
|
||||
FormatBitmap: MediaImage,
|
||||
FormatHEIF: MediaImage,
|
||||
FormatMpo: MediaImage,
|
||||
FormatAvi: MediaVideo,
|
||||
FormatHEVC: MediaVideo,
|
||||
FormatAvc: MediaVideo,
|
||||
|
@ -28,6 +29,7 @@ var MediaTypes = map[FileFormat]MediaType{
|
|||
FormatFlv: MediaVideo,
|
||||
FormatMkv: MediaVideo,
|
||||
FormatMpg: MediaVideo,
|
||||
FormatMts: MediaVideo,
|
||||
FormatOgv: MediaVideo,
|
||||
FormatWebm: MediaVideo,
|
||||
FormatWMV: MediaVideo,
|
||||
|
|
Loading…
Reference in a new issue