1
Fork 0

Merge pull request #427 from hupfdule/master

Add support for Matroska (MKV) video container
This commit is contained in:
Viktor Strate Kløvedal 2021-07-12 17:50:58 +02:00 committed by GitHub
commit 2e4f83abbf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 {