mjpeg

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeHeaders

func MakeHeaders(p []byte, t byte, w, h uint16, lqt, cqt []byte) []byte

func MakeHuffmanHeader

func MakeHuffmanHeader(p, codelens, symbols []byte, tableNo, tableClass byte) []byte

func MakeQuantHeader

func MakeQuantHeader(p []byte, qt []byte, tableNo byte) []byte

func MakeTables

func MakeTables(q byte) (lqt, cqt []byte)

func RTPDepay

func RTPDepay(track *streamer.Track) streamer.WrapperFunc

func RTPPay

func RTPPay() streamer.WrapperFunc

Types

type Client

type Client struct {
	streamer.Element

	UserAgent  string
	RemoteAddr string
	// contains filtered or unexported fields
}

func NewClient

func NewClient(res *http.Response) *Client

func (*Client) GetMedias

func (c *Client) GetMedias() []*streamer.Media

func (*Client) GetTrack

func (c *Client) GetTrack(media *streamer.Media, codec *streamer.Codec) *streamer.Track

func (*Client) MarshalJSON

func (c *Client) MarshalJSON() ([]byte, error)

func (*Client) Start

func (c *Client) Start() error

func (*Client) Stop

func (c *Client) Stop() error

type Consumer

type Consumer struct {
	streamer.Element

	UserAgent  string
	RemoteAddr string
	// contains filtered or unexported fields
}

func (*Consumer) AddTrack

func (c *Consumer) AddTrack(media *streamer.Media, track *streamer.Track) *streamer.Track

func (*Consumer) GetMedias

func (c *Consumer) GetMedias() []*streamer.Media

func (*Consumer) MarshalJSON

func (c *Consumer) MarshalJSON() ([]byte, error)

Jump to

Keyboard shortcuts

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