v2.1.0flutter_to_airplay
Flutter प्लगइन दो विजेट्स प्रदान करता है, एक दिए गए URL या फ़ाइल पथ के लिए नेटिव AVPlayer का उपयोग करके वीडियो प्लेबैक करने के लिए और दूसरा उपलब्ध Apple डिवाइस पर एयरप्ले करने के विकल्प के साथ।
एक Flutter प्लगइन जो दो विजेट प्रदान करता है, एक दिए गए URL या फ़ाइल पथ के लिए नेटिव AVPlayer का उपयोग करके वीडियो प्लेबैक करता है और दूसरा उपलब्ध Apple डिवाइस पर एयरप्ले करने का विकल्प होता है।
{"sdk":"flutter"}{"sdk":"flutter"}यह अंग्रेज़ी मूल स्नैपशॉट है। नवीनतम सामग्री GitHub पर देखें।
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.
This plugin provides two widgets,
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,
)
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',
),
| Video iPhone | Airplay iPhone | Video iPad | Airplay iPad |
|---|---|---|---|
| iPhoneVideo_Butterfly | iPadVideo_Butterfly | AirPlayiPhone | AirPlayiPad |