jitsi / jitsi-meet-sdk-samples

Jitsi Meet mobile SDK examples (Android, iOS and React Native)
Apache License 2.0
273 stars 238 forks source link

Hang up in iOS #100

Closed danwguy closed 3 years ago

danwguy commented 3 years ago

I can't seem to find a way to programmatically hang up in the iOS API. What I am trying to do is, when a participant leaves the conference, the conference should end for all people in it (currently we are only allowing 2 people per meeting). In Android this is very easy, you can listen for the "PARTICIPANT_LEFT" broadcast and then send the "HANG_UP" broadcast to end the meeting. I have been trying to implement the same basic functionality in iOS, but there doesn't seem to be a way to do it. I checked the JitsiMeetViewDelegate and there is no stub for "participantLeft", only "conferenceJoined", "conferenceTerminated", "conferenceWillJoin", and "enterPictureInPicture". Not to mention the JitsiMeetView doesn't have a "hangUp" method. I know I can use the leave method on JitsiMeetView, but how do I know when a participant leaves? There is no stub in the JitsiMeetViewDelegate, and the samples on here have no sample of how you would implement a hangup function like the Android sample does. Please help, this is actually pretty important to my app. Thank you

saghul commented 3 years ago

You must be looking at an old SDK. That is implemented in iOS too, here is the participantLeft event for example: https://github.com/jitsi/jitsi-meet/blob/master/ios/sdk/src/JitsiMeetViewDelegate.h#L70

danwguy commented 3 years ago

Thank you. You are correct, I have version 2.11 in my podfile. When I first started building the app that was the version shown in the sample so I used it. I have updated to 3.0.2 and it is there now.

saghul commented 3 years ago

The latest is 3.4.1