Documentation ¶
Index ¶
- type SetupOption
- type SetupOptionDefaultStreamPlayerOptions
- type SetupOptions
- type StreamPlayers
- func (s *StreamPlayers) AddStreamPlayer(ctx context.Context, streamID types.StreamID, playerType player.Backend, ...) error
- func (s *StreamPlayers) GetActiveStreamPlayer(ctx context.Context, streamID types.StreamID) (player.Player, error)
- func (s *StreamPlayers) GetStreamPlayer(ctx context.Context, streamID types.StreamID) (*types.StreamPlayer, error)
- func (s *StreamPlayers) Init(ctx context.Context, opts ...types.InitOption) error
- func (s *StreamPlayers) ListStreamPlayers(ctx context.Context) ([]types.StreamPlayer, error)
- func (s *StreamPlayers) RemoveStreamPlayer(ctx context.Context, streamID types.StreamID) error
- func (s *StreamPlayers) SetupStreamPlayers(ctx context.Context, opts ...SetupOption) (_err error)
- func (s *StreamPlayers) UpdateStreamPlayer(ctx context.Context, streamID types.StreamID, playerType player.Backend, ...) error
- type StreamServer
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 (*StreamPlayers) GetActiveStreamPlayer ¶
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 (*StreamPlayers) SetupStreamPlayers ¶
func (s *StreamPlayers) SetupStreamPlayers( ctx context.Context, opts ...SetupOption, ) (_err error)
func (*StreamPlayers) UpdateStreamPlayer ¶
type StreamServer ¶
type StreamServer interface { types.WithConfiger types.WaitPublisherChaner }
Click to show internal directories.
Click to hide internal directories.