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
type Service ¶
type Service interface {
CreateRemoteScreenConnection(screenIx int, fps int) (RemoteScreenConnection, error)
}
Service WebRTC service
func NewRemoteScreenService ¶
func NewRemoteScreenService(stun string, video rdisplay.ServiceInterface, enc encoders.ServiceInterface) Service
NewRemoteScreenService creates a new instances of RemoteScreenService