mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 11:28:06 +00:00
Simplified code using newly added API in SDK
This commit is contained in:
parent
f8556aa46b
commit
6dc4790597
1 changed files with 4 additions and 1 deletions
|
|
@ -125,10 +125,13 @@ class ConferenceViewModel
|
|||
conference: Conference,
|
||||
device: ParticipantDevice
|
||||
) {
|
||||
if (conference.isMe(device.address)) {
|
||||
if (device.isMe) {
|
||||
Log.i("$TAG Our device media capability changed")
|
||||
val direction = device.getStreamCapability(StreamType.Video)
|
||||
val sendingVideo = direction == MediaDirection.SendRecv || direction == MediaDirection.SendOnly
|
||||
localVideoStreamToggled(sendingVideo)
|
||||
} else {
|
||||
Log.i("$TAG Participant [${device.address.asStringUriOnly()}] device media capability changed")
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue