datachannel

package
v0.0.0-...-ec39a3d Latest Latest
Warning

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

Go to latest
Published: May 19, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

* Copyright (c) 2021 Anton Brekhov * All rights reserved.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(in string, obj interface{})

Decode base64 SDP

func Encode

func Encode(obj interface{}) string

Encode base64 SDP

func FileTransferHandler

func FileTransferHandler(channel *webrtc.DataChannel)

func MustReadStdin

func MustReadStdin() string

MustReadStdin waiting for base64 encoded SDP for connection

Types

type Signal

type Signal struct {
	ICECandidates    []webrtc.ICECandidate   `json:"iceCandidates"`
	ICEParameters    webrtc.ICEParameters    `json:"iceParameters"`
	DTLSParameters   webrtc.DTLSParameters   `json:"dtlsParameters"`
	SCTPCapabilities webrtc.SCTPCapabilities `json:"sctpCapabilities"`
}

Signal is used to exchange signaling info. This is not part of the ORTC spec. You are free to exchange this information any way you want.

Jump to

Keyboard shortcuts

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