Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( CandidateProcedureName = "webrtcCandidate" SdpProcedureName = "webrtcSdp" )
Functions ¶
func SignalAnswer ¶
SignalAnswer sets up the WebRTC answer side of the signaling process for a peer connection.
The underlying RPC system must be capable of concurrent, as well as recursive calls. Two procedures will be added, whose names are determined by the global variables CandidateProcedureName and SdpProcedureName.
func SignalOffer ¶
func SignalOffer(conn *webrtc.PeerConnection, cli rpc.Client, lib rpc.Library) (func() error, error)
SignalOffer sets up the WebRTC offer side of the signaling process for a peer connection.
The underlying RPC system must be capable of concurrent, as well as recursive calls. Two procedures will be added, whose names are determined by the global variables CandidateProcedureName and SdpProcedureName.
The returned function can be used to start the initial process, as well as renegotiation.
Types ¶
type Channel ¶
type Channel struct { V *webrtc.DataChannel // contains filtered or unexported fields }
func ChannelNew ¶ added in v0.1.9
func ChannelNew(v *webrtc.DataChannel) *Channel
ChannelNew wraps a webrtc.DataChannel to fit the msg framework.
func (*Channel) CloseHandle ¶ added in v0.1.9
func (x *Channel) CloseHandle(fn func())
func (*Channel) OpenHandle ¶ added in v0.1.9
func (x *Channel) OpenHandle(fn func())
func (*Channel) ReaderChain ¶
func (x *Channel) ReaderChain(dst msg.ReaderTaker) error