rtc

package
v0.0.0-...-039e11e Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2021 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 RemoteScreenConnection

type RemoteScreenConnection interface {
	io.Closer
	ProcessOffer(offer string) (string, error)
}

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.Service, enc encoders.Service) Service

NewRemoteScreenService creates a new instances of RemoteScreenService

Jump to

Keyboard shortcuts

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