增加了状态回碉
增加了如果直播间没有观众的时候自动关闭直播
This commit is contained in:
@@ -33,7 +33,7 @@ public abstract class BaseLiveActivity extends AppCompatActivity {
|
||||
// 设置摄像头与状态
|
||||
protected ToggleButton btnChangeCameraState;
|
||||
// 当前直播的状态
|
||||
protected ToggleButton tbLiveStatus;
|
||||
protected TextView tvLiveStatus;
|
||||
// 相机数据预览
|
||||
protected SurfaceView surfacePreviewView;
|
||||
|
||||
@@ -77,7 +77,7 @@ public abstract class BaseLiveActivity extends AppCompatActivity {
|
||||
toggleCameraState(isChecked);
|
||||
});
|
||||
|
||||
tbLiveStatus = findViewById(R.id.tbLiveStatus);
|
||||
tvLiveStatus = findViewById(R.id.tvLiveStatus);
|
||||
|
||||
surfacePlayView = findViewById(R.id.surfacePlayView);
|
||||
etLookRoomId = findViewById(R.id.etLookRoomId);
|
||||
|
||||
Reference in New Issue
Block a user