mirror of
https://github.com/nextcloud/talk-android
synced 2025-07-16 17:25:01 +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;
|
return isMCUPublisher;
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean isAudioCallOnly() {
|
private boolean shouldReceiveVideo() {
|
||||||
for (MediaConstraints.KeyValuePair keyValuePair : mediaConstraints.mandatory) {
|
for (MediaConstraints.KeyValuePair keyValuePair : mediaConstraints.mandatory) {
|
||||||
if ("OfferToReceiveVideo".equals(keyValuePair.getKey())) {
|
if ("OfferToReceiveVideo".equals(keyValuePair.getKey())) {
|
||||||
return !Boolean.parseBoolean(keyValuePair.getValue());
|
return !Boolean.parseBoolean(keyValuePair.getValue());
|
||||||
@ -456,7 +456,7 @@ public class PeerConnectionWrapper {
|
|||||||
if (peerConnection != null) {
|
if (peerConnection != null) {
|
||||||
if (peerConnection.getLocalDescription() == null) {
|
if (peerConnection.getLocalDescription() == null) {
|
||||||
|
|
||||||
if (isAudioCallOnly()) {
|
if (shouldReceiveVideo()) {
|
||||||
for (RtpTransceiver t : peerConnection.getTransceivers()) {
|
for (RtpTransceiver t : peerConnection.getTransceivers()) {
|
||||||
if (t.getMediaType().equals(MediaStreamTrack.MediaType.MEDIA_TYPE_VIDEO)) {
|
if (t.getMediaType().equals(MediaStreamTrack.MediaType.MEDIA_TYPE_VIDEO)) {
|
||||||
t.stop();
|
t.stop();
|
||||||
|
Loading…
Reference in New Issue
Block a user