Skip to content

vidinfra/VidinfraPlayerFlutter

Repository files navigation

Vidinfra Player for Flutter

Official Flutter SDK for Vidinfra by Tenbyte.

Vidinfra is a secure video infrastructure platform with unlimited bandwidth, built-in security, and piracy protection. This Flutter SDK provides an embeddable video player widget (VidinfraPlayerView), a playback controller (VidinfraPlayerController), download helpers (VidinfraDownloader), and AES authentication helpers for secure video delivery.

Built on top of kvideo, this lightweight SDK enables seamless integration of Vidinfra's video hosting capabilities into Flutter applications.

Learn more about Vidinfra: https://tenbyte.io/vidinfra

About Vidinfra

Vidinfra is an all-in-one video hosting platform that provides:

  • Unlimited CDN bandwidth - Global edge network for fast video delivery
  • Built-in security - Token authentication, geo-blocking, domain restrictions, and multi-DRM protection
  • Piracy protection - Keep your content secure and prevent revenue leaks
  • Easy management - Upload, organize, and manage your video library via API or dashboard
  • Customizable player - Personalize with logos, subtitles, and thumbnails
  • Live streaming - RTMP/SRT ingest with adaptive HLS delivery
  • Video analytics - Track performance and viewer engagement metrics

This Flutter SDK enables you to integrate Vidinfra's video playback, downloading, and authentication features directly into your Flutter applications.


Quick Links

  • Product: Vidinfra - Secure video infrastructure with unlimited CDN
  • Company: Tenbyte
  • Package: vidinfra_player (see pubspec.yaml)
  • Example app: example/
  • License: MIT (see LICENSE)

--

Features

  • Embeddable video widget (VidinfraPlayerView) with controller-driven playback API.
  • AES authentication helpers to generate and merge request headers.
  • Downloader with start/remove/list/status helpers and listener hooks.
  • Media model includes subtitles, sprite thumbnails, and chapter VTT fields.
  • Access to lower-level kvideo notifiers for advanced playback state.

Requirements

  • Dart >=3.8.1, Flutter >=1.17.0 (from pubspec.yaml).
  • Standard Flutter Android/iOS setup with network access; ensure platform permissions for networking/downloading as required by your app.

Installation

Add vidinfra_player to your pubspec.yaml and run flutter pub get

dependencies:
  vidinfra_player: <latest_version_here>

Quick Start

A minimal stateful widget using the controller and view:

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

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

  @override
  State<PlayerExample> createState() => _PlayerExampleState();
}

class _PlayerExampleState extends State<PlayerExample> {
  final controller = VidinfraPlayerController();

  @override
  void dispose() {
    controller.dispose();
    super.dispose();
  }

  Future<void> _play() async {
    await controller.play(Media(
      title: 'Sample',
      url: 'https://example.com/video.mpd',
    ));
  }

  @override
  Widget build(BuildContext context) {
    return Column(
      children: [
        Expanded(child: VidinfraPlayerView(controller: controller)),
        ElevatedButton(onPressed: _play, child: const Text('Play')),
      ],
    );
  }
}

Detailed Example

Please see SAMPLES for an in-depth use-case and example of all the available features.

Contributing

Contributions are welcome! Please open issues or PRs and follow the existing code style.

For questions or support about Vidinfra, visit https://tenbyte.io/vidinfra or contact Tenbyte.

License

This project is licensed under the MIT License. See LICENSE for details.

About

Vidinfra Player SDK For Flutter

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors