Exemple #1
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            base.SetContentView(Resource.Layout.activity_main);

            URL serverUrl;

            try
            {
                serverUrl = new URL("https://meet.jit.si");
            }
            catch (MalformedURLException e)
            {
                e.PrintStackTrace();
                throw new RuntimeException("Invalid server URL!");
            }

            JitsiMeetConferenceOptions defaultOptions
                = new JitsiMeetConferenceOptions.Builder()
                  .SetServerURL(serverUrl)
                  .SetWelcomePageEnabled(false)
                  .Build();

            Org.Jitsi.Meet.Sdk.JitsiMeet.DefaultConferenceOptions = defaultOptions;

            var butJoint = base.FindViewById <Button>(Resource.Id.butJoin);

            butJoint.Click += ButJointClick;
        }
Exemple #2
0
        private void ButJointClick(object sender, EventArgs e)
        {
            var editText = base.FindViewById <EditText>(Resource.Id.conferenceName);
            var text     = editText.Text;

            if (text.Length > 0)
            {
                // Build options object for joining the conference. The SDK will merge the default
                // one we set earlier and this one when joining.
                JitsiMeetConferenceOptions options
                    = new JitsiMeetConferenceOptions.Builder()
                      .SetRoom(text)
                      .Build();

                // Launch the new activity with the given options. The launch() method takes care
                // of creating the required Intent and passing the options.
                Org.Jitsi.Meet.Sdk.JitsiMeetActivity.Launch(this, options);
            }
        }