DefinitelyTyped

Index

Variables

Enumerations

Interfaces

Variables

IceState: IceState

MediaStream: MediaStream

public ended: boolean

public id: string

public label: string

public onended: (event: Event) => void

public getAudioTracks(): MediaStreamTrackList

Returns

MediaStreamTrackList

public getVideoTracks(): MediaStreamTrackList

Returns

MediaStreamTrackList

MediaStreamConstraints: MediaStreamConstraints

public audio: any

public video: any

MediaStreamTrack: MediaStreamTrack

public ENDED: number

public LIVE: number

public MUTED: number

public enabled: boolean

public kind: string

public label: string

public onended: (event: Event) => void

public onmute: (event: Event) => void

public onunmute: (event: Event) => void

public readyState: number

MediaStreamTrackList: MediaStreamTrackList

public item: MediaStreamTrack

public length: number

public onaddtrack: (event: Event) => void

public onremovetrack: (event: Event) => void

public add(track: MediaStreamTrack)

Parameters

public remove(track: MediaStreamTrack)

Parameters

MediaTrackConstraint: MediaTrackConstraint

MediaTrackConstraintSet: MediaTrackConstraintSet

MediaTrackConstraints: MediaTrackConstraints

public mandatory: MediaTrackConstraintSet

public optional: MediaTrackConstraint[]

NavigatorUserMediaError: NavigatorUserMediaError

public PERMISSION_DENIED: number

public code: number

PeerConnectionIceEvent: PeerConnectionIceEvent

public candidate: RTCIceCandidate

public peer: RTCPeerConnection

RTCConfiguration: RTCConfiguration

public iceServers: RTCIceServer[]

RTCDataChannel: RTCDataChannel

public binaryType: string

public bufferedAmount: number

public label: string

public onclose: (event: Event) => void

public onerror: (event: Event) => void

public onmessage: (event: Event) => void

public onopen: (event: Event) => void

public readyState: RTCDataChannelState

public reliable: boolean

public addEventListener(type: string, listener: EventListener, useCapture?: boolean)

Parameters

  • type: string
  • listener: EventListener
  • useCapture?: boolean optional

public close()

public dispatchEvent(evt: Event): boolean

Parameters

  • evt: Event

Returns

boolean

public removeEventListener(type: string, listener: EventListener, useCapture?: boolean)

Parameters

  • type: string
  • listener: EventListener
  • useCapture?: boolean optional

public send(data: string): any

Parameters

  • data: string

Returns

any

public send(data: ArrayBuffer): any

Parameters

  • data: ArrayBuffer

Returns

any

public send(data: Blob): any

Parameters

  • data: Blob

Returns

any

RTCDataChannelEvent: RTCDataChannelEvent

public AT_TARGET: number

public BUBBLING_PHASE: number

public CAPTURING_PHASE: number

public bubbles: boolean

public cancelBubble: boolean

public cancelable: boolean

public channel: RTCDataChannel

public currentTarget: EventTarget

public defaultPrevented: boolean

public eventPhase: number

public isTrusted: boolean

public srcElement: Element

public target: EventTarget

public timeStamp: number

public type: string

public constructor(eventInitDict: RTCDataChannelEventInit): any

Parameters

Returns

any

public initEvent(eventTypeArg: string, canBubbleArg: boolean, cancelableArg: boolean)

Parameters

  • eventTypeArg: string
  • canBubbleArg: boolean
  • cancelableArg: boolean

public preventDefault()

public stopImmediatePropagation()

public stopPropagation()

RTCIceCandidate: RTCIceCandidate

optional public candidate?: string

optional public sdpMLineIndex?: number

optional public sdpMid?: string

RTCIceCandidateInit: RTCIceCandidateInit

public candidate: string

public sdpMLineIndex: number

public sdpMid: string

RTCIceServer: RTCIceServer

optional public credential?: string

public url: string

RTCPeerConnection: RTCPeerConnection

public iceConnectionState: RTCIceConnectionState

public iceGatheringState: RTCIceGatheringState

public localDescription: RTCSessionDescription

public onaddstream: (event: RTCMediaStreamEvent) => void

public onconnecting: (event: Event) => void

public ondatachannel: (event: Event) => void

public onicecandidate: (event: RTCIceCandidateEvent) => void

public onicechange: (event: Event) => void

public onidentityresult: (event: Event) => void

public onnegotiationneeded: (event: Event) => void

public onopen: (event: Event) => void

public onremovestream: (event: RTCMediaStreamEvent) => void

public onstatechange: (event: Event) => void

public remoteDescription: RTCSessionDescription

public signalingState: RTCSignalingState

public addIceCandidate(candidate: RTCIceCandidate)

Parameters

public addStream(stream: MediaStream, constraints?: MediaConstraints)

