webrtc

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2023 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const MimeSDP = "application/sdp"

Variables

View Source
var PeerConnection func(active bool) (*pion.PeerConnection, error)
View Source
var Port string

Functions

func AddCandidate

func AddCandidate(address string)

func Dial added in v1.7.1

func Dial(rawURL string) (*websocket.Conn, *http.Response, error)

Dial - websocket.Dial with Basic auth support

func ExchangeSDP

func ExchangeSDP(stream *streams.Stream, offer, desc, userAgent string) (answer string, err error)

func GetCandidates

func GetCandidates() (candidates []string)

func Init

func Init()

func IsConsumer

func IsConsumer(conn *webrtc.Conn) bool

Types

type Address

type Address struct {
	Host string
	Port int
}

Jump to

Keyboard shortcuts

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