v2.1.0flutter_to_airplay
지정된 URL 또는 파일 경로의 비디오를 네이티브 AVPlayer를 사용하여 재생하는 위젯과 사용 가능한 Apple 장치에 AirPlay할 수 있는 옵션을 제공하는 두 가지 위젯을 제공하는 Flutter 플러그인입니다.
지정된 URL 또는 파일 경로의 비디오를 네이티브 AVPlayer를 사용하여 재생하는 위젯과 사용 가능한 Apple 장치에 AirPlay할 수 있는 옵션을 제공하는 두 가지 위젯을 제공하는 Flutter 플러그인입니다.
{"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 |