mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-20 20:19:42 +01:00
Remove unused fields remoteVideoOn and remoteAudioOn
Signed-off-by: Tim Krüger <t@timkrueger.me>
This commit is contained in:
parent
844cf09a2b
commit
0ea29ee0cd
@ -64,6 +64,9 @@ import javax.inject.Inject;
|
|||||||
import androidx.annotation.Nullable;
|
import androidx.annotation.Nullable;
|
||||||
import autodagger.AutoInjector;
|
import autodagger.AutoInjector;
|
||||||
|
|
||||||
|
import static java.lang.Boolean.FALSE;
|
||||||
|
import static java.lang.Boolean.TRUE;
|
||||||
|
|
||||||
@AutoInjector(NextcloudTalkApplication.class)
|
@AutoInjector(NextcloudTalkApplication.class)
|
||||||
public class MagicPeerConnectionWrapper {
|
public class MagicPeerConnectionWrapper {
|
||||||
|
|
||||||
@ -78,9 +81,6 @@ public class MagicPeerConnectionWrapper {
|
|||||||
private final MagicSdpObserver magicSdpObserver;
|
private final MagicSdpObserver magicSdpObserver;
|
||||||
private MediaStream remoteStream;
|
private MediaStream remoteStream;
|
||||||
|
|
||||||
private boolean remoteVideoOn;
|
|
||||||
private boolean remoteAudioOn;
|
|
||||||
|
|
||||||
private final boolean hasInitiated;
|
private final boolean hasInitiated;
|
||||||
|
|
||||||
private final MediaStream localStream;
|
private final MediaStream localStream;
|
||||||
@ -303,23 +303,18 @@ public class MagicPeerConnectionWrapper {
|
|||||||
.NICK_CHANGE, sessionId, payloadHashMap.get("name"), null, videoStreamType));
|
.NICK_CHANGE, sessionId, payloadHashMap.get("name"), null, videoStreamType));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
} else if ("audioOn".equals(dataChannelMessage.getType())) {
|
} else if ("audioOn".equals(dataChannelMessage.getType())) {
|
||||||
remoteAudioOn = true;
|
|
||||||
EventBus.getDefault().post(new PeerConnectionEvent(PeerConnectionEvent.PeerConnectionEventType
|
EventBus.getDefault().post(new PeerConnectionEvent(PeerConnectionEvent.PeerConnectionEventType
|
||||||
.AUDIO_CHANGE, sessionId, null, remoteAudioOn, videoStreamType));
|
.AUDIO_CHANGE, sessionId, null, TRUE, videoStreamType));
|
||||||
} else if ("audioOff".equals(dataChannelMessage.getType())) {
|
} else if ("audioOff".equals(dataChannelMessage.getType())) {
|
||||||
remoteAudioOn = false;
|
|
||||||
EventBus.getDefault().post(new PeerConnectionEvent(PeerConnectionEvent.PeerConnectionEventType
|
EventBus.getDefault().post(new PeerConnectionEvent(PeerConnectionEvent.PeerConnectionEventType
|
||||||
.AUDIO_CHANGE, sessionId, null, remoteAudioOn, videoStreamType));
|
.AUDIO_CHANGE, sessionId, null, FALSE, videoStreamType));
|
||||||
} else if ("videoOn".equals(dataChannelMessage.getType())) {
|
} else if ("videoOn".equals(dataChannelMessage.getType())) {
|
||||||
remoteVideoOn = true;
|
|
||||||
EventBus.getDefault().post(new PeerConnectionEvent(PeerConnectionEvent.PeerConnectionEventType
|
EventBus.getDefault().post(new PeerConnectionEvent(PeerConnectionEvent.PeerConnectionEventType
|
||||||
.VIDEO_CHANGE, sessionId, null, remoteVideoOn, videoStreamType));
|
.VIDEO_CHANGE, sessionId, null, TRUE, videoStreamType));
|
||||||
} else if ("videoOff".equals(dataChannelMessage.getType())) {
|
} else if ("videoOff".equals(dataChannelMessage.getType())) {
|
||||||
remoteVideoOn = false;
|
|
||||||
EventBus.getDefault().post(new PeerConnectionEvent(PeerConnectionEvent.PeerConnectionEventType
|
EventBus.getDefault().post(new PeerConnectionEvent(PeerConnectionEvent.PeerConnectionEventType
|
||||||
.VIDEO_CHANGE, sessionId, null, remoteVideoOn, videoStreamType));
|
.VIDEO_CHANGE, sessionId, null, FALSE, videoStreamType));
|
||||||
}
|
}
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
Log.d(TAG, "Failed to parse data channel message");
|
Log.d(TAG, "Failed to parse data channel message");
|
||||||
|
Loading…
Reference in New Issue
Block a user