Stop camera onStop instead of onPause.
In multi-window mode the non-active activity receives onPause. We shouldn't stop the camera in this case. BUG=webrtc:7018 Review-Url: https://codereview.webrtc.org/2648483003 Cr-Commit-Position: refs/heads/master@{#16186}
This commit is contained in:
@ -418,8 +418,8 @@ public class CallActivity extends Activity implements AppRTCClient.SignalingEven
|
|||||||
|
|
||||||
// Activity interfaces
|
// Activity interfaces
|
||||||
@Override
|
@Override
|
||||||
public void onPause() {
|
public void onStop() {
|
||||||
super.onPause();
|
super.onStop();
|
||||||
activityRunning = false;
|
activityRunning = false;
|
||||||
// Don't stop the video when using screencapture to allow user to show other apps to the remote
|
// Don't stop the video when using screencapture to allow user to show other apps to the remote
|
||||||
// end.
|
// end.
|
||||||
@ -430,8 +430,8 @@ public class CallActivity extends Activity implements AppRTCClient.SignalingEven
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onResume() {
|
public void onStart() {
|
||||||
super.onResume();
|
super.onStart();
|
||||||
activityRunning = true;
|
activityRunning = true;
|
||||||
// Video is not paused for screencapture. See onPause.
|
// Video is not paused for screencapture. See onPause.
|
||||||
if (peerConnectionClient != null && !screencaptureEnabled) {
|
if (peerConnectionClient != null && !screencaptureEnabled) {
|
||||||
|
|||||||
Reference in New Issue
Block a user