Documentation ¶
Index ¶
- Variables
- func ClearCache() error
- func FilenameLooksLikeVideo(name string) bool
- func GetFFMPEGJson(path string) (map[string]interface{}, error)
- func GetRawFFMPEGInfo(path string) ([]byte, error)
- func ServeJson(status int, data interface{}, w http.ResponseWriter)
- type Empty
- type FrameHandler
- type HttpCommandHandler
- type ListHandler
- type ListResponse
- type ListResponseFolder
- type ListResponseVideo
- type PlaylistHandler
- type StreamHandler
- type VideoInfo
Constants ¶
This section is empty.
Variables ¶
View Source
var FFMPEGPath = "ffmpeg"
View Source
var FFProbePath = "ffprobe"
View Source
var HomeDir = "."
Functions ¶
func ClearCache ¶ added in v0.2.0
func ClearCache() error
func FilenameLooksLikeVideo ¶
func GetFFMPEGJson ¶
func GetRawFFMPEGInfo ¶
func ServeJson ¶
func ServeJson(status int, data interface{}, w http.ResponseWriter)
Types ¶
type FrameHandler ¶
type FrameHandler struct {
// contains filtered or unexported fields
}
func NewFrameHandler ¶
func NewFrameHandler(root string) *FrameHandler
func (*FrameHandler) ServeHTTP ¶
func (s *FrameHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type HttpCommandHandler ¶
type HttpCommandHandler struct {
// contains filtered or unexported fields
}
func NewHttpCommandHandler ¶
func NewHttpCommandHandler(workerCount int, cacheDir string) *HttpCommandHandler
func (*HttpCommandHandler) ServeCommand ¶
type ListHandler ¶
type ListHandler struct {
// contains filtered or unexported fields
}
func NewListHandler ¶
func NewListHandler(path string) *ListHandler
func (*ListHandler) ServeHTTP ¶
func (s *ListHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type ListResponse ¶
type ListResponse struct { Error error `json:"error"` Folders []*ListResponseFolder `json:"folders"` Videos []*ListResponseVideo `json:"videos"` }
type ListResponseFolder ¶
type ListResponseVideo ¶
type PlaylistHandler ¶
type PlaylistHandler struct {
// contains filtered or unexported fields
}
func NewPlaylistHandler ¶
func NewPlaylistHandler(root string) *PlaylistHandler
func (*PlaylistHandler) ServeHTTP ¶
func (s *PlaylistHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type StreamHandler ¶
type StreamHandler struct {
// contains filtered or unexported fields
}
func NewStreamHandler ¶
func NewStreamHandler(root string) *StreamHandler
func (*StreamHandler) ServeHTTP ¶
func (s *StreamHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.