hls

package
v1.9.15 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2026 License: MIT Imports: 15 Imported by: 0

README

HLS

new in v1.1.0

HLS is the worst technology for real-time streaming. It can only be useful on devices that do not support more modern technology, like WebRTC, MP4.

The go2rtc implementation differs from the standards and may not work with all players.

API examples:

  • HLS/TS stream: http://192.168.1.123:1984/api/stream.m3u8?src=camera1 (H264)
  • HLS/fMP4 stream: http://192.168.1.123:1984/api/stream.m3u8?src=camera1&mp4 (H264, H265, AAC)

Read more about codecs filters.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init()

Types

type Session

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

func NewSession

func NewSession(cons core.Consumer) *Session

func (*Session) Init

func (s *Session) Init() (init []byte)

func (*Session) Main

func (s *Session) Main() []byte

func (*Session) Playlist

func (s *Session) Playlist() []byte

func (*Session) Run

func (s *Session) Run()

func (*Session) Segment

func (s *Session) Segment() (segment []byte)

func (*Session) Write

func (s *Session) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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