streamplayers

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: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SetupOption

type SetupOption interface {
	// contains filtered or unexported methods
}

type SetupOptionDefaultStreamPlayerOptions

type SetupOptionDefaultStreamPlayerOptions streamplayer.Options

type SetupOptions

type SetupOptions []SetupOption

func (SetupOptions) Config

func (s SetupOptions) Config() setupConfig

type StreamPlayers

type StreamPlayers struct {
	xsync.Mutex
	StreamServer
	*streamplayer.StreamPlayers
}

func NewStreamPlayers

func NewStreamPlayers(
	sp *streamplayer.StreamPlayers,
	streamServer StreamServer,
) *StreamPlayers

func (*StreamPlayers) AddStreamPlayer

func (s *StreamPlayers) AddStreamPlayer(
	ctx context.Context,
	streamID types.StreamID,
	playerType player.Backend,
	disabled bool,
	streamPlaybackConfig sptypes.Config,
	opts ...types.StreamPlayerOption,
) error

func (*StreamPlayers) GetActiveStreamPlayer

func (s *StreamPlayers) GetActiveStreamPlayer(
	ctx context.Context,
	streamID types.StreamID,
) (player.Player, error)

func (*StreamPlayers) GetStreamPlayer

func (s *StreamPlayers) GetStreamPlayer(
	ctx context.Context,
	streamID types.StreamID,
) (*types.StreamPlayer, error)

func (*StreamPlayers) Init

func (s *StreamPlayers) Init(
	ctx context.Context,
	opts ...types.InitOption,
) error

func (*StreamPlayers) ListStreamPlayers

func (s *StreamPlayers) ListStreamPlayers(
	ctx context.Context,
) ([]types.StreamPlayer, error)

func (*StreamPlayers) RemoveStreamPlayer

func (s *StreamPlayers) RemoveStreamPlayer(
	ctx context.Context,
	streamID types.StreamID,
) error

func (*StreamPlayers) SetupStreamPlayers

func (s *StreamPlayers) SetupStreamPlayers(
	ctx context.Context,
	opts ...SetupOption,
) (_err error)

func (*StreamPlayers) UpdateStreamPlayer

func (s *StreamPlayers) UpdateStreamPlayer(
	ctx context.Context,
	streamID types.StreamID,
	playerType player.Backend,
	disabled bool,
	streamPlaybackConfig sptypes.Config,
	opts ...types.StreamPlayerOption,
) error

type StreamServer

type StreamServer interface {
	types.WithConfiger
	types.WaitPublisherChaner
}

Jump to

Keyboard shortcuts

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