hls

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2026 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Package hls writes token-free playlists under random session paths.

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalid = errors.New("invalid HLS playlist")

Functions

func Master

func Master(w io.Writer, session string, bandwidth int) error

Master writes a single-variant master playlist. Segment and playlist URLs are generated from the session path, never supplied by an account holder.

func Media

func Media(w io.Writer, session string, durations []time.Duration) error

Media writes a finite playlist of segments addressed by index. Durations must be positive and finite; no caller-provided URI is interpolated.

func NewPath

func NewPath() (string, error)

NewPath creates an unguessable path component for a media session.

Types

This section is empty.

Jump to

Keyboard shortcuts

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