native_cast_player 0.1.0 copy "native_cast_player: ^0.1.0" to clipboard
native_cast_player: ^0.1.0 copied to clipboard

PlatformiOS

Native video player with YouTube-style AirPlay casting on iOS: AVPlayer external playback, paused-frame keep-alive for third-party TVs. Chromecast planned.

example/lib/main.dart

import 'package:flutter/material.dart';

import 'player_screen.dart';

/// Public HLS test stream (Big Buck Bunny) served over HTTPS, so no App
/// Transport Security exceptions are needed in Info.plist.
const String kTestStreamUrl =
    'https://test-streams.mux.dev/x36xhzz/x36xhzz.m3u8';

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

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Native Cast Player',
      debugShowCheckedModeBanner: false,
      theme: ThemeData(
        useMaterial3: true,
        brightness: Brightness.dark,
        colorSchemeSeed: Colors.red,
        scaffoldBackgroundColor: const Color(0xFF0F0F0F),
        appBarTheme: const AppBarTheme(backgroundColor: Colors.black),
      ),
      home: const PlayerScreen(
        videoUrl: kTestStreamUrl,
        title: 'Big Buck Bunny — HLS test stream',
      ),
    );
  }
}
0
likes
150
points
4
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Native video player with YouTube-style AirPlay casting on iOS: AVPlayer external playback, paused-frame keep-alive for third-party TVs. Chromecast planned.

Repository (GitHub)
View/report issues

Topics

#video #player #airplay #cast #ios

License

MIT (license)

Dependencies

flutter

More

Packages that depend on native_cast_player

Packages that implement native_cast_player