パッケージ、リポジトリ、アプリカテゴリを検索

flutter_to_airplay のカバー
パッケージ詳細v2.4.0

flutter_to_airplay

指定されたURLまたはファイルパスの動画をネイティブなAVPlayerを使用して再生するためのウィジェットと、利用可能なAppleデバイスにAirPlayするオプションを備えた2つのウィジェットを提供するFlutterプラグイン。

iOS
30日間ダウンロード
6970
いいね数
49
Pub ポイント
150

パッケージをインストール

flutter pub add flutter_to_airplay

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

iOS用のFlutterプラグインで、ネイティブのAVPlayerを使用してURLまたはファイルパスから動画を再生する2つのウィジェットを提供します。2番目のウィジェットにはAirPlayの統合が含まれており、ユーザーが近くのAppleデバイス(Apple TVなど)に動画コンテンツをストリーミングできるようにします。iOS専用に設計されており、スムーズな再生とシームレスなAirPlayサポートのために、プラットフォーム固有の機能を活用しています。高品質な動画再生とストリーミングオプションを必要とするメディアアプリに最適です。

用途

  • アプリ内のURLから動画をストリーミングする
  • AirPlay を使ってローカルの動画ファイルを再生する
  • Apple TVへの画面ミラーリングを有効にする
  • Flutterアプリにおけるネイティブ動画再生の統合
  • iOS用のメディアプレイヤー機能の構築

主な機能

  • ネイティブな AVPlayer インテグレーション
  • iOS での AirPlay サポート
  • 2つの専用の動画再生ウィジェット
  • URL およびファイルパス動画ソース
  • iOS専用プラットフォームターゲティング

適している対象

  • iOS メディアアプリケーション
  • 動画ストリーミングアプリ
  • AirPlay 機能を必要とするアプリ
  • Appleエコシステムをターゲットにする開発者
  • 動画再生が必要なFlutterプロジェクト

注意事項

  • iOS専用 – Androidでは利用できません
  • 完全な 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

カテゴリー

ソースリポジトリ

このパッケージを使用しているプロジェクト