Documentation ¶
Index ¶
- func WithRtcpChan(rtcp chan []rtcp.Packet) trackOption
- type Track
- func (t *Track) Paused() bool
- func (t *Track) RemoveStream()
- func (t *Track) SetPaused(paused bool)
- func (t *Track) SetStream(stream types.StreamSinkManager) (bool, error)
- func (t *Track) Shutdown()
- func (t *Track) Stream() (types.StreamSinkManager, bool)
- func (t *Track) WriteSample(sample types.Sample)
- type WebRTCManagerCtx
- func (manager *WebRTCManagerCtx) CreatePeer(session types.Session) (*webrtc.SessionDescription, types.WebRTCPeer, error)
- func (manager *WebRTCManagerCtx) ICEServers() []types.ICEServer
- func (manager *WebRTCManagerCtx) SetCursorPosition(x, y int)
- func (manager *WebRTCManagerCtx) Shutdown() error
- func (manager *WebRTCManagerCtx) Start()
- type WebRTCPeerCtx
- func (peer *WebRTCPeerCtx) Audio() types.PeerAudio
- func (peer *WebRTCPeerCtx) CreateAnswer() (*webrtc.SessionDescription, error)
- func (peer *WebRTCPeerCtx) CreateOffer(ICERestart bool) (*webrtc.SessionDescription, error)
- func (peer *WebRTCPeerCtx) Destroy()
- func (peer *WebRTCPeerCtx) Paused() bool
- func (peer *WebRTCPeerCtx) SendCursorImage(cur *types.CursorImage, img []byte) error
- func (peer *WebRTCPeerCtx) SendCursorPosition(x, y int) error
- func (peer *WebRTCPeerCtx) SetAudio(r types.PeerAudioRequest) error
- func (peer *WebRTCPeerCtx) SetCandidate(candidate webrtc.ICECandidateInit) error
- func (peer *WebRTCPeerCtx) SetPaused(isPaused bool) error
- func (peer *WebRTCPeerCtx) SetRemoteDescription(desc webrtc.SessionDescription) error
- func (peer *WebRTCPeerCtx) SetVideo(r types.PeerVideoRequest) error
- func (peer *WebRTCPeerCtx) Video() types.PeerVideo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithRtcpChan ¶ added in v1.6.9
Types ¶
type Track ¶ added in v1.6.4
type Track struct {
// contains filtered or unexported fields
}
func (*Track) RemoveStream ¶ added in v1.6.4
func (t *Track) RemoveStream()
func (*Track) SetStream ¶ added in v1.6.4
func (t *Track) SetStream(stream types.StreamSinkManager) (bool, error)
func (*Track) WriteSample ¶ added in v1.6.9
type WebRTCManagerCtx ¶
type WebRTCManagerCtx struct {
// contains filtered or unexported fields
}
func New ¶
func New(desktop types.DesktopManager, capture types.CaptureManager, config *config.WebRTC) *WebRTCManagerCtx
func (*WebRTCManagerCtx) CreatePeer ¶
func (manager *WebRTCManagerCtx) CreatePeer(session types.Session) (*webrtc.SessionDescription, types.WebRTCPeer, error)
func (*WebRTCManagerCtx) ICEServers ¶
func (manager *WebRTCManagerCtx) ICEServers() []types.ICEServer
func (*WebRTCManagerCtx) SetCursorPosition ¶
func (manager *WebRTCManagerCtx) SetCursorPosition(x, y int)
func (*WebRTCManagerCtx) Shutdown ¶
func (manager *WebRTCManagerCtx) Shutdown() error
func (*WebRTCManagerCtx) Start ¶
func (manager *WebRTCManagerCtx) Start()
type WebRTCPeerCtx ¶
type WebRTCPeerCtx struct {
// contains filtered or unexported fields
}
func (*WebRTCPeerCtx) Audio ¶ added in v1.6.13
func (peer *WebRTCPeerCtx) Audio() types.PeerAudio
func (*WebRTCPeerCtx) CreateAnswer ¶
func (peer *WebRTCPeerCtx) CreateAnswer() (*webrtc.SessionDescription, error)
func (*WebRTCPeerCtx) CreateOffer ¶
func (peer *WebRTCPeerCtx) CreateOffer(ICERestart bool) (*webrtc.SessionDescription, error)
func (*WebRTCPeerCtx) Paused ¶ added in v1.6.12
func (peer *WebRTCPeerCtx) Paused() bool
func (*WebRTCPeerCtx) SendCursorImage ¶
func (peer *WebRTCPeerCtx) SendCursorImage(cur *types.CursorImage, img []byte) error
func (*WebRTCPeerCtx) SendCursorPosition ¶
func (peer *WebRTCPeerCtx) SendCursorPosition(x, y int) error
func (*WebRTCPeerCtx) SetAudio ¶ added in v1.6.13
func (peer *WebRTCPeerCtx) SetAudio(r types.PeerAudioRequest) error
func (*WebRTCPeerCtx) SetCandidate ¶
func (peer *WebRTCPeerCtx) SetCandidate(candidate webrtc.ICECandidateInit) error
func (*WebRTCPeerCtx) SetPaused ¶
func (peer *WebRTCPeerCtx) SetPaused(isPaused bool) error
func (*WebRTCPeerCtx) SetRemoteDescription ¶ added in v1.6.10
func (peer *WebRTCPeerCtx) SetRemoteDescription(desc webrtc.SessionDescription) error
func (*WebRTCPeerCtx) SetVideo ¶ added in v1.6.12
func (peer *WebRTCPeerCtx) SetVideo(r types.PeerVideoRequest) error
func (*WebRTCPeerCtx) Video ¶ added in v1.6.13
func (peer *WebRTCPeerCtx) Video() types.PeerVideo
Click to show internal directories.
Click to hide internal directories.