client

package
v0.0.0-...-4503ccc Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2024 License: CC0-1.0 Imports: 10 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 {
	Target string
}

func New

func New(target string) *Client

func (*Client) CloseInput

func (c *Client) CloseInput(
	ctx context.Context,
	inputID InputID,
) error

func (*Client) CloseOutput

func (c *Client) CloseOutput(
	ctx context.Context,
	outputID OutputID,
) error

func (*Client) GetRecoderStats

func (c *Client) GetRecoderStats(
	ctx context.Context,
	recoderID RecoderID,
) (*RecoderStats, error)

func (*Client) NewInputFromURL

func (c *Client) NewInputFromURL(
	ctx context.Context,
	url string,
	authKey string,
	config InputConfig,
) (_ InputID, _err error)

func (*Client) NewOutputFromURL

func (c *Client) NewOutputFromURL(
	ctx context.Context,
	url string,
	streamKey string,
	config OutputConfig,
) (OutputID, error)

func (*Client) NewRecoder

func (c *Client) NewRecoder(
	ctx context.Context,
	config RecoderConfig,
) (RecoderID, error)

func (*Client) RecodingEndedChan

func (c *Client) RecodingEndedChan(
	ctx context.Context,
	recoderID RecoderID,
) (<-chan struct{}, error)

func (*Client) SetLoggingLevel

func (c *Client) SetLoggingLevel(
	ctx context.Context,
	logLevel logger.Level,
) error

func (*Client) StartRecoding

func (c *Client) StartRecoding(
	ctx context.Context,
	recoderID RecoderID,
	inputID InputID,
	outputID OutputID,
) error

type InputConfig

type InputConfig = recoder.InputConfig

type InputID

type InputID uint64

type OutputConfig

type OutputConfig = recoder.OutputConfig

type OutputID

type OutputID uint64

type RecoderConfig

type RecoderConfig = recoder.Config

type RecoderID

type RecoderID uint64

type RecoderStats

type RecoderStats = recoder.Stats

Jump to

Keyboard shortcuts

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