Home Manual Reference Source
public class | source

PeerConnection

The PeerConnection. A PeerConnection will only concern one MediaStream.

Member Summary

Public Members
public get

Indicates if the PeerConnection is established based on ICE connection state

public

Indicates if the PeerConnection has been established.

public

The actual RTCPeerConnection

public

publish : a created peer connection or a remote one

public

The remote device

public get

The remote MediaStream

public

The stack identifier.

public

The stream id.

Public Members

public get isConnected: boolean: * source

Indicates if the PeerConnection is established based on ICE connection state

Return:

boolean

public negotiated: boolean source

Indicates if the PeerConnection has been established. (Useful for renegotiation).

public pc: RTCPeerConnection source

The actual RTCPeerConnection

public publish: boolean source

publish : a created peer connection or a remote one

public remote: string source

The remote device

public get remoteStream: MediaStream source

The remote MediaStream

public stackId: string source

The stack identifier. Used to identify exchanges between 2 devices

public streamId: string source

The stream id. (One stream per RTCPeerConnection)