Closed AmandaApolinario closed 2 weeks ago
When you use end meeting for all there is a dialog the user needs to confirm.
More importantly, the iOS SDK doesn't dismiss the view, you have to do that yourself.
but how can I dismiss the view if the conferenceTerminated or any other delegate methods are not called when I try to close it?
When you use end meeting for all there is a dialog the user needs to confirm.
More importantly, the iOS SDK doesn't dismiss the view, you have to do that yourself.
@saghul when you said you have to do do yourself can you please give example how to do that? because after we join the meeting user entered into the room and and then we dont have any UI control or anything . we only rely on eventlistners which is not triggered, by press any button or when user left the meeting
Look at the examples here: https://github.com/jitsi/jitsi-meet-sdk-samples/tree/master/ios
The most important delegate method is readyToClose
, that's when you can dismiss the controller, like the sample apps do.
Look at the examples here: https://github.com/jitsi/jitsi-meet-sdk-samples/tree/master/ios
The most important delegate method is
readyToClose
, that's when you can dismiss the controller, like the sample apps do.
I am using the sample repo code of React-native
const Meeting = ({route}) => {
const jitsiMeeting = useRef(null);
const navigation = useNavigation();
const {room} = route.params;
const onReadyToClose = useCallback(() => {
console.log('close working');
// @ts-ignore
// navigation.navigate('Home');
Alert.alert();
navigation.pop();
// @ts-ignore
jitsiMeeting.current.close();
}, [navigation]);
const onEndpointMessageReceived = useCallback(() => {
console.log('You got a message!');
}, []);
const eventListeners = {
onReadyToClose,
onEndpointMessageReceived,
onParticipantLeft: () => {
Alert.alert('afdssdf');
},
onConferenceLeft: () => {
Alert.alert('afdssdf');
},
};
const jitsiUrl = route?.params?.jitsiUrl;
const jwt = jitsiUrl?.split('?jwt=')[1];
const pathArray = jitsiUrl.split('/');
const roomName = pathArray[pathArray.length - 1].split('?')[0];
return (
// @ts-ignore
<JitsiMeeting
config={{
hideConferenceTimer: true,
customToolbarButtons: [
{
icon: 'https://w7.pngwing.com/pngs/987/537/png-transparent-download-downloading-save-basic-user-interface-icon-thumbnail.png',
id: 'btn1',
text: 'Button one',
},
{
icon: 'https://w7.pngwing.com/pngs/987/537/png-transparent-download-downloading-save-basic-user-interface-icon-thumbnail.png',
id: 'btn2',
text: 'Button two',
},
],
whiteboard: {
enabled: true,
collabServerBaseUrl: 'https://meet.jit.si/',
},
}}
onEnd={() => {
Alert.alert('hurray');
}}
eventListeners={eventListeners}
flags={{
'audioMute.enabled': true,
'ios.screensharing.enabled': true,
'fullscreen.enabled': false,
'audioOnly.enabled': false,
'android.screensharing.enabled': true,
'pip.enabled': true,
'pip-while-screen-sharing.enabled': true,
'conference-timer.enabled': true,
'close-captions.enabled': false,
'toolbox.enabled': true,
}}
ref={jitsiMeeting}
style={{flex: 1}}
room={roomName}
serverURL={jitsiUrl || 'https://meet.jit.si/'}
token={jwt || ''}
/>
);
};
you can see in above example this is the same code of the repo which you shared but problem is no listner triggered neither onReadyToClose or any other I tried to put consoles and Alert but nothing worked
Can you share some logs please? Does the unmodified version work?
https://github.com/user-attachments/assets/9f3131ee-e7ad-45c7-be65-c51e8ab6123b
this is the screen recording of example repo app downloaded from this link https://github.com/jitsi/jitsi-meet-sdk-samples/tree/master
I have just changed the jitsi server URL and Add the token props and you can see nothing happened on press leave confrence
I observed one thing if I didnt pass the token and use the same server url which is in the example "https://meet.jit.si/" then after i join the room and try to leave in this case onReadyToClose triggered but not when you pass the token and your server url @saghul
and here are some logs whic i see in meteor debug terminal
cept>: JingleSessionPC[session=JVB,initiator=false,sid=386o18qp38cak] Sending session-accept
LOG 2024-10-31T10:43:29.874Z [modules/xmpp/JingleSessionPC.js] (TIME) ICE checking JVB: 12517672.847666
INFO 2024-10-31T10:43:30.169Z [modules/xmpp/JingleSessionPC.js]
@Calinteodor PTAL.
@saghul its working fine now I was using the url like this https://mybaseURL/ROOMName?token then I replace the url to just the base url https://mybaseURL and the events started working Thanks
I created the .xcframework sdk manually, and added it to my project, but when I enter a meeting and try to close it, or leave the meeting, the buttons have no action, and call no delegate functions. But the button to End Meeting for All calls conferenceTerminated, so the delegate is working.
This is the code I'm trying