airo_m3u_parser 1.0.0
airo_m3u_parser: ^1.0.0 copied to clipboard
High-performance streaming M3U & M3U8 playlist parser for Flutter — Rust-accelerated on native platforms with an identical pure-Dart fallback (including web).
airo_m3u_parser #
High-performance streaming M3U & M3U8 playlist parser for Flutter — Rust-accelerated on native platforms with an identical pure-Dart fallback (including web).
Part of the DevelopersCoffee open-source ecosystem.
Features #
- Rust-Accelerated Native Engine: Ultra-fast C/Rust FFI parsing for large playlists (50,000+ entries) without UI freezes.
- Pure-Dart Web & Fallback Engine: Zero-dependency pure-Dart parser for Flutter Web and fallback execution.
- TV Channel Tag Extraction: Automatically extracts
tvg-id,tvg-name,tvg-logo,group-title,language, andcountry. - Deduplication & Sanitization: Normalizes channel URIs, sanitizes stream headers, and strips invalid control bytes.
Usage #
import 'package:airo_m3u_parser/m3u_parser.dart';
void main() async {
const m3uContent = '''
#EXTM3U
#EXTINF:-1 tvg-id="123" tvg-name="Sports HD" tvg-logo="https://example.com/logo.png" group-title="Sports", Sports HD
https://example.com/stream/live.m3u8
''';
final playlist = await parseM3UPlaylist(content: m3uContent);
for (final channel in playlist.channels) {
print('Channel: ${channel.name} -> ${channel.url}');
}
}
Maintainers #
Maintained with ❤️ by DevelopersCoffee.