photoprism/internal/video/video.go
Michael Mayer bd3426ae51 Add video player #17
Still need to index metadata. Work in progress.

Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-13 15:36:49 +02:00

37 lines
558 B
Go

/*
This package encapsulates JPEG thumbnail generation.
Additional information can be found in our Developer Guide:
https://github.com/photoprism/photoprism/wiki
*/
package video
import (
"github.com/photoprism/photoprism/internal/event"
"github.com/photoprism/photoprism/pkg/fs"
)
var log = event.Log
type Type struct {
Format fs.FileType
Width int
Height int
Public bool
}
type TypeMap map[string]Type
var TypeMP4 = Type{
Format: fs.TypeMP4,
Width: 0,
Height: 0,
Public: true,
}
var Types = TypeMap{
"": TypeMP4,
"mp4": TypeMP4,
}