clients

package
v0.0.0-...-7d1d8e6 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiClient

type ApiClient struct {
	// contains filtered or unexported fields
}

func NewApiClient

func NewApiClient(loginGetter loginGetter, shigUrl string, spaceId string, streamId string) *ApiClient

func (*ApiClient) Login

func (a *ApiClient) Login() (*authentication.Token, error)

func (*ApiClient) PostWhepOffer

func (a *ApiClient) PostWhepOffer(offer *webrtc.SessionDescription) (*webrtc.SessionDescription, error)

func (*ApiClient) PostWhipOffer

func (a *ApiClient) PostWhipOffer(offer *webrtc.SessionDescription) (*webrtc.SessionDescription, error)

type Messenger

type Messenger struct {
	// contains filtered or unexported fields
}

func NewMessenger

func NewMessenger(s msgSender) *Messenger

func (*Messenger) Register

func (m *Messenger) Register(o msgObserver)

func (*Messenger) SendAnswer

func (m *Messenger) SendAnswer(sdp *webrtc.SessionDescription, id uint32, number uint32) (uint32, error)

func (*Messenger) SendMute

func (m *Messenger) SendMute(mute *message.Mute) error

func (*Messenger) SendOffer

func (m *Messenger) SendOffer(offer *webrtc.SessionDescription, number uint32) (uint32, error)

Jump to

Keyboard shortcuts

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