onPublishPrivilegeTokenWillExpire property
Callback triggered 30s before the publishing privilege of the Token expires.
After receiving this callback, you must call RTCRoom.updateToken to update the publishing privilege Token.
After a user's publishing privilege expires:
- When attempting to publish a stream, the user will receive onStreamStateChanged with the error code "-noPublishPermission" indicating no permission to publish streams.
- The published streams of the user will be removed, and he/she will receive onStreamStateChanged with the error code "-noPublishPermission" indicating no permission to publish streams. Remote users in the room will receive onUserUnpublishStream/onUserUnpublishScreen with the reason "publishPrivilegeExpired" indicating that the publishing privilege of the remote user has expired.
Implementation
EmptyCallbackType? onPublishPrivilegeTokenWillExpire;