Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Item ¶
type Item interface {
Type() ItemType
}
Item interface for a file or dir item on storage.
type StorageService ¶
type StorageService interface { MountTo(mux *http.ServeMux) Browse(parentId string) (items []Item) }
StorageService defines a interface which should be impled by storage service. It will be used by ContentDirectory service to browse files.
type VideoFile ¶
type VideoFile struct { // File size Size int64 // Media length in seconds Duration float64 // Audio channels AudioChannels int // Audio sample rate AudioSampleRate int // Video resolution VideoResolution string // URL to play PlayURL string // contains filtered or unexported fields }
Video file is video file item.
Click to show internal directories.
Click to hide internal directories.