mirror of
https://github.com/nextcloud/talk-android
synced 2025-07-14 08:15:04 +01:00
rename method
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
parent
346089cecf
commit
49fd2640bf
@ -258,7 +258,7 @@ public class PeerConnectionWrapper {
|
||||
return isMCUPublisher;
|
||||
}
|
||||
|
||||
private boolean isAudioCallOnly() {
|
||||
private boolean shouldReceiveVideo() {
|
||||
for (MediaConstraints.KeyValuePair keyValuePair : mediaConstraints.mandatory) {
|
||||
if ("OfferToReceiveVideo".equals(keyValuePair.getKey())) {
|
||||
return !Boolean.parseBoolean(keyValuePair.getValue());
|
||||
@ -456,7 +456,7 @@ public class PeerConnectionWrapper {
|
||||
if (peerConnection != null) {
|
||||
if (peerConnection.getLocalDescription() == null) {
|
||||
|
||||
if (isAudioCallOnly()) {
|
||||
if (shouldReceiveVideo()) {
|
||||
for (RtpTransceiver t : peerConnection.getTransceivers()) {
|
||||
if (t.getMediaType().equals(MediaStreamTrack.MediaType.MEDIA_TYPE_VIDEO)) {
|
||||
t.stop();
|
||||
|
Loading…
Reference in New Issue
Block a user