LocalStream class
Constructors
- LocalStream(MediaStream _stream, Constraints _constraints)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stream → MediaStream
-
no setter
Methods
-
getNewTrack(
String kind) → Future< MediaStreamTrack> - 'audio' | 'video'
-
getTrack(
String kind) → MediaStreamTrack? - 'audio' | 'video'
-
mute(
String kind) → Future< void> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
publish(
RTCPeerConnection pc) → Future< void> -
publishTrack(
{required MediaStreamTrack track}) → void -
setPreferredCodec(
RTCRtpTransceiver? transceiver) → void -
switchDevice(
String kind, {required String deviceId}) → Future< void> - 'audio' | 'video'
-
toString(
) → String -
A string representation of this object.
inherited
-
unmute(
String kind) → Future< void> - 'audio' | 'video'
-
unpublish(
) → Future< void> -
updateTrack(
{required MediaStreamTrack next, MediaStreamTrack? prev}) → Future< void>
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
computeAudioConstraints(
Constraints constraints) → dynamic -
computeVideoConstraints(
Constraints constraints) → dynamic -
getDisplayMedia(
{Constraints? constraints}) → Future< LocalStream> -
getUserMedia(
{Constraints? constraints}) → Future< LocalStream>