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

flutter_playout のカバー
パッケージ詳細v2.0.1

flutter_playout

このプラグインは、URLからのオーディオ/ビデオ再生を提供し、バックグラウンド音声のサポート、ロック画面コントロール、およびiOSとAndroid用のプレイヤーイベントを備えています。

AndroidiOS
30日間ダウンロード
165
いいね数
234
Pub ポイント
140

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

flutter pub add flutter_playout

パッケージ概要

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

flutter_playout は、URL からのオーディオおよびビデオ再生を可能にする Flutter プラグインであり、堅牢なバックグラウンドオーディオサポート、ロック画面コントロール、および Android および iOS でのリアルタイムプレイヤーイベント処理を備えています。ストリーミングアプリケーション向けに設計されており、アプリが最小化されている場合やデバイスがロックされている場合でも、シームレスなメディア再生を保証します。Flutter エコシステムとスムーズに統合され、ライブストリームおよびオンデマンドコンテンツに対して信頼性の高いパフォーマンスを提供します。ラジオアプリ、動画オンデマンドプラットフォーム、および継続的なメディア再生が必要なすべてのアプリケーションに特に役立ちます。

用途

  • ライブラジオストリーミング
  • オンデマンド動画再生
  • ポッドキャスト用のバックグラウンドオーディオ
  • ロック画面コントロール付きのメディアアプリ
  • クロスプラットフォームメディアプレイヤー

主な機能

  • バックグラウンドオーディオ再生
  • ロック画面コントロール
  • リアルタイムプレイヤーイベント
  • クロスプラットフォーム(iOSおよびAndroid)
  • URLベースのメディアソースのサポート

適している対象

  • ストリーミングアプリ
  • オーディオ/ビデオプレイヤー
  • ポッドキャストアプリ
  • メディア豊富な Flutter アプリ
  • 継続的な再生が必要なアプリ

注意事項

  • プラットフォーム固有のセットアップが必要です
  • URLベースのソースに限定
  • バックグラウンド音声のための追加権限が必要になる場合があります
  • 下位のネイティブメディアフレームワークに依存しています
  • カスタマイズなしではローカルファイルの再生に適していません

元の README

関連するソースリポジトリの README 原文のスナップショットです。最新の内容はリポジトリをご覧ください。

AVPlayer for Flutter

pub package

Audio & Video player in Flutter. This plugin provides audio/video playback with background audio support, text tracks and lock screen controls for both iOS & Android. It also provides player events such as onPlay, onPause, onTime etc. See example for more details.

  • Video supports HLS and Progressive Steaming for both iOS & Android with multi-audio support.

  • Audio supports playback from URL only.

Apps Using flutter_playout

See below for example of apps using flutter_playout.

  1. MTA International (iOS - Android)

Send a pull request to list your app here.

iOS Example
screenshot1 screenshot4 screenshot3
Android Example
screenshot5 screenshot6

Getting Started

Android

Uses ExoPlayer with PlatformView for Video playback and MediaPlayer for audio playback.

When using this plugin, please make sure you have included a notification icon for your project in drawable resource directory named ic_notification_icon. This plugin will use this icon to show lock screen controls for playback.

iOS

Uses AVPlayer with PlatformView for video playback and AVPlayer with Flutter MethodChannels for audio playback.

Please make sure you've enabled background audio capability for your project. Please also note that the player might not function properly on a simulator.

Opt-in to the embedded views preview by adding a boolean property to the app's Info.plist file with the key io.flutter.embedded_views_preview and the value YES.

HLS MultiAudio Support

Please see example app on how to implement multi-audio for Android. On iOS multi-audio is provided natively by the AVPlayer.

Text Tracks Support

To display subtitles, pass in an array of TextTrack sources to the Video widget. You can select a track by providing preferredTextLanguage to the Video widget with a language ISO code for example en or fr. This setup only applies to Android. For iOS please embed text tracks in the HLS manifest.

カテゴリー

ソースリポジトリ

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

データはまだありません。