rtc

package
v0.0.0-...-ceb6196 Latest Latest
Warning

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

Go to latest
Published: May 11, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WebRTCOffer       MessageType = "webRtcOffer"
	IceCandidate                  = "iceCandidate"
	BitrateChangeType             = "bitrateChange"
)

Variables

This section is empty.

Functions

func Decode

func Decode(in string, obj interface{})

Types

type BitrateChangeOffer

type BitrateChangeOffer struct {
	Bitrate uint64 `json:"bitrate"`
}

type MessageType

type MessageType string

type OutputMessage

type OutputMessage struct {
	Data []byte
	Type messages.MessageType
}

type WebRTCStreamer

type WebRTCStreamer struct {
	WebRtcVideoStream chan *webrtc.TrackLocalStaticRTP
	WebRtcAudioStream chan *webrtc.TrackLocalStaticRTP
	// contains filtered or unexported fields
}

func NewWebRTCStreamer

func NewWebRTCStreamer() *WebRTCStreamer

func (*WebRTCStreamer) Recv

func (r *WebRTCStreamer) Recv() chan []byte

func (*WebRTCStreamer) Send

func (r *WebRTCStreamer) Send() chan OutputMessage

func (*WebRTCStreamer) Start

func (r *WebRTCStreamer) Start()

type WebRTCViewer

type WebRTCViewer struct {
	WebRtcVideoStream chan *webrtc.TrackLocalStaticRTP
	WebRtcAudioStream chan *webrtc.TrackLocalStaticRTP
	// contains filtered or unexported fields
}

func NewWebRTCViewer

func NewWebRTCViewer() *WebRTCViewer

func (*WebRTCViewer) LateStart

func (r *WebRTCViewer) LateStart(videoStream *webrtc.TrackLocalStaticRTP, audioStream *webrtc.TrackLocalStaticRTP)

func (*WebRTCViewer) Recv

func (r *WebRTCViewer) Recv() chan []byte

func (*WebRTCViewer) Send

func (r *WebRTCViewer) Send() chan OutputMessage

func (*WebRTCViewer) Start

func (r *WebRTCViewer) Start()

type WebRtcClient

type WebRtcClient interface {
	Send() chan OutputMessage
	Recv() chan []byte
}

type WebRtcInfo

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

Jump to

Keyboard shortcuts

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