saibotma / jitsi_meet_wrapper

Jitsi Meet Plugin for Flutter. Wrapping JitsiMeetSDK for Android and iOS.
BSD 3-Clause "New" or "Revised" License
27 stars 61 forks source link

Parse Jitsi “links” that contain config overrides #6

Closed saibotma closed 2 years ago

saibotma commented 2 years ago

An implementation could look like this:

final uri = Uri.tryParse(link);
final mappedFragment = uri?.hasFragment ?? false
    ? Uri.splitQueryString(uri!.fragment)
    : <String, String>{};
final configOverrides = mappedFragment.map((key, value) {
  return MapEntry(
    key.replaceFirst("config.", ""),
    _castValue(value),
  );
});
saibotma commented 2 years ago

Fixed in #9. It is now possible to provide a URL to roomNameOrUrl.