1
Fork 0

Add support for Matroska (MKV) video container

This commit is contained in:
Marco Herrn 2021-07-12 11:36:23 +02:00
parent 907f6631df
commit 7c993832ec
1 changed files with 3 additions and 0 deletions

View File

@ -67,6 +67,7 @@ const (
TypeMOV MediaType = "video/quicktime"
TypeTS MediaType = "video/mp2t"
TypeMTS MediaType = "video/MP2T"
TypeMKV MediaType = "video/x-matroska"
)
var SupportedMimetypes = [...]MediaType{
@ -130,6 +131,7 @@ var VideoMimetypes = [...]MediaType{
TypeMOV,
TypeTS,
TypeMTS,
TypeMKV,
}
// WebVideoMimetypes are video types that can be played directly in the browser without transcoding
@ -196,6 +198,7 @@ var fileExtensions = map[string]MediaType{
".ts": TypeTS,
".m2ts": TypeMTS,
".mts": TypeMTS,
".mkv": TypeMKV,
}
func (imgType *MediaType) IsRaw() bool {