P2P Streaming Engine for Flutter.
To use the x2tiktracker_flutter plugin in your Flutter app, follow these steps:
Add the x2tiktracker_flutter dependency in your pubspec.yaml file:
dependencies:
x2tiktracker_flutter: ^3.0.0
Now in your Dart code, you can use:
import 'package:x2tiktracker_flutter/x2tiktracker_flutter.dart';
String? exUrl;
final tracker = X2tiktrackerFlutter();
await tracker.create('your-app-id');
await tracker.registerListener();
await tracker.startPlay('https://gcalic.v.myalicdn.com/gc/zyqcdx01_1/index.m3u8?contentid=2820180516001&useLivePlayer=true', share: true);
exUrl = await tracker.getExUrl();