hls

package
v0.0.0-...-750c461 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2021 License: BSD-3-Clause-Clear Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HLSClient

type HLSClient struct {
	RequestDelay     int64 // header response delay in us
	RequestDataDelay int64 // first byte delay in us

	OnEndOfStream func()
	OnError       func(err error)
	OnBuffering   func(isBuffering bool, bufferingCount uint, playPos, bufferPos float64)
	// contains filtered or unexported fields
}

func HLSOpen

func HLSOpen(hlsUrl string) (client *HLSClient, err error)

func (*HLSClient) GetBufferingCount

func (c *HLSClient) GetBufferingCount() uint

func (*HLSClient) GetDataResponseDelay

func (c *HLSClient) GetDataResponseDelay() int64

func (*HLSClient) GetReceivedBytes

func (c *HLSClient) GetReceivedBytes() uint64

func (*HLSClient) GetReceivedSlices

func (c *HLSClient) GetReceivedSlices() uint64

func (*HLSClient) GetResponseDelay

func (c *HLSClient) GetResponseDelay() int64

func (*HLSClient) IsBuffering

func (c *HLSClient) IsBuffering() bool

func (*HLSClient) SetBufferDuration

func (c *HLSClient) SetBufferDuration(durationInSec float64)

func (*HLSClient) SetPlayRange

func (c *HLSClient) SetPlayRange(begin, end float64)

set play range in second

func (*HLSClient) Start

func (c *HLSClient) Start() error

func (*HLSClient) StartAt

func (c *HLSClient) StartAt(offsetMs int64) error

Jump to

Keyboard shortcuts

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