ByteRTCVideoSnapshotCallbackDelegate class
- Inheritance
-
- Object
- NativeClass
- NativeObserverClass
- ByteRTCVideoSnapshotCallbackDelegate
Properties
-
$instance
↔ dynamic
-
getter/setter pairinherited
-
$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
-
emit(String name, List args)
→ dynamic
-
inherited
-
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
-
onTakeLocalSnapshotResult$videoSource$image$errorCode(NSInteger taskId, ByteRTCVideoSource videoSource, dynamic image, NSInteger errorCode)
→ FutureOr<void>
-
@detail callback
@brief 调用 takeLocalSnapshot:{@link #ByteRTCEngine#takeLocalSnapshot} 截取视频画面时,收到此回调。
@param taskId 本地截图任务的编号。和 takeLocalSnapshot:{@link #ByteRTCEngine#takeLocalSnapshot} 的返回值一致。
@param videoSource 截图的视频流的属性,参看 ByteRTCStreamIndex{@link #ByteRTCStreamIndex}。
@param image 截图。你可以保存为文件,或对其进行二次处理。截图失败时,为空。
@param errorCode 截图错误码:
- 0: 成功
- -1: 截图错误。生成图片数据失败或 RGBA 编码失败
- -2: 截图错误。流无效。
- -3: 截图错误。截图超时,超时时间 1 秒。
-
onTakeRemoteSnapshotResult$streamId$info$image$errorCode(NSInteger taskId, NSString streamId, ByteRTCStreamInfo info, dynamic image, NSInteger errorCode)
→ FutureOr<void>
-
@detail callback
@brief 调用 takeRemoteSnapshot:callback:{@link #ByteRTCEngine#takeRemoteSnapshot:callback} 截取视频画面时,收到此回调。
@param taskId 远端截图任务的编号。和 takeRemoteSnapshot:callback:{@link #ByteRTCEngine#takeRemoteSnapshot:callback} 的返回值一致。
@param streamId 远端视频流的 ID。
@param info 远端视频流的属性,参看 ByteRTCStreamInfo{@link #ByteRTCStreamInfo}。
@param image 截图。你可以保存为文件,或对其进行二次处理。截图失败时,为空。
@param errorCode 截图错误码:
- 0: 成功
- -1: 截图错误。生成图片数据失败或 RGBA 编码失败
- -2: 截图错误。流无效。
- -3: 截图错误。截图超时,超时时间 1 秒。
-
registerEvent(String name, dynamic method)
→ void
-
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
-
toString()
→ String
-
A string representation of this object.
inherited
-
updateInstance(dynamic instance)
→ void
-
inherited
-
updateResource(NativeResource resource)
→ void
-
inherited