process

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: 3 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{}

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, 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) 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 Recoder

type Recoder struct {
	*Client
}

func Run

func Run(
	ctx context.Context,
) (*Recoder, error)

func (*Recoder) Kill

func (r *Recoder) Kill() error

type RecoderConfig

type RecoderConfig = recoder.Config

type RecoderID

type RecoderID uint64

type RecoderStats

type RecoderStats = recoder.Stats

type ReturnedData

type ReturnedData struct {
	ListenAddr string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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