mirror of
https://git.vectorsigma.ru/public/photoview.git
synced 2026-08-03 21:09:05 +00:00
Add support for Matroska (MKV) video container
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user