only show remote video when connected
This commit is contained in:
parent
0c4f0c074d
commit
21e412ef6f
|
@ -531,8 +531,13 @@ public class RtpSessionActivity extends XmppActivity implements XmppConnectionSe
|
||||||
if (remoteVideoTrack.isPresent()) {
|
if (remoteVideoTrack.isPresent()) {
|
||||||
ensureSurfaceViewRendererIsSetup(binding.remoteVideo);
|
ensureSurfaceViewRendererIsSetup(binding.remoteVideo);
|
||||||
remoteVideoTrack.get().addSink(binding.remoteVideo);
|
remoteVideoTrack.get().addSink(binding.remoteVideo);
|
||||||
binding.appBarLayout.setVisibility(View.GONE);
|
if (state == RtpEndUserState.CONNECTED) {
|
||||||
getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
|
binding.appBarLayout.setVisibility(View.GONE);
|
||||||
|
getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
|
||||||
|
} else {
|
||||||
|
getWindow().clearFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
|
||||||
|
binding.remoteVideo.setVisibility(View.GONE);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
getWindow().clearFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
|
getWindow().clearFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
|
||||||
binding.remoteVideo.setVisibility(View.GONE);
|
binding.remoteVideo.setVisibility(View.GONE);
|
||||||
|
|
|
@ -196,7 +196,7 @@ public class JingleConnectionManager extends AbstractConnectionManager {
|
||||||
Log.d(Config.LOGTAG, account.getJid().asBareJid() + ": encountered unknown media in session proposal. " + propose);
|
Log.d(Config.LOGTAG, account.getJid().asBareJid() + ": encountered unknown media in session proposal. " + propose);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (isBusy()) { //TODO only if no other devices are active
|
if (isBusy()) {
|
||||||
writeLogMissedIncoming(account, id.with.asBareJid(), id.sessionId, serverMsgId, timestamp);
|
writeLogMissedIncoming(account, id.with.asBareJid(), id.sessionId, serverMsgId, timestamp);
|
||||||
final int activeDevices = account.countPresences();
|
final int activeDevices = account.countPresences();
|
||||||
Log.d(Config.LOGTAG, "active devices: " + activeDevices);
|
Log.d(Config.LOGTAG, "active devices: " + activeDevices);
|
||||||
|
|
Loading…
Reference in a new issue