rtcEngine$onRemoteVideoSuperResolutionModeChanged$info$withMode$withReason method
FutureOr<void>
rtcEngine$onRemoteVideoSuperResolutionModeChanged$info$withMode$withReason(
- dynamic engine,
- dynamic streamId,
- dynamic info,
- dynamic mode,
- dynamic reason,
override
@hidden not available @detail callback @author yinkaisheng @brief When the super resolution mode of a remote video stream changes, users in the room who subscribe to this stream will receive this callback. @param engine ByteRTCEngine object @param streamId ID of Remote stream. @param info Remote stream information. See ByteRTCStreamInfo{@link #ByteRTCStreamInfo}. @param mode Super resolution mode. See ByteRTCVideoSuperResolutionMode{@link #ByteRTCVideoSuperResolutionMode}. @param reason Remote video stream super resolution mode change reason. See ByteRTCVideoSuperResolutionModeChangedReason{@link #ByteRTCVideoSuperResolutionModeChangedReason}
Implementation
FutureOr<void>
rtcEngine$onRemoteVideoSuperResolutionModeChanged$info$withMode$withReason(
dynamic engine,
dynamic streamId,
dynamic info,
dynamic mode,
dynamic reason) async {
if ($instance == null || $instance is! IRTCEngineEventHandler) {
return;
}
return ($instance as IRTCEngineEventHandler)
.onRemoteVideoSuperResolutionModeChanged
?.call(
streamId.toString(),
packObject(
info,
() => StreamInfo.fromMap(StreamInfo.deepPackedMapValues(
StreamInfo.mapMemberToConstructorParams(info)))),
t_VideoSuperResolutionMode.ios_to_code($p_i
.ByteRTCVideoSuperResolutionMode.values
.firstWhere((t) => t.$value == mode || t.name == mode)),
t_VideoSuperResolutionModeChangedReason.ios_to_code($p_i
.ByteRTCVideoSuperResolutionModeChangedReason.values
.firstWhere((t) => t.$value == reason || t.name == reason)));
}