onPublishPrivilegeTokenWillExpire method

FutureOr<void> onPublishPrivilegeTokenWillExpire(
  1. ByteRTCGameRoom rtcRoom
)

@detail callback @author qipengxiang @brief Token 发布权限过期前 30 秒将触发该回调。
收到该回调后,你需调用 updateToken:{@link #ByteRTCGameRoom#updateToken} 更新 Token 发布权限。 @param rtcRoom ByteRTCGameRoom 实例 @note Token 发布权限过期后: - 已发布流或尝试发布流时,本端会收到 rtcRoom:onVideoPublishStateChanged:info:state:reason:{@link #ByteRTCGameRoomDelegate#rtcRoom:onVideoPublishStateChanged:info:state:reason}、rtcRoom:onAudioPublishStateChanged:info:state:reason:{@link #ByteRTCGameRoomDelegate#rtcRoom:onAudioPublishStateChanged:info:state:reason}、rtcRoom:onScreenVideoPublishStateChanged:userId:state:reason:{@link #ByteRTCGameRoomDelegate#rtcRoom:onScreenVideoPublishStateChanged:userId:state:reason}、rtcRoom:onScreenAudioPublishStateChanged:userId:state:reason:{@link #ByteRTCGameRoomDelegate#rtcRoom:onScreenAudioPublishStateChanged:userId:state:reason} 回调,提示kPublishStateChangeReasonNoPublishPermission,没有发布权限。 - 发布中的流将停止发布。远端用户会收到 rtcRoom:onUserPublishStreamVideo:info:isPublish:{@link #ByteRTCGameRoomDelegate#rtcRoom:onUserPublishStreamVideo:info:isPublish}、rtcRoom:onUserPublishStreamAudio:info:isPublish:{@link #ByteRTCGameRoomDelegate#rtcRoom:onUserPublishStreamAudio:info:isPublish}、rtcRoom:onUserPublishScreenVideo:uid:isPublish:{@link #ByteRTCGameRoomDelegate#rtcRoom:onUserPublishScreenVideo:uid:isPublish} 或 rtcRoom:onUserPublishScreenAudio:uid:isPublish:{@link #ByteRTCGameRoomDelegate#rtcRoom:onUserPublishScreenAudio:uid:isPublish} 回调,提示该流已停止发布。 @order 3

Implementation

FutureOr<void> onPublishPrivilegeTokenWillExpire(
    ByteRTCGameRoom rtcRoom) async {}