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

パッケージ詳細v1.0.3

vimeo_video_player

Vimeoの動画IDを使用して動画を再生するためのFlutterパッケージ。InAppWebViewを使用して、Flutterアプリ内でスムーズな動画再生を実現します。

AndroidiOSWebmacOSWindows
30日間ダウンロード
1.1万
いいね数
81
Pub ポイント
140

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

flutter pub add vimeo_video_player

パッケージ概要

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

vimeo_video_player パッケージは、動画IDを使用してFlutterアプリケーション内でVimeo動画をスムーズに再生できるようにします。InAppWebViewに基づいており、Android、iOS、Web、macOS、Windowsで滑らかな埋め込み動画体験を提供します。パッケージは内部的に認証およびストリーミングロジックを処理するため、開発者はUIとユーザー体験に集中できます。レスポンシブデザインをサポートし、ウェブビューインターフェースを通じて基本的な再生コントロールを提供します。

用途

  • モバイルアプリにVimeo動画を埋め込む
  • 教育用アプリケーションにおける動画コンテンツの統合
  • eコマースアプリで製品デモを表示する
  • ストリーミングチュートリアルまたはトレーニング動画
  • アプリケーションインターフェースに動画背景を追加する

主な機能

  • 動画ID経由でVimeo動画を再生する
  • 信頼性の高い再生に InAppWebView を使用
  • クロスプラットフォーム対応(Android、iOS、Web、macOS、Windows)
  • 最小限のセットアップでシンプルな統合
  • レスポンシブな動画レンダリング
  • Webビューによる組み込み再生コントロール

適している対象

  • メディア豊富なFlutterアプリを開発する開発者
  • 教育的またはチュートリアル中心のアプリケーション
  • 動画コンテンツを備えたECプラットフォーム
  • Vimeoから埋め込み動画を必要とするアプリ

注意事項

  • InAppWebViewに依存しており、低スペックデバイスでのパフォーマンスに影響を与える可能性があります
  • 動画ストリーミングにはインターネット接続が必要です
  • ウェブビュー以外のプレイヤーUIのカスタマイズは限定的
  • 一部のプラットフォームでは追加の権限が必要になる場合があります
  • VimeoのAPIの利用可能性和安定性に依存する

元の README

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

vimeo_video_player

Flutter Website Dart Website MIT License

A Flutter package to play Vimeo videos using their Video ID. Utilizes InAppWebView for smooth video playback directly in your Flutter app.

Key Features

  • Easy way to play vimeo video in flutter app.
  • Supports customizable controls like isAutoPlay, isLooping, isMuted, showTitle, showByline, showControls, enableDNT, backgroundColor.
  • Event callbacks include onReady, onPlay, onPause, onFinish, onSeek, onInAppWebViewCreated, onInAppWebViewLoadStart, onInAppWebViewLoadStop, and onInAppWebViewReceivedError.

Preview

vimeo_video_player

Basic Usage

Import it to your project file

import 'package:vimeo_video_player/vimeo_video_player.dart';

And add it in its most basic form like it:

@override
Widget build(BuildContext context) {
  return VimeoVideoPlayer(
    videoId: '12860646',
  );
}
Required parameters of VimeoVideoPlayer

Parameter Description
String videoId Defines the vimeo video ID to be played, it is required and cannot be empty
Optional parameters of VimeoVideoPlayer with Default value

Parameter Default Description
bool isAutoPlay false Used to auto-play the video once initialized
bool isLooping false Used to play the video in a loop after it ends
bool isMuted false Used to play the video with the sound muted
bool showTitle false Used to display the video title
bool showByline false Used to display the video byline/author
bool showControls true Used to display the video playback controls
bool enableDNT true Used to enable Do Not Track (DNT) mode, When enabled, the player will not track any viewing information
bool portrait false Used to display the profile avatar
bool badge false Used to display the vimeo logo
bool enableFullScreenOnPlay false Used to enable fullscreen mode when playing. When enabled, the player go full screen when play is hit
Color backgroundColor Colors.black Defines the background color of the InAppWebView
Optional parameters of VimeoVideoPlayer

Parameter Description
String? privacyHash Used to define the the hash for the unlisted vimeo video
VoidCallback? onReady Used to define a callback function triggered when the player is ready to play the video
VoidCallback? onPlay Used to define a callback function triggered when the video begins playing
VoidCallback? onPause Used to define a callback function triggered when the video is paused
VoidCallback? onFinish Used to define a callback function triggered when the video playback finishes
VoidCallback? onSeek Used to define a callback function triggered when the video playback position is modified
Function(InAppWebViewController controller)? onInAppWebViewCreated Used to define a callback function triggered when the WebView is created
Function(InAppWebViewController controller, WebUri? uri)? onInAppWebViewLoadStart Used to define a callback function triggered when the WebView starts to load an url
Function(InAppWebViewController controller, WebUri? uri)? onInAppWebViewLoadStop Used to define a callback function triggered when the WebView finishes loading an url
Function(InAppWebViewController controller, WebResourceRequest request, WebResourceError? error)? onInAppWebViewReceivedError Used to define a callback function triggered when the WebView encounters an error loading a request
final void Function(InAppWebViewController controller)? onEnterFullscreen Used to define a callback function triggered when the WebView enters full screen
final void Function(InAppWebViewController controller)? onExitFullscreen Used to define a callback function triggered when the WebView exits full screen
final ValueChanged? currentPositionInSeconds Used to define a callback function that notifies current video position
int? initialPositionInSeconds Used to define the initial video position in seconds

Dependencies

Guideline for contributors

  • Contribution towards our repository is always welcome, we request contributors to create a pull request for development.

Guideline to report an issue/feature request

It would be great for us if the reporter can share the below things to understand the root cause of the issue.

  • Library version
  • Code snippet
  • Logs if applicable
  • Device specification like (Manufacturer, OS version, etc)
  • Screenshot/video with steps to reproduce the issue
  • Library used

LICENSE!

vimeo_video_player is MIT-licensed.

Let us know!

We’d be really happy if you send us links to your projects where you use our open-source libraries. Just send an email to [sales@mindinventory.com](mailto:sales@mindinventory.com) And do let us know if you have any questions or suggestion regarding our work.

Visit our website mindinventory.com

Let us know if you are interested to building Apps or Designing Products.

flutter app development

カテゴリー

依存関係

依存関係一覧 2 件

ソースリポジトリ

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