FLUTTER ECOSYSTEM

MrJai/flutter_to_airplay

एक Flutter प्लगइन जो दो विजेट प्रदान करता है, एक दिए गए URL या फ़ाइल पथ के लिए नेटिव AVPlayer का उपयोग करके वीडियो प्लेबैक करता है और दूसरा उपलब्ध Apple डिवाइस पर एयरप्ले करने का विकल्प होता है।

flutter_to_airplay प्रोजेक्ट कवर
Stars
38
Forks
55
अंतिम पुश (UTC)
23 सित॰ 2025
प्रोजेक्ट स्थिति
सक्रिय
Junaid Rehmat GitHub avatar
GITHUB User

Junaid Rehmat ↗

Husband | Father | Developer | #flutter | #Swift | #objective-C | flutter | react native | collaborate, develop, contribute, and network.

भाषाएँDartSwiftRubyPythonObjective-C

इस रिपॉज़िटरी के पैकेज

उपयोग की गई निर्भरताएँ

निर्भरता सूची 2 आइटम
  • flutter{"sdk":"flutter"}
  • flutter_testडेवलपमेंट{"sdk":"flutter"}

मूल README

यह अंग्रेज़ी मूल स्नैपशॉट है। नवीनतम सामग्री GitHub पर देखें।

README खोलें / बंद करें

flutter_to_airplay

Flutter plugin that offers two widgets, one to play a video for given url or file path using native AVPlayer and second with an option to airplay it on available Apple devices.

Sponsor/Support

If you like my work, and want to support me so that I can invest more time in improving it, please consider buying me a coffee.

Buy Me A Coffee

Getting Started

This plugin provides two widgets,

1- AirPlayRoutePickerView

Its tintColor, activeTintColor and backgroundColor, can be set to suit the overall theme of application.

AirPlayRoutePickerView(
                tintColor: Colors.white,
                activeTintColor: Colors.white,
                backgroundColor: Colors.transparent,
              )
2- FlutterAVPlayerView

For now it supports either local file added to flutter project, or a video url.

To play a network video for given url:

FlutterAVPlayerView(
              urlString:
                  'https://flutter.github.io/assets-for-api-docs/assets/videos/butterfly.mp4',
            ),

To play a local video added to the flutter project:

child: FlutterAVPlayerView(
              filePath: 'assets/videos/butterfly.mp4',
            ),

Screenshots

Video iPhone Airplay iPhone Video iPad Airplay iPad
iPhoneVideo_Butterfly iPadVideo_Butterfly AirPlayiPhone AirPlayiPad

TODO:

  • [x] Allow videos add to the Flutter project.
  • [ ] Allow videos from more sources, Youtube, etc.

Disclaimers:

  • Please suggest if you want a feature added to this utility
  • Please feel free to add any issues or open PRs, I will be actively looking to add to these utilities.

Credit: Inspired by Package

FlutterAirplayPlugin