media

package
v0.0.1-alpha Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 5, 2022 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MediaApi

type MediaApi interface {
	GetMedia(ctx context.Context, mediaTypes []string) ([]types.MediaItem, error)
	ScanDirectory(directory string) error
	ScanDirectories(directories ...string) error
	StreamMedia(ctx context.Context, fileName string) ([]byte, error)
}

func NewMediaService

func NewMediaService() MediaApi

type Mp3Metadata

type Mp3Metadata struct {
	Artist     string
	Title      string
	Album      string
	Genre      string
	TrackIndex int
	TrackOf    int
	Length     float64
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL