onVideoSubscribeStateChanged property

void Function(String channel, int uid, StreamSubscribeState oldState, StreamSubscribeState newState, int elapseSinceLastState)? onVideoSubscribeStateChanged
final

视频订阅状态发生改变回调。

  • channel 频道名。
  • uid 远端用户的 ID。
  • oldState 之前的订阅状态,详见 StreamSubscribeState 。
  • newState 当前的订阅状态,详见 StreamSubscribeState 。
  • elapseSinceLastState 两次状态变化时间间隔(毫秒)。

Implementation

final void Function(
    String channel,
    int uid,
    StreamSubscribeState oldState,
    StreamSubscribeState newState,
    int elapseSinceLastState)? onVideoSubscribeStateChanged;