onSubscribePrivilegeTokenWillExpire method
@detail callback
@author qipengxiang
@brief Callback triggered 30s before the subscribing privilege of the Token expires.
After receiving this callback, you must call updateToken:{@link #ByteRTCGameRoom#updateToken} to update the subscribing privilege Token.
@param rtcRoom ByteRTCGameRoom instance.
@note After a user's subscribing privilege expires, the user will fail to subscribe to new streams, or the subscribed streams will be removed, and he/she will receive rtcRoom:onStreamStateChanged:withUid:state:extraInfo:{@link #ByteRTCGameRoomDelegate#rtcRoom:onStreamStateChanged:withUid:state:extraInfo} with error code "-1003" indicating no permission to subscribe to streams.
Implementation
FutureOr<void> onSubscribePrivilegeTokenWillExpire(
ByteRTCGameRoom rtcRoom) async {}