Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Set = wire.NewSet( NewArtwork, NewMediaStreamer, NewTranscodingCache, NewImageCache, NewArchiver, transcoder.New, )
Functions ¶
func NewFileCache ¶ added in v0.27.0
Types ¶
type Archiver ¶ added in v0.29.0
func NewArchiver ¶ added in v0.29.0
type Artwork ¶ added in v0.28.0
func NewArtwork ¶ added in v0.28.0
func NewArtwork(ds model.DataStore, cache ArtworkCache) Artwork
type ArtworkCache ¶ added in v0.28.0
type ArtworkCache FileCache
func NewImageCache ¶
func NewImageCache() ArtworkCache
type CachedStream ¶ added in v0.27.0
func (*CachedStream) Close ¶ added in v0.27.0
func (s *CachedStream) Close() error
func (*CachedStream) Seekable ¶ added in v0.27.0
func (s *CachedStream) Seekable() bool
type MediaStreamer ¶
type MediaStreamer interface {
NewStream(ctx context.Context, id string, reqFormat string, reqBitRate int) (*Stream, error)
}
func NewMediaStreamer ¶
func NewMediaStreamer(ds model.DataStore, ffm transcoder.Transcoder, cache TranscodingCache) MediaStreamer
type Stream ¶
type Stream struct { io.ReadCloser io.Seeker // contains filtered or unexported fields }
func (*Stream) ContentType ¶
func (*Stream) EstimatedContentLength ¶
type TranscodingCache ¶
type TranscodingCache FileCache
func NewTranscodingCache ¶
func NewTranscodingCache() TranscodingCache
Source Files ¶
Click to show internal directories.
Click to hide internal directories.