Documentation
¶
Index ¶
- Constants
- Variables
- type ControlInput
- type OfferRequest
- type OfferResponse
- type Service
- func (s *Service) Answer(ctx context.Context, botID string, req OfferRequest) (OfferResponse, error)
- func (s *Service) Close() error
- func (s *Service) CloseSession(botID, sessionID string) bool
- func (s *Service) ControlInput(ctx context.Context, botID string, event ControlInput) error
- func (s *Service) ControlInputs(ctx context.Context, botID string, events []ControlInput) error
- func (s *Service) ListSessions(botID string) []SessionInfo
- func (s *Service) Screenshot(ctx context.Context, botID string) ([]byte, string, error)
- func (s *Service) Start() error
- func (s *Service) Status(ctx context.Context, botID string) Status
- type SessionInfo
- type Status
- type Workspace
Constants ¶
View Source
const ( TransportWebRTC = "webrtc" EncoderGStreamer = "gstreamer" CodecH264 = webrtc.MimeTypeH264 CodecVP8 = webrtc.MimeTypeVP8 )
Variables ¶
View Source
var ( ErrDisplayDisabled = errors.New("display disabled") ErrCodecUnsupported = errors.New("no compatible video codec offered") )
Functions ¶
This section is empty.
Types ¶
type ControlInput ¶
type OfferRequest ¶
type OfferResponse ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) Answer ¶
func (s *Service) Answer(ctx context.Context, botID string, req OfferRequest) (OfferResponse, error)
func (*Service) Close ¶ added in v0.20.0
Close releases the shared ICE UDP listener owned by this display service. It is called after the HTTP server stops accepting display requests.
func (*Service) CloseSession ¶
func (*Service) ControlInput ¶
func (*Service) ControlInputs ¶
func (*Service) ListSessions ¶
func (s *Service) ListSessions(botID string) []SessionInfo
func (*Service) Screenshot ¶
type SessionInfo ¶
Click to show internal directories.
Click to hide internal directories.