INNER CODE UNIT · Dart

registerWith

livekit/client-sdk-flutter · lib/livekit_client_web.dart:30

  static void registerWith(Registrar registrar) {
    final MethodChannel channel = MethodChannel(
      'livekit_client',
      const StandardMethodCodec(),
      registrar,
    );

    final pluginInstance = LiveKitWebPlugin();
    channel.setMethodCallHandler(pluginInstance.handleMethodCall);

    // Unofficial method load js as flutter assets (unreliable)
    // html.document.head!.append(html.ScriptElement()
    //   ..src = 'assets/packages/livekit_client/assets/ua-parser.min.js'
    //   ..type = 'application/javascript'
    //   ..defer = true
    //   );
  }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…