hls

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package hls contains HLS utilities.

Index

Constants

This section is empty.

Variables

View Source
var ErrNoSupportedCodecs = errors.New(
	"the stream doesn't contain any supported codec, which are currently AV1, VP9, H265, H264, Opus, MPEG-4 Audio")

ErrNoSupportedCodecs is returned by FromStream when there are no supported codecs.

Functions

func FromStream

func FromStream(
	stream *stream.Stream,
	reader stream.Reader,
	muxer *gohlslib.Muxer,
) error

FromStream maps a MediaMTX stream to a HLS muxer.

func ToStream

func ToStream(
	c *gohlslib.Client,
	tracks []*gohlslib.Track,
	stream **stream.Stream,
) ([]*description.Media, error)

ToStream maps a HLS stream to a MediaMTX stream.

Types

This section is empty.

Jump to

Keyboard shortcuts

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