搜尋套件、儲存庫與 APP 分類

youtube_player_iframe 封面
套件詳情v6.0.2

youtube_player_iframe

官方 YouTube iFrame 播放器 API 的 Flutter 版本。支援 Android、iOS、macOS 與 Web。

AndroidiOSWebmacOS
近 30 天下載
26.1萬
喜歡數
668
Pub 分數
160

安裝套件

flutter pub add youtube_player_iframe

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

一個 Flutter 套件,提供官方 YouTube iFrame Player API 的 Flutter 實作,可於 Android、iOS、Web 與 macOS 平台無縫整合 YouTube 影片。它提供對影片播放的完整控制,包含播放、暫停、跳轉與音量調整,同時維持與 YouTube 最新功能及響應式設計的相容性。此套件輕量級,專為尋求可靠、跨平台 YouTube 影片嵌入且設定簡單的開發者所設計。

適用情境

  • 在行動和網頁應用中嵌入 YouTube 影片
  • 建立影片教學或內容播放器
  • 建構媒體豐富的教育應用程式
  • 將 YouTube 內容整合到串流平台
  • 開發響應式影片畫廊

主要特色

  • 支援 Android、iOS、Web 和 macOS
  • 透過 API 完全控制影片播放
  • 適用於所有螢幕尺寸的響應式設計
  • 即時事件處理(播放、暫停、結束)
  • 輕量且易於整合

適合對象

  • 開發跨平台影片應用的開發者
  • 教育類應用程式創作者
  • 使用YouTube影片的內容平台
  • 需要內嵌影片播放的應用程式
  • 使用一個代碼庫針對多個平台的團隊

使用建議

  • 需要互聯網連接以加載影片
  • 超出標準 YouTube 播放器 UI 的自訂功能有限
  • 可能需要額外的樣式來支援品牌特定的主題
  • 依賴於 YouTube 的 iFrame API 穩定性
  • 不適用於離線影片播放

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

Youtube Player iFrame Youtube Player Flutter

Youtube Player for Flutter

A Flutter monorepo for seamless YouTube video playback, powered by the official iFrame Player API.

Stars Issues BSD-3 License


Packages

Package Version Demo Description Platforms
youtube_player_flutter pub demo Batteries-included YouTube player with built-in controls, gestures, and live stream UI Android, iOS, macOS, Web
youtube_player_iframe pub demo Full-control Flutter port of the YouTube iFrame API. Build your own UI. Android, iOS, macOS, Web
youtube_player_iframe_web pub Web platform implementation for youtube_player_iframe (added automatically) Web

Which package should I use?

youtube_player_flutter: just want a player that works

The quickest path to YouTube playback in your app. It ships with ready-made controls, a progress bar, drag-to-seek, pinch-to-fullscreen, and a live stream UI, all out of the box. Drop it in, point it at a video ID, and you're done.

flutter pub add youtube_player_flutter

Best for: apps that want a polished, functional player with minimal setup.


youtube_player_iframe: want full control over the player

A lower-level package that gives you the complete YouTube iFrame API. You own the UI; the package handles playback state, playlists, metadata, fullscreen transitions, thumbnails, and more. Includes a lazy-loading thumbnail widget perfect for video lists.

flutter pub add youtube_player_iframe

Best for: apps with a custom player design, complex playback logic, or playlist management needs.


youtube_player_iframe_web: you probably don't need to add this

This is the web platform implementation consumed automatically by youtube_player_iframe. You only need to add it directly if you're building a platform plugin or working inside this monorepo.


License

BSD-3-Clause. See LICENSE for details.

This project uses the YouTube IFrame Player API. By using these packages, you agree to the YouTube API Services Terms of Service.

API method documentation is adapted from the YouTube IFrame Player API Reference, © Google LLC, licensed under CC BY 4.0. See NOTICE for details.

所屬分類

依賴

依賴清單 6 項

原始碼儲存庫

使用此套件的專案