nova_player 0.2.2 copy "nova_player: ^0.2.2" to clipboard
nova_player: ^0.2.2 copied to clipboard

A Flutter video player package with advanced analytics and interaction tracking capabilities.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:nova_player/nova_player.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Nova Player Example',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
      ),
      home: const MyHomePage(),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({super.key});

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('Nova Player Example'),
      ),
      body: const Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: [
            AspectRatio(
              aspectRatio: 16 / 9,
              child: VideoPlayer(
                appId: "ybIo7k1Xfh0ZFRTfrOy9Myuepfga6dCe1IPz4vszLPM=",
                streamCode: "17374658181844",
                userContext: {"user_id": "12190121"},
                playerContraint: BetterPlayerVideoConstraint(
                  width: 854,
                  height: 480,
                  bitrate: 400000,
                ),
              ),
            ),
          ],
        ),
      ),
    );
  }
}
2
likes
150
points
298
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter video player package with advanced analytics and interaction tracking capabilities.

Repository (GitHub)
View/report issues

Topics

#video #player #analytics #flutter #media

Documentation

Documentation
API reference

License

MIT (license)

Dependencies

defer_pointer, equatable, flutter, flutter_bloc, flutter_hooks, hive, hive_flutter, mayya_core, url_launcher, wakelock_plus, xml, xstream_player

More

Packages that depend on nova_player