magic

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Desc string
	URL  string

	Handle func() error
	// contains filtered or unexported fields
}

Client - can read unknown bytestream and autodetect format

func NewClient

func NewClient(r io.ReadCloser) *Client

func (*Client) Close

func (c *Client) Close() error

func (*Client) GetMedias

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

func (*Client) GetTrack

func (c *Client) GetTrack(media *core.Media, codec *core.Codec) (*core.Receiver, error)

func (*Client) MarshalJSON

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

func (*Client) Probe

func (c *Client) Probe() (err error)

func (*Client) ReadBitstreams

func (c *Client) ReadBitstreams() error

func (*Client) ReadMJPEG

func (c *Client) ReadMJPEG() error

func (*Client) ReadMPEGTS

func (c *Client) ReadMPEGTS() error

func (*Client) Start

func (c *Client) Start() error

func (*Client) Stop

func (c *Client) Stop() (err error)

type Keyframe

type Keyframe struct {
	core.Listener

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

func (*Keyframe) AddTrack

func (k *Keyframe) AddTrack(media *core.Media, _ *core.Codec, track *core.Receiver) error

func (*Keyframe) CodecName

func (k *Keyframe) CodecName() string

func (*Keyframe) GetMedias

func (k *Keyframe) GetMedias() []*core.Media

func (*Keyframe) Stop

func (k *Keyframe) Stop() error

Jump to

Keyboard shortcuts

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