onActiveVideoLayer$info$withVideoIndex$withActive method

FutureOr<void> onActiveVideoLayer$info$withVideoIndex$withActive(
  1. NSString streamId,
  2. ByteRTCStreamInfo info,
  3. NSInteger videoIndex,
  4. BOOL active,
)

@valid since 3.56 @detail callback @brief As the sender of a external encoded video stream, you will receive this callback at certain moments.
Based on the hints of this callback, you can selectively encode the video stream that is ready for transmission, in order to reduce the performance impact of video encoding on the local device. This callback is triggered based on a combination of factors, including the performance of the local device, the local network, and whether the stream is subscribed by the remote user. @param streamId Custom encoded stream ID @param info Custom encoded stream information. See ByteRTCStreamInfo{@link #ByteRTCStreamInfo} @param videoIndex Subscript of the corresponding encoded stream. @param active The active state of the corresponding encoded stream. @note To receive the callback, call setVideoSourceType:{@link #ByteRTCEngine#setVideoSourceType} to set the input video source to custom encoded video and call setExternalVideoEncoderEventHandler:{@link #ByteRTCEngine#setExternalVideoEncoderEventHandler} to set the callback handler.

Implementation

FutureOr<void> onActiveVideoLayer$info$withVideoIndex$withActive(
    NSString streamId,
    ByteRTCStreamInfo info,
    NSInteger videoIndex,
    BOOL active) async {}