Device class

Constructors

Device()

Properties

hashCode int
The hash code for this object.
no setterinherited
loaded bool
no setter
observer → EnhancedEventEmitter
Observer.
no setter
rtpCapabilities RtpCapabilities
RTP capabilities of the Device for receiving media.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sctpCapabilities SctpCapabilities
SCTP capabilities of the Device. @throws {InvalidStateError} if not loaded.
no setter

Methods

canProduce(RTCRtpMediaType kind) bool
Whether we can produce audio/video.
createRecvTransport({required String id, required IceParameters iceParameters, required List<IceCandidate> iceCandidates, required DtlsParameters dtlsParameters, SctpParameters? sctpParameters, List<RTCIceServer> iceServers = const <RTCIceServer>[], RTCIceTransportPolicy? iceTransportPolicy, Map<String, dynamic> additionalSettings = const <String, dynamic>{}, Map<String, dynamic> proprietaryConstraints = const <String, dynamic>{}, Map<String, dynamic> appData = const <String, dynamic>{}, Function? consumerCallback, Function? dataConsumerCallback}) Transport
Creates a Transport for receiving media.
createRecvTransportFromMap(Map data, {Function? consumerCallback, Function? dataConsumerCallback}) Transport
createSendTransport({required String id, required IceParameters iceParameters, required List<IceCandidate> iceCandidates, required DtlsParameters dtlsParameters, SctpParameters? sctpParameters, List<RTCIceServer> iceServers = const <RTCIceServer>[], RTCIceTransportPolicy? iceTransportPolicy, Map<String, dynamic> additionalSettings = const <String, dynamic>{}, Map<String, dynamic> proprietaryConstraints = const <String, dynamic>{}, Map<String, dynamic> appData = const <String, dynamic>{}, Function? producerCallback, Function? dataProducerCallback}) Transport
Creates a Transport for sending media.
createSendTransportFromMap(Map data, {Function? producerCallback, Function? dataProducerCallback}) Transport
load({required RtpCapabilities routerRtpCapabilities}) Future<void>
Initialize the Device.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited