Files
Ivan Tivonenko 7b27ae29ad Change links from github.com/ericxtang/m3u8
to `github.com/livepeer/m3u8`
2019-06-13 21:01:34 +03:00

23 lines
539 B
Go

package stream
import (
"context"
"errors"
"github.com/livepeer/m3u8"
)
var ErrNotFound = errors.New("Not Found")
var ErrBadHLSBuffer = errors.New("BadHLSBuffer")
var ErrEOF = errors.New("ErrEOF")
type HLSDemuxer interface {
PollPlaylist(ctx context.Context) (m3u8.MediaPlaylist, error)
WaitAndPopSegment(ctx context.Context, name string) ([]byte, error)
WaitAndGetSegment(ctx context.Context, name string) ([]byte, error)
}
type HLSMuxer interface {
WriteSegment(seqNo uint64, name string, duration float64, s []byte) error
}