mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-22 21:15:30 +03:00
Fix typo in name of method to check if video should not be received
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
This commit is contained in:
parent
232bfcf330
commit
3274c1e1fa
1 changed files with 2 additions and 2 deletions
|
@ -258,7 +258,7 @@ public class PeerConnectionWrapper {
|
|||
return isMCUPublisher;
|
||||
}
|
||||
|
||||
private boolean shouldReceiveVideo() {
|
||||
private boolean shouldNotReceiveVideo() {
|
||||
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 (shouldReceiveVideo()) {
|
||||
if (shouldNotReceiveVideo()) {
|
||||
for (RtpTransceiver t : peerConnection.getTransceivers()) {
|
||||
if (t.getMediaType().equals(MediaStreamTrack.MediaType.MEDIA_TYPE_VIDEO)) {
|
||||
t.stop();
|
||||
|
|
Loading…
Reference in a new issue