完善直播demo
This commit is contained in:
@@ -40,11 +40,11 @@ public class LivePushActivity extends BaseLiveActivity {
|
||||
public void toggleLive(boolean isLive) {
|
||||
Log.i(TAG, "toggleLive : " + isLive);
|
||||
this.isLive = isLive;
|
||||
// if (isLive) {
|
||||
// PushService.startService(this, PushService.ACTION_START_RTMP_PUSH, Devices.getSn());
|
||||
// } else {
|
||||
// PushService.startService(this, PushService.ACTION_STOP_RTMP_PUSH, null);
|
||||
// }
|
||||
if (isLive) {
|
||||
PushService.startService(this, PushService.ACTION_START_RTMP_PUSH, Devices.getSn());
|
||||
} else {
|
||||
PushService.startService(this, PushService.ACTION_STOP_RTMP_PUSH, null);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user