playrtc

package
v0.0.0-...-d6eaca8 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2021 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CandidateSender

type CandidateSender func(webrtc.ICECandidateInit)

type Engine

type Engine struct {
	AdvertiseHost string
	// contains filtered or unexported fields
}

func NewEngine

func NewEngine(advertiseHost string) (*Engine, error)

func (*Engine) OfferToSend

func (e *Engine) OfferToSend(src av.Demuxer, addViewer ViewerFunc, remoteIP string, sendCandidate CandidateSender) (*Sender, error)

type Sender

type Sender struct {
	// contains filtered or unexported fields
}

func (*Sender) Candidate

func (s *Sender) Candidate(candidate webrtc.ICECandidateInit)

func (*Sender) Close

func (s *Sender) Close()

func (*Sender) SDP

func (s *Sender) SDP() webrtc.SessionDescription

func (*Sender) SetAnswer

func (s *Sender) SetAnswer(answer webrtc.SessionDescription) error

type ViewerFunc

type ViewerFunc func(int)

Jump to

Keyboard shortcuts

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