webrtc library

Classes

MediaRecorder
MediaStream
MediaStreamTrack
RTCDataChannel
A class that represents a WebRTC datachannel. Can send and receive text and binary messages.
RTCDataChannelInit
Initialization parameters for RTCDataChannel.
RTCDataChannelMessage
A class that represents a datachannel message. Can either contain binary data as a Uint8List or text data as a String.
RTCIceCandidate
RTCPeerConnection
RTCSessionDescription
RTCVideoRenderer
RTCVideoView
StatsReport
WebRTC

Functions

createLocalMediaStream(String label) Future<MediaStream>
createPeerConnection(Map<String, dynamic> configuration, [Map<String, dynamic> constraints = const {}]) Future<RTCPeerConnection>
iceConnectionStateForString(String state) RTCIceConnectionState
iceGatheringStateforString(String state) RTCIceGatheringState
rtcDataChannelStateForString(String state) RTCDataChannelState
signalingStateForString(String state) RTCSignalingState

Enums

MessageType
RTCDataChannelMessage type
RecorderAudioChannel
RTCDataChannelState
RTCIceConnectionState
RTCIceGatheringState
RTCSignalingState
RTCVideoViewObjectFit

Typedefs

AddStreamCallback = void Function(MediaStream stream)
AddTrackCallback = void Function(MediaStream stream, MediaStreamTrack track)
IceCandidateCallback = void Function(RTCIceCandidate candidate)
IceConnectionStateCallback = void Function(RTCIceConnectionState state)
IceGatheringStateCallback = void Function(RTCIceGatheringState state)
RemoveStreamCallback = void Function(MediaStream stream)
RemoveTrackCallback = void Function(MediaStream stream, MediaStreamTrack track)
RTCDataChannelCallback = void Function(RTCDataChannel channel)
RTCDataChannelOnMessageCallback = void Function(RTCDataChannelMessage message)
RTCDataChannelStateCallback = void Function(RTCDataChannelState state)
SignalingStateCallback = void Function(RTCSignalingState state)