Documentation ¶
Index ¶
- func WithVideoAuto(auto bool) option
- type Track
- func (t *Track) OnBitrateChange(f func(bitrate int) (bool, error))
- func (t *Track) OnRTCP(f func(rtcp.Packet))
- func (t *Track) OnVideoChange(f func(string) (bool, error))
- func (t *Track) RemoveStream()
- func (t *Track) SetBitrate(bitrate int) (bool, error)
- func (t *Track) SetPaused(paused bool)
- func (t *Track) SetStream(stream types.StreamSinkManager) (bool, error)
- func (t *Track) SetVideoAuto(auto bool)
- func (t *Track) SetVideoID(videoID string) (bool, error)
- func (t *Track) VideoAuto() bool
- type WebRTCManagerCtx
- func (manager *WebRTCManagerCtx) CreatePeer(session types.Session, bitrate int, videoAuto bool) (*webrtc.SessionDescription, 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) CreateAnswer() (*webrtc.SessionDescription, error)
- func (peer *WebRTCPeerCtx) CreateOffer(ICERestart bool) (*webrtc.SessionDescription, error)
- func (peer *WebRTCPeerCtx) Destroy()
- func (peer *WebRTCPeerCtx) GetVideoID() string
- func (peer *WebRTCPeerCtx) SendCursorImage(cur *types.CursorImage, img []byte) error
- func (peer *WebRTCPeerCtx) SendCursorPosition(x, y int) error
- func (peer *WebRTCPeerCtx) SetAnswer(sdp string) error
- func (peer *WebRTCPeerCtx) SetCandidate(candidate webrtc.ICECandidateInit) error
- func (peer *WebRTCPeerCtx) SetOffer(sdp string) error
- func (peer *WebRTCPeerCtx) SetPaused(isPaused bool) error
- func (peer *WebRTCPeerCtx) SetVideoAuto(auto bool)
- func (peer *WebRTCPeerCtx) SetVideoBitrate(peerBitrate int) error
- func (peer *WebRTCPeerCtx) SetVideoID(videoID string) error
- func (peer *WebRTCPeerCtx) VideoAuto() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithVideoAuto ¶ added in v1.6.7
func WithVideoAuto(auto bool) option
Types ¶
type Track ¶ added in v1.6.4
type Track struct {
// contains filtered or unexported fields
}
func (*Track) OnBitrateChange ¶ added in v1.6.4
func (*Track) OnVideoChange ¶ added in v1.6.7
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) SetVideoAuto ¶ added in v1.6.7
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 (*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) CreateAnswer ¶
func (peer *WebRTCPeerCtx) CreateAnswer() (*webrtc.SessionDescription, error)
func (*WebRTCPeerCtx) CreateOffer ¶
func (peer *WebRTCPeerCtx) CreateOffer(ICERestart bool) (*webrtc.SessionDescription, error)
func (*WebRTCPeerCtx) Destroy ¶
func (peer *WebRTCPeerCtx) Destroy()
func (*WebRTCPeerCtx) GetVideoID ¶ added in v1.6.7
func (peer *WebRTCPeerCtx) GetVideoID() string
TODO: Refactor.
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) SetAnswer ¶
func (peer *WebRTCPeerCtx) SetAnswer(sdp string) error
func (*WebRTCPeerCtx) SetCandidate ¶
func (peer *WebRTCPeerCtx) SetCandidate(candidate webrtc.ICECandidateInit) error
func (*WebRTCPeerCtx) SetOffer ¶
func (peer *WebRTCPeerCtx) SetOffer(sdp string) error
func (*WebRTCPeerCtx) SetPaused ¶
func (peer *WebRTCPeerCtx) SetPaused(isPaused bool) error
func (*WebRTCPeerCtx) SetVideoAuto ¶ added in v1.6.7
func (peer *WebRTCPeerCtx) SetVideoAuto(auto bool)
func (*WebRTCPeerCtx) SetVideoBitrate ¶ added in v1.6.4
func (peer *WebRTCPeerCtx) SetVideoBitrate(peerBitrate int) error
func (*WebRTCPeerCtx) SetVideoID ¶
func (peer *WebRTCPeerCtx) SetVideoID(videoID string) error
func (*WebRTCPeerCtx) VideoAuto ¶ added in v1.6.7
func (peer *WebRTCPeerCtx) VideoAuto() bool
Click to show internal directories.
Click to hide internal directories.