stream

package
v0.0.0-...-5d1ecd3 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewStreamRouter

func NewStreamRouter(r *mux.Router, api StreamAPI) http.Handler

Types

type MediaManager

type MediaManager struct {
	// contains filtered or unexported fields
}

func NewMediaManager

func NewMediaManager(base string) MediaManager

func (MediaManager) ServeM3u8

func (m MediaManager) ServeM3u8(w http.ResponseWriter, r *http.Request, id string)

func (MediaManager) ServeTs

func (m MediaManager) ServeTs(w http.ResponseWriter, r *http.Request, id string, seg string)

func (MediaManager) ServerMp3

func (m MediaManager) ServerMp3(w http.ResponseWriter, r *http.Request, id string)

type StreamAPI

type StreamAPI struct {
	// contains filtered or unexported fields
}

func NewStreamAPI

func NewStreamAPI(m MediaManager) StreamAPI

func (StreamAPI) Download

func (a StreamAPI) Download(w http.ResponseWriter, r *http.Request)

func (StreamAPI) Stream

func (a StreamAPI) Stream(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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