ByteRTCExternalVideoEncoderEventHandler class
- Inheritance
-
- Object
- NativeClass
- NativeObserverClass
- ByteRTCExternalVideoEncoderEventHandler
- Implementers
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
-
onActiveVideoLayer$info$withVideoIndex$withActive(NSString streamId, ByteRTCStreamInfo info, NSInteger videoIndex, BOOL active)
→ FutureOr<void>
-
@valid since 3.56
@detail callback
@author wangqianqian.1104
@brief 作为自定义编码视频流的发送端,你会在视频流可发送状态发生变化时,收到此回调。
你可以根据此回调的提示,仅对可发送的视频流进行编码,以降低本端视频编码性能消耗。此回调会根据多个因素综合判断触发,包括:本端设备性能和本端网络性能,以及按需订阅场景下,远端用户是否订阅。
@param streamId 自定义编码流 ID
@param info 自定义编码流信息,参看 ByteRTCStreamInfo{@link #ByteRTCStreamInfo}
@param videoIndex 对应编码流的下标
@param active 该路流可发送状态
@note 要收到此回调,必须调用 setVideoSourceType:{@link #ByteRTCEngine#setVideoSourceType} 设置视频源是自定义编码,且通过 setExternalVideoEncoderEventHandler:{@link #ByteRTCEngine#setExternalVideoEncoderEventHandler} 设置了回调句柄。
-
onRateUpdate$info$withVideoIndex$withFps$withBitRate(NSString streamId, ByteRTCStreamInfo info, NSInteger videoIndex, NSInteger fps, NSInteger bitRateKps)
→ FutureOr<void>
-
@detail callback
@author wangzhanqiang
@brief 当自定义编码流的帧率或码率发生变化时,触发该回调
@param streamId 远端编码流 ID
@param info 远端编码流信息,参看 ByteRTCStreamInfo{@link #ByteRTCStreamInfo}
@param videoIndex 对应编码流的下标
@param fps 变化后的帧率,单位:fps
@param bitRateKps 变化后的码率,单位:kbps
-
onRequestKeyFrame$info$withVideoIndex(NSString streamId, ByteRTCStreamInfo info, NSInteger videoIndex)
→ FutureOr<void>
-
@detail callback
@author wangzhanqiang
@brief 提示流发布端需重新生成关键帧的回调
@param streamId 远端编码流 ID
@param info 远端编码流信息,参看 ByteRTCStreamInfo{@link #ByteRTCStreamInfo}
@param videoIndex 对应编码流的下标
-
onStart$info(NSString streamId, ByteRTCStreamInfo info)
→ FutureOr<void>
-
@detail callback
@author wangzhanqiang
@brief 提示自定义编码帧可以开始推送的回调。
收到该回调后,你即可调用 pushExternalEncodedVideoFrame:withEncodedVideoFrame:{@link #ByteRTCEngine#pushExternalEncodedVideoFrame:withEncodedVideoFrame} 向 SDK 推送自定义编码视频帧
@param streamId 自定义编码流 ID
@param info 自定义编码流信息,参看 ByteRTCStreamInfo{@link #ByteRTCStreamInfo}
-
onStop$info(NSString streamId, ByteRTCStreamInfo info)
→ FutureOr<void>
-
@detail callback
@author wangzhanqiang
@brief 当收到该回调时,你需停止向 SDK 推送自定义编码视频帧
@param streamId 自定义编码流 ID
@param info 自定义编码流信息,参看 ByteRTCStreamInfo{@link #ByteRTCStreamInfo}
-
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