-
Notifications
You must be signed in to change notification settings - Fork 7
/
SkyMeetApp.java
38 lines (29 loc) · 1022 Bytes
/
SkyMeetApp.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
package com.skymeet.videoConference;
import android.app.Application;
import org.jitsi.meet.sdk.JitsiMeet;
import org.jitsi.meet.sdk.JitsiMeetConferenceOptions;
import java.net.MalformedURLException;
import java.net.URL;
import dagger.hilt.android.HiltAndroidApp;
@HiltAndroidApp
public class SkyMeetApp extends Application {
@Override
public void onCreate() {
super.onCreate();
//since this onCreate method is called
//before any activity, service, or receiver objects
//so, set default options like url
//to jitsi conference here
URL serverURL = null;
try {
serverURL = new URL("https://meet.jit.si");
} catch (MalformedURLException e) {
e.printStackTrace();
}
JitsiMeetConferenceOptions defaultOptions
= new JitsiMeetConferenceOptions.Builder()
.setServerURL(serverURL)
.build();
JitsiMeet.setDefaultConferenceOptions(defaultOptions);
}
}