webrtc

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2023 License: MIT Imports: 20 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 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
}

type KinesisRequest added in v1.6.1

type KinesisRequest struct {
	Action   string `json:"action"`
	ClientID string `json:"recipientClientId"`
	Payload  []byte `json:"messagePayload"`
}

func (KinesisRequest) String added in v1.6.1

func (k KinesisRequest) String() string

type KinesisResponse added in v1.6.1

type KinesisResponse struct {
	Payload []byte `json:"messagePayload"`
	Type    string `json:"messageType"`
}

func (KinesisResponse) String added in v1.6.1

func (k KinesisResponse) String() string

type WyzeKVS added in v1.6.1

type WyzeKVS struct {
	ClientId string          `json:"ClientId"`
	Cam      string          `json:"cam"`
	Result   string          `json:"result"`
	Servers  json.RawMessage `json:"servers"`
	URL      string          `json:"signalingUrl"`
}

Jump to

Keyboard shortcuts

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