MediaDeviceState enum

{zh} * @detail keytype @brief 媒体设备状态
通过 onAudioDeviceStateChanged/onVideoDeviceStateChanged 回调设备状态。

Inheritance
Available extensions

Values

MEDIA_DEVICE_STATE_STARTED → const MediaDeviceState

@platform android @brief Device started capturing

MEDIA_DEVICE_STATE_STOPPED → const MediaDeviceState

@platform android @brief Device stopped capturing

MEDIA_DEVICE_STATE_RUNTIMEERROR → const MediaDeviceState

@platform android @brief Runtime error
For example, when the media device is expected to be working but no data is received.

MEDIA_DEVICE_STATE_ADDED → const MediaDeviceState

@platform android @brief Device is added.

MEDIA_DEVICE_STATE_REMOVED → const MediaDeviceState

@platform android @brief Device is removed.

MEDIA_DEVICE_STATE_INTERRUPTION_BEGAN → const MediaDeviceState

@platform android @brief A Phone call interrupted the RTC call. RTC call will resume once the call ends.

MEDIA_DEVICE_STATE_INTERRUPTION_ENDED → const MediaDeviceState

@platform android @brief RTC call resumed from the interruption caused by a phone call.

ByteRTCMediaDeviceStateStarted → const MediaDeviceState

@platform ios @brief On

ByteRTCMediaDeviceStateStopped → const MediaDeviceState

@platform ios @brief Off

ByteRTCMediaDeviceStateRuntimeError → const MediaDeviceState

@platform ios @brief Runtime error
For example, when the media device is expected to be working but no data is received.

ByteRTCMediaDeviceStateAdded → const MediaDeviceState

@platform ios @brief Added
Call enumerate-device api to update the device list when you get this notification.

ByteRTCMediaDeviceStateRemoved → const MediaDeviceState

@platform ios @brief Removed
Call enumerate-device api to update the device list when you get this notification.

ByteRTCMediaDeviceStateInterruptionBegan → const MediaDeviceState

@platform ios @brief Phone calls, locking screen or the other Apps interrupted the RTC call. RTC call will resume once the call ends or the other Apps release the media devices.

ByteRTCMediaDeviceStateInterruptionEnded → const MediaDeviceState

@platform ios @brief RTC call resumed from the interruption caused by the phone calls or the other Apps.

ByteRTCMediaDeviceListUpdated → const MediaDeviceState

@platform ios @hidden(iOS) @brief Notification of receiving the device list after time-out.
Call enumerate-device api to update the device list when you get this notification.

Properties

$value → dynamic
final
hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Constants

values → const List<MediaDeviceState>
A constant List of the values in this enum, in order of their declaration.