universal_video_hls_player 0.0.6 copy "universal_video_hls_player: ^0.0.6" to clipboard
universal_video_hls_player: ^0.0.6 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,))]),
        ),
      ),
    );
  }
}
1
likes
85
points
15
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

video_player_web_hls implementation that has stub for mobile

License

MIT (license)

Dependencies

flutter, plugin_platform_interface, video_player, video_player_web_hls

More

Packages that depend on universal_video_hls_player

Packages that implement universal_video_hls_player