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 get

socket: *

public

The stack identifier.

public

The stream id.

Method Summary

Public Methods
public

getMediaBitrateFromDesc(description: *, mediaType: *): *

public

setLowerMediaBitrates(description: *, remoteDescription: *): *

public

setMediaBitrates(description: *): *

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 get socket: * source

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)

Public Methods

public getMediaBitrateFromDesc(description: *, mediaType: *): * source

Params:

NameTypeAttributeDescription
description *
mediaType *

Return:

*

public setLowerMediaBitrates(description: *, remoteDescription: *): * source

Params:

NameTypeAttributeDescription
description *
remoteDescription *

Return:

*

public setMediaBitrates(description: *): * source

Params:

NameTypeAttributeDescription
description *

Return:

*