onVideoPublishStateChanged property
@detail callback
@valid since 3.60. Since version 3.60, this callback replaces onStreamStateChanged for reporting video publishing state changes. If you have upgraded to SDK version 3.60 or later and are still using this method, please migrate to this callback.
@author xuyiling.x10
@brief Callback on video publishing state change.
@param streamId The ID of the stream, used to identify a specific video stream.
@param streamInfo The stream information structure, containing detailed information such as room ID and user ID. See StreamInfo{@link #StreamInfo}.
@param state Publish state code. See PublishState{@link #PublishState}.
@param reason The reason for the change of the publishing state of the local video stream. See PublishStateChangeReason{@link #PublishStateChangeReason}.
@order 0
Implementation
FutureOr<void> Function(
String streamId, PublishState state, PublishStateChangeReason reason)?
onVideoPublishStateChanged;