Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RemoteScreenConnection ¶
RemoteScreenConnection Represents a WebRTC connection to a single peer
type RemoteScreenPeerConn ¶
type RemoteScreenPeerConn struct {
// contains filtered or unexported fields
}
RemoteScreenPeerConn is a webrtc.PeerConnection wrapper that implements the PeerConnection interface
func (*RemoteScreenPeerConn) Close ¶
func (p *RemoteScreenPeerConn) Close() error
Close Stops the video streamer and closes the WebRTC peer connection
func (*RemoteScreenPeerConn) ProcessOffer ¶
func (p *RemoteScreenPeerConn) ProcessOffer(strOffer string) (string, error)
ProcessOffer handles the SDP offer coming from the client, return the SDP answer that must be passed back to stablish the WebRTC connection.
type RemoteScreenService ¶
type RemoteScreenService struct {
// contains filtered or unexported fields
}
RemoteScreenService is our implementation of the rtc.Service
func (*RemoteScreenService) CreateRemoteScreenConnection ¶
func (svc *RemoteScreenService) CreateRemoteScreenConnection(screenIx int, fps int) (RemoteScreenConnection, error)
CreateRemoteScreenConnection creates and configures a new peer connection that will stream the selected screen
Click to show internal directories.
Click to hide internal directories.