class T2: AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
// Initialize default options for Jitsi Meet conferences.
val serverURL: URL
serverURL = try {
URL("https://meet.jit.si")
} catch (e: MalformedURLException) {
e.printStackTrace()
throw RuntimeException("Invalid server URL!")
}
val defaultOptions = JitsiMeetConferenceOptions.Builder()
.setServerURL(serverURL)
.setWelcomePageEnabled(false)
.build()
JitsiMeet.setDefaultConferenceOptions(defaultOptions)
// Build options object for joining the conference. The SDK will merge the default
// one we set earlier and this one when joining.
val options = JitsiMeetConferenceOptions.Builder()
.setRoom("33")
.build()
// Launch the new activity with the given options. The launch() method takes care
// of creating the required Intent and passing the options.
JitsiMeetActivity.launch(this, options)
}
How to listen for ConferenceTerminated with this code?
` package com.example.jitsisdkasmodule
import android.os.Bundle import androidx.appcompat.app.AppCompatActivity import org.jitsi.meet.sdk.* import java.net.MalformedURLException import java.net.URL
class T2: AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState)
} `