패키지, 저장소 및 앱 카테고리 검색

flutter_to_airplay 표지
패키지 상세v2.4.0

flutter_to_airplay

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

iOS
30일 다운로드
7천
좋아요
49
Pub 점수
150

패키지 설치

flutter pub add flutter_to_airplay

패키지 개요

공개 정보를 바탕으로 생성한 선택 가이드입니다.

iOS용 플러터 플러그인으로, 네이티브 AVPlayer를 사용하여 URL 또는 파일 경로에서 비디오를 재생하는 두 가지 위젯을 제공합니다. 두 번째 위젯은 AirPlay 통합 기능을 포함하여 사용자가 근처의 Apple 기기(예: Apple TV)로 비디오 콘텐츠를 스트리밍할 수 있게 해줍니다. iOS 전용으로 설계되어 원활한 재생과 무중단 AirPlay 지원을 위해 플랫폼 전용 기능을 활용합니다. 고품질 비디오 재생 및 스트리밍 옵션이 필요한 미디어 앱에 적합합니다.

사용 사례

  • 앱에서 URL에서 비디오 스트리밍하기
  • AirPlay로 로컬 비디오 파일 재생하기
  • Apple TV로 화면 미러링 활성화
  • Flutter 앱에서 네이티브 비디오 재생 통합
  • iOS용 미디어 플레이어 기능 구축

주요 기능

  • 네이티브 AVPlayer 통합
  • iOS에서의 AirPlay 지원
  • 두 개의 전용 비디오 재생 위젯
  • URL 및 파일 경로 비디오 소스
  • iOS 전용 플랫폼 대상

적합한 대상

  • iOS 미디어 애플리케이션
  • 비디오 스트리밍 앱
  • AirPlay 기능이 필요한 앱
  • 애플 생태계를 대상으로 하는 개발자
  • 비디오 재생이 필요한 플러터 프로젝트

고려 사항

  • iOS 전용 – 안드로이드에서는 사용할 수 없습니다
  • 완전한 AirPlay 지원을 위해서는 iOS 10 이상이 필요합니다
  • 비디오 재생에 제한됨 – 오디오 전용 모드 없음
  • 백그라운드 재생 지원 없음
  • AirPlay 사용 가능 여부에 따라 다름

원본 README

연결된 소스 저장소의 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

카테고리

소스 저장소

이 패키지를 사용하는 프로젝트