Add logging to WebRtcActivity Intent.
This commit is contained in:
parent
e807435c8b
commit
e47765d7d5
2 changed files with 12 additions and 1 deletions
|
@ -169,6 +169,8 @@ public class WebRtcCallActivity extends BaseActivity implements SafetyNumberChan
|
||||||
initializeViewModel(isLandscapeEnabled);
|
initializeViewModel(isLandscapeEnabled);
|
||||||
initializePictureInPictureParams();
|
initializePictureInPictureParams();
|
||||||
|
|
||||||
|
logIntent(getIntent());
|
||||||
|
|
||||||
if (ANSWER_VIDEO_ACTION.equals(getIntent().getAction())) {
|
if (ANSWER_VIDEO_ACTION.equals(getIntent().getAction())) {
|
||||||
enableVideoIfAvailable = true;
|
enableVideoIfAvailable = true;
|
||||||
} else if (ANSWER_ACTION.equals(getIntent().getAction()) || getIntent().getBooleanExtra(EXTRA_STARTED_FROM_FULLSCREEN, false)) {
|
} else if (ANSWER_ACTION.equals(getIntent().getAction()) || getIntent().getBooleanExtra(EXTRA_STARTED_FROM_FULLSCREEN, false)) {
|
||||||
|
@ -227,6 +229,7 @@ public class WebRtcCallActivity extends BaseActivity implements SafetyNumberChan
|
||||||
public void onNewIntent(Intent intent) {
|
public void onNewIntent(Intent intent) {
|
||||||
Log.i(TAG, "onNewIntent(" + intent.getBooleanExtra(EXTRA_STARTED_FROM_FULLSCREEN, false) + ")");
|
Log.i(TAG, "onNewIntent(" + intent.getBooleanExtra(EXTRA_STARTED_FROM_FULLSCREEN, false) + ")");
|
||||||
super.onNewIntent(intent);
|
super.onNewIntent(intent);
|
||||||
|
logIntent(intent);
|
||||||
processIntent(intent);
|
processIntent(intent);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -313,6 +316,12 @@ public class WebRtcCallActivity extends BaseActivity implements SafetyNumberChan
|
||||||
return isSystemPipEnabledAndAvailable() && isInPictureInPictureMode();
|
return isSystemPipEnabledAndAvailable() && isInPictureInPictureMode();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void logIntent(@NonNull Intent intent) {
|
||||||
|
Log.d(TAG, "Intent: Action: " + intent.getAction());
|
||||||
|
Log.d(TAG, "Intent: EXTRA_STARTED_FROM_FULLSCREEN: " + intent.getBooleanExtra(EXTRA_STARTED_FROM_FULLSCREEN, false));
|
||||||
|
Log.d(TAG, "Intent: EXTRA_ENABLE_VIDEO_IF_AVAILABLE: " + intent.getBooleanExtra(EXTRA_ENABLE_VIDEO_IF_AVAILABLE, false));
|
||||||
|
}
|
||||||
|
|
||||||
private void processIntent(@NonNull Intent intent) {
|
private void processIntent(@NonNull Intent intent) {
|
||||||
if (ANSWER_ACTION.equals(intent.getAction())) {
|
if (ANSWER_ACTION.equals(intent.getAction())) {
|
||||||
handleAnswerWithAudio();
|
handleAnswerWithAudio();
|
||||||
|
|
|
@ -5,3 +5,5 @@ ext.cdn2_ips='new String[]{"104.18.2.43","104.18.3.43"}'
|
||||||
ext.kbs_ips='new String[]{"20.85.156.233"}'
|
ext.kbs_ips='new String[]{"20.85.156.233"}'
|
||||||
ext.sfu_ips='new String[]{"34.111.150.130"}'
|
ext.sfu_ips='new String[]{"34.111.150.130"}'
|
||||||
ext.content_proxy_ips='new String[]{"107.178.250.75"}'
|
ext.content_proxy_ips='new String[]{"107.178.250.75"}'
|
||||||
|
ext.cdsi_ips='new String[]{"20.9.14.103"}'
|
||||||
|
ext.svr2_ips='new String[]{"20.119.62.85"}'
|
||||||
|
|
Loading…
Add table
Reference in a new issue