MediaDeviceError enum

媒体设备错误类型

Inheritance

Constructors

MediaDeviceError()
const

Values

ok → const MediaDeviceError

媒体设备正常

deviceNoPermission → const MediaDeviceError

没有权限启动媒体设备

deviceBusy → const MediaDeviceError

媒体设备已经在使用中

deviceFailure → const MediaDeviceError

媒体设备错误

deviceNotFound → const MediaDeviceError

未找到指定的媒体设备

deviceDisconnected → const MediaDeviceError

媒体设备被移除

deviceNoCallback → const MediaDeviceError

无采集数据

当媒体设备的预期行为是正常采集,但没有收到采集数据时,将收到该错误。

unsupportedFormat → const MediaDeviceError

设备采样率不支持

notFindGroupId → const MediaDeviceError

iOS 屏幕采集没有 group id 参数

notAvailableInBackground → const MediaDeviceError

iOS 视频采集中断:因用户使用系统相机,应用切换到后台运行,导致采集中断。

videoInUseByAnotherClient → const MediaDeviceError

iOS 视频采集中断:可能由于其他应用占用系统相机,导致视频设备暂时不可用,从而造成采集中断。

notAvailableWithMultipleForegroundApps → const MediaDeviceError

iOS 视频采集中断:当前应用处于侧拉、分屏或者画中画模式时,导致采集中断。

notAvailableDueToSystemPressure → const MediaDeviceError

iOS 视频采集中断:由于系统性能不足导致中断,比如设备过热。

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
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<MediaDeviceError>
A constant List of the values in this enum, in order of their declaration.