Parameters

public close()

public createAnswer(successCallback: RTCSessionDescriptionCallback, failureCallback?: RTCPeerConnectionErrorCallback, constraints?: MediaConstraints)

Parameters

public createDataChannel(label?: string, dataChannelDict?: RTCDataChannelInit): RTCDataChannel

Parameters

Returns

RTCDataChannel

public createOffer(successCallback: RTCSessionDescriptionCallback, failureCallback?: RTCPeerConnectionErrorCallback, constraints?: MediaConstraints)

Parameters

public getLocalStreams(): MediaStream[]

Returns

MediaStream[]

public getRemoteStreams(): MediaStream[]

Returns

MediaStream[]

public removeStream(stream: MediaStream)

Parameters

public setLocalDescription(description: RTCSessionDescription, successCallback?: RTCVoidCallback, failureCallback?: RTCPeerConnectionErrorCallback)

Parameters

public setRemoteDescription(description: RTCSessionDescription, successCallback?: RTCVoidCallback, failureCallback?: RTCPeerConnectionErrorCallback)

Parameters

public updateIce(configuration?: RTCConfiguration, constraints?: MediaConstraints)

Parameters

RTCPeerConnectionConfig: RTCPeerConnectionConfig

public iceServers: RTCIceServer[]

RTCSessionDescription: RTCSessionDescription

optional public sdp?: string

optional public type?: RTCSdpType

RTCSessionDescriptionInit: RTCSessionDescriptionInit

public sdp: string

public type: RTCSdpType

SourceInfo: SourceInfo

public facing: string

public id: string

public kind: string

public label: string

webkitMediaStream: { prototype: MediaStream; new(): MediaStream; new(trackContainers: MediaStream[]): MediaStream; new(trackContainers: MediaStreamTrackList[]): MediaStream; new(trackContainers: MediaStreamTrack[]): MediaStream; }

constructor(): MediaStream

Returns

MediaStream

constructor(): MediaStream

Returns

MediaStream

constructor(): MediaStream

Returns

MediaStream

constructor(): MediaStream

Returns

MediaStream

public webkitMediaStream.prototype: MediaStream

webkitMediaStreamTrackList: { prototype: MediaStreamTrackList; new(): MediaStreamTrackList; }

constructor(): MediaStreamTrackList

Returns

MediaStreamTrackList

public webkitMediaStreamTrackList.prototype: MediaStreamTrackList

webkitRTCPeerConnection: webkitRTCPeerConnection

public iceConnectionState: RTCIceConnectionState

public iceGatheringState: RTCIceGatheringState

public localDescription: RTCSessionDescription

public onaddstream: (event: RTCMediaStreamEvent) => void

public onconnecting: (event: Event) => void

public ondatachannel: (event: Event) => void

public onicecandidate: (event: RTCIceCandidateEvent) => void

public onicechange: (event: Event) => void

public onidentityresult: (event: Event) => void

public onnegotiationneeded: (event: Event) => void

public onopen: (event: Event) => void

public onremovestream: (event: RTCMediaStreamEvent) => void

public onstatechange: (event: Event) => void

public remoteDescription: RTCSessionDescription

public signalingState: RTCSignalingState

public addIceCandidate(candidate: RTCIceCandidate)

Parameters

public addStream(stream: MediaStream, constraints?: MediaConstraints)

Parameters

public close()

public createAnswer(successCallback: RTCSessionDescriptionCallback, failureCallback?: RTCPeerConnectionErrorCallback, constraints?: MediaConstraints)

Parameters

public createDataChannel(label?: string, dataChannelDict?: RTCDataChannelInit): RTCDataChannel

Parameters

Returns

RTCDataChannel

public createOffer(successCallback: RTCSessionDescriptionCallback, failureCallback?: RTCPeerConnectionErrorCallback, constraints?: MediaConstraints)

Parameters

public getLocalStreams(): MediaStream[]

Returns

MediaStream[]

public getRemoteStreams(): MediaStream[]

Returns

MediaStream[]

public removeStream(stream: MediaStream)

Parameters

public setLocalDescription(description: RTCSessionDescription, successCallback?: RTCVoidCallback, failureCallback?: RTCPeerConnectionErrorCallback)

Parameters

public setRemoteDescription(description: RTCSessionDescription, successCallback?: RTCVoidCallback, failureCallback?: RTCPeerConnectionErrorCallback)

Parameters

public updateIce(configuration?: RTCConfiguration, constraints?: MediaConstraints)

Parameters

webkitURL: { prototype: WebkitURL; createObjectURL(stream: MediaStream): string; new(): streamURL; }

constructor(): streamURL

Returns

streamURL

public webkitURL.prototype: WebkitURL

public createObjectURL(): string

Returns

string

.stream.stream: MediaStream