hls

package module
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: May 27, 2022 License: GPL-3.0 Imports: 10 Imported by: 1

Documentation

Overview

Package hls implements a simple io.ReadCloser interface for HLS (Livestream) playlists.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HlsReader

type HlsReader struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

HlsReader is a structure returned by Get() which implements the io.ReadCloser interface.

func Get

func Get(ctx context.Context, url string) (*HlsReader, error)

Get returns a new HlsReader for the given M3U url.

func (*HlsReader) Close

func (hr *HlsReader) Close() error

func (*HlsReader) Read

func (hr *HlsReader) Read(buf []byte) (int, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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