|
|
@@ -17,6 +17,8 @@
|
|
17
|
17
|
package org.jitsi.meet.sdk;
|
|
18
|
18
|
|
|
19
|
19
|
import android.os.Bundle;
|
|
|
20
|
+import android.os.Parcel;
|
|
|
21
|
+import android.os.Parcelable;
|
|
20
|
22
|
|
|
21
|
23
|
import java.net.URL;
|
|
22
|
24
|
|
|
|
@@ -29,7 +31,7 @@ import java.net.URL;
|
|
29
|
31
|
* The resulting {@link JitsiMeetConferenceOptions} object is immutable and represents how the
|
|
30
|
32
|
* conference will be joined.
|
|
31
|
33
|
*/
|
|
32
|
|
-public class JitsiMeetConferenceOptions {
|
|
|
34
|
+public class JitsiMeetConferenceOptions implements Parcelable {
|
|
33
|
35
|
/**
|
|
34
|
36
|
* Server where the conference should take place.
|
|
35
|
37
|
*/
|
|
|
@@ -197,6 +199,20 @@ public class JitsiMeetConferenceOptions {
|
|
197
|
199
|
private JitsiMeetConferenceOptions() {
|
|
198
|
200
|
}
|
|
199
|
201
|
|
|
|
202
|
+ private JitsiMeetConferenceOptions(Parcel in) {
|
|
|
203
|
+ room = in.readString();
|
|
|
204
|
+ token = in.readString();
|
|
|
205
|
+ colorScheme = in.readBundle();
|
|
|
206
|
+ byte tmpAudioMuted = in.readByte();
|
|
|
207
|
+ audioMuted = tmpAudioMuted == 0 ? null : tmpAudioMuted == 1;
|
|
|
208
|
+ byte tmpAudioOnly = in.readByte();
|
|
|
209
|
+ audioOnly = tmpAudioOnly == 0 ? null : tmpAudioOnly == 1;
|
|
|
210
|
+ byte tmpVideoMuted = in.readByte();
|
|
|
211
|
+ videoMuted = tmpVideoMuted == 0 ? null : tmpVideoMuted == 1;
|
|
|
212
|
+ byte tmpWelcomePageEnabled = in.readByte();
|
|
|
213
|
+ welcomePageEnabled = tmpWelcomePageEnabled == 0 ? null : tmpWelcomePageEnabled == 1;
|
|
|
214
|
+ }
|
|
|
215
|
+
|
|
200
|
216
|
Bundle asProps() {
|
|
201
|
217
|
Bundle props = new Bundle();
|
|
202
|
218
|
|
|
|
@@ -246,4 +262,35 @@ public class JitsiMeetConferenceOptions {
|
|
246
|
262
|
|
|
247
|
263
|
return props;
|
|
248
|
264
|
}
|
|
|
265
|
+
|
|
|
266
|
+ // Parcelable interface
|
|
|
267
|
+ //
|
|
|
268
|
+
|
|
|
269
|
+ public static final Creator<JitsiMeetConferenceOptions> CREATOR = new Creator<JitsiMeetConferenceOptions>() {
|
|
|
270
|
+ @Override
|
|
|
271
|
+ public JitsiMeetConferenceOptions createFromParcel(Parcel in) {
|
|
|
272
|
+ return new JitsiMeetConferenceOptions(in);
|
|
|
273
|
+ }
|
|
|
274
|
+
|
|
|
275
|
+ @Override
|
|
|
276
|
+ public JitsiMeetConferenceOptions[] newArray(int size) {
|
|
|
277
|
+ return new JitsiMeetConferenceOptions[size];
|
|
|
278
|
+ }
|
|
|
279
|
+ };
|
|
|
280
|
+
|
|
|
281
|
+ @Override
|
|
|
282
|
+ public void writeToParcel(Parcel dest, int flags) {
|
|
|
283
|
+ dest.writeString(room);
|
|
|
284
|
+ dest.writeString(token);
|
|
|
285
|
+ dest.writeBundle(colorScheme);
|
|
|
286
|
+ dest.writeByte((byte) (audioMuted == null ? 0 : audioMuted ? 1 : 2));
|
|
|
287
|
+ dest.writeByte((byte) (audioOnly == null ? 0 : audioOnly ? 1 : 2));
|
|
|
288
|
+ dest.writeByte((byte) (videoMuted == null ? 0 : videoMuted ? 1 : 2));
|
|
|
289
|
+ dest.writeByte((byte) (welcomePageEnabled == null ? 0 : welcomePageEnabled ? 1 : 2));
|
|
|
290
|
+ }
|
|
|
291
|
+
|
|
|
292
|
+ @Override
|
|
|
293
|
+ public int describeContents() {
|
|
|
294
|
+ return 0;
|
|
|
295
|
+ }
|
|
249
|
296
|
}
|