AliVCSDK 6.17.0
阿里云音视频SDK,为视频开发者提供一站式接入服务
 
Loading...
Searching...
No Matches
AlivcLivePushKickedOutType.java
1package com.alivc.live.annotations;
2
3import com.alivc.live.pusher.Visible;
4
5
13@Visible
15
20
25
30
31 ;
32
33 private final int code;
34
36 this.code = code;
37 }
38
44 public int getCode() {
45 return code;
46 }
47
54 public static AlivcLivePushKickedOutType fromCode(int code) {
55 if (code == 2) {
56 return CHANNEL_TERMINATED;
57 } else if (code == 3) {
58 return USER_REPLACED;
59 } else {
60 return BE_KICK_OUT;
61 }
62 }
63
64}
static AlivcLivePushKickedOutType fromCode(int code)