HLS

package
v0.0.1-alpha Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2020 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HLS

type HLS struct {
	TS
	HLSInfo
	TsHead      http.Header
	SaveContext context.Context
}

func (*HLS) Publish

func (p *HLS) Publish(streamName string, publisher Publisher) (result bool)

type HLSInfo

type HLSInfo struct {
	Video  M3u8Info
	Audio  M3u8Info
	TSInfo *TSInfo
}

type M3u8Info

type M3u8Info struct {
	Req       *http.Request `json:"-"`
	M3U8Count int
	TSCount   int
	LastM3u8  string
	M3u8Info  []TSCost
}

type TS

type TS struct {
	InputStream
	*mpegts.MpegTsStream
	TSInfo
	// contains filtered or unexported fields
}

func (*TS) Publish

func (ts *TS) Publish(streamPath string, publisher Publisher) (result bool)

type TSCost

type TSCost struct {
	DownloadCost int
	DecodeCost   int
	BufferLength int
}

type TSInfo

type TSInfo struct {
	TotalPesCount int
	IsSplitFrame  bool
	PTS           uint64
	DTS           uint64
	PesCount      int
	BufferLength  int
	RoomInfo      *RoomInfo
}

Jump to

Keyboard shortcuts

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