universal_video_hls_player 0.0.3
universal_video_hls_player: ^0.0.3 copied to clipboard
video_player_web_hls implementation that has stub for mobile
example/lib/main.dart
import 'package:flutter/material.dart';
import 'dart:async';
import 'package:universal_video_hls_player/impl/player_export.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatefulWidget {
const MyApp({super.key});
@override
State<MyApp> createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
@override
void initState() {
super.initState();
}
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(
title: const Text('Plugin example app'),
),
body: const Center(
child: Column(children: [Text('Running\n'), Expanded(child: HlsWebPlayer(videoPath: "https://test-streams.mux.dev/x36xhzz/x36xhzz.m3u8", width: 1000, height: 1000,))]),
),
),
);
}
}