RTCFactory
Methods#
createPeerConnection: Creates a newRTCPeerConnectionobject with the specifiedRTCConfiguration.
RTCPeerConnection pc = await createPeerConnection({ 'iceServers': [ {'urls': 'stun:stun.l.google.com:19302'}, ]});createLocalMediaStream: Creates a newMediaStreamobject with the specifiedlable.
MediaStream stream = factory.createLocalMediaStream('new_stream_label');getRtpSenderCapabilities: Returns aRTCRtpCapabilitiesobject that represents the capabilities of the sender for the givenkind.
RTCRtpCapabilities capabilities = getRtpSenderCapabilities('video'); // or 'audio'getRtpReceiverCapabilities: Returns aRTCRtpCapabilitiesobject that represents the capabilities of the receiver for the givenkind.
RTCRtpCapabilities capabilities = getRtpReceiverCapabilities('video'); // or 'audio'Properties#
frameCryptorFactory: Returns aFrameCryptorFactoryobject for End to End Encryption.