DeviceHandler class
Handle the stream related operations for the Huddle01 SDK
- Inheritance
-
- Object
- EnhancedEventEmitter
- DeviceHandler
Constructors
Properties
- audioOutputDevice ↔ MediaDeviceInfo?
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- speakerDevice → MediaDeviceInfo?
-
no setter
- videoRenderer ↔ RTCVideoRenderer?
-
getter/setter pair
Methods
-
callback(
Function func, [dynamic arg0, dynamic arg1, dynamic arg2, dynamic arg3, dynamic arg4, dynamic arg5]) → dynamic -
inherited
-
callbackAsFuture(
Function func, [dynamic arg0, dynamic arg1, dynamic arg2, dynamic arg3, dynamic arg4, dynamic arg5]) → Future -
inherited
-
changeMicStream(
MediaDeviceInfo device) → Future< MediaStream?> -
clearListeners(
) → void -
This function unbinds all the handlers for all the events
inherited
-
destroy(
) → void -
emit(
String event, [dynamic arg0, dynamic arg1, dynamic arg2, dynamic arg3, dynamic arg4, dynamic arg5]) → void -
This function triggers all the handlers currently listening
to
event
and passes themdata
.inherited -
emitAsFuture(
String event, [dynamic arg0, dynamic arg1, dynamic arg2, dynamic arg3, dynamic arg4, dynamic arg5]) → Future -
This function triggers all the handlers currently listening
to
event
and passes themdata
.inherited -
enumerateMicDevices(
) → Future< List< MediaDeviceInfo> > -
fetchStream(
{String? deviceId, VideoTrackConfig encoderConfig = VideoTrackConfig.h360p_w640p, String facingMode = "user", required CustomMediaDevice mediaDevice}) → Future< MediaStream?> -
Fetch the stream from the device
This stream is not managed by the Huddle01 SDK, i.e. it will not be closed by the SDK the user has to close it manually by calling {stream.getTracks().forEach(track => track.stop())}
NOTE:using stopTrackOnClose = true
while producing will stop the track when producing is stopped -
getAudioInputDevices(
) → Future< List< MediaDeviceInfo> ?> - Get all the audio input devices currently available in the system
-
getAudioOutputDevices(
) → Future< List< MediaDeviceInfo> ?> - Get all the audio output devices currently available in the system
-
listeners(
dynamic event) → List -
Return function list named
event
.inherited -
loadMediaDevices(
) → Future< Map< MediaDeviceType, List< >MediaDeviceInfo> > - Get all the devices which are currently available in the system
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
off(
String event) → void -
This function attempts to unbind all the
handler
from theevent
inherited -
on(
String event, Function handler) → void -
This function binds the
handler
as a listener to theevent
inherited -
once(
String event, Function handler) → void -
This function binds the
handler
as a listener to the first occurrence of theevent
. Whenhandler
is called once, it is removed.inherited -
remove(
String event, Function handler) → void -
This function attempts to unbind the
handler
from theevent
inherited -
removeAllListeners(
[dynamic eventName]) → void -
inherited
-
safeEmit(
String event, [Map< String, dynamic> ? args]) → void -
inherited
-
safeEmitAsFuture(
String event, [Map< String, dynamic> ? args]) → Future -
inherited
-
stopStream(
MediaStream? stream) → void -
switchAudioDevice(
MediaDeviceInfo device) → Future< void> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
-
mediaDevices
↔ Map<
MediaDeviceType, List< MediaDeviceInfo> > -
Map the media devices currently present in the system
getter/setter pair