ByteRTCVideoDeviceManager class

Inheritance
  • Object
  • NativeClass
  • ByteRTCVideoDeviceManager

Constructors

ByteRTCVideoDeviceManager([NativeClassOptions? options])

Properties

$resource → NativeResource
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
ready Future<void>
Whether the instance is initialized
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

destroy() → void
inherited
enumerateVideoCaptureDevices() FutureOr<ByteRTCDeviceCollection>
@detail api @author zhangzhenyu.samuel @brief Get the list of video capture devices. @return Contains a list of all video capture devices in the system. See ByteRTCDeviceCollection{@link #ByteRTCDeviceCollection}.
If a time-out occurs, it returns an empty list. By default, the time-out duration is set to 10 seconds. We recommend to call this API once you get notification of ByteRTCMediaDeviceListUpdated via rtcEngine:onVideoDeviceStateChanged:device_type:device_state:device_error:{@link #ByteRTCEngineDelegate#rtcEngine:onVideoDeviceStateChanged:device_type:device_state:device_error}. @note When receiving rtcEngine:onVideoDeviceStateChanged:device_type:device_state:device_error:{@link #ByteRTCEngineDelegate#rtcEngine:onVideoDeviceStateChanged:device_type:device_state:device_error} for device change, you can call this API to get the latest list of audio playback devices.
getVideoCaptureDevice(NSString deviceID) FutureOr<int>
@detail api @author zhangzhenyu.samuel @brief Get the currently-using video capture device @param deviceID video device ID @return - 0: Success. +! 0: failure
nativeCall<T>(String method, [List? args, NativeMethodMeta? meta]) Future<T>
Call instance method
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sendInstanceGet<T>(String property) Future<T>
Get instance property
inherited
sendInstancePropertiesGet(dynamic nativeClass) Future<Map<String, dynamic>>
Get instance properties
inherited
sendInstanceSet(String property, dynamic value) Future<void>
Set instance property
inherited
setVideoCaptureDevice(NSString deviceID) FutureOr<int>
@detail api @author zhangzhenyu.samuel @brief Set the current video capture device @param deviceID Video device ID. Get all video devices by calling which can be obtained through enumerateVideoCaptureDevices{@link #ByteRTCVideoDeviceManager#enumerateVideoCaptureDevices} @return - 0: Success. +! 0: failure
toString() String
A string representation of this object.
inherited
updateResource(NativeResource resource) → void
inherited

Operators

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

Static Properties

codegen_$namespace → dynamic
no setter