Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updated changes #1

Open
wants to merge 28 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
cea616b
Update package to support unlisted vimeo videos
rafaelmeteoro Apr 3, 2023
efdb24b
chore: upgraded dependencies
newtaDev May 7, 2023
f095026
fix: auto play/pause listner issue
newtaDev May 7, 2023
3231e3a
refactor: lottie icon to custom doubleTap icon
newtaDev May 7, 2023
ee7a49b
chore: imrove pub score
newtaDev May 7, 2023
3c7f2c0
🚀 pub -v 0.1.1
newtaDev May 7, 2023
bc4d30b
fix: videoQuality cannot be empty #82
newtaDev May 9, 2023
e6a4a6a
🚀 pub -v 0.1.2
newtaDev May 9, 2023
4009fd8
Update pubspec.yaml
sybrands-place May 10, 2023
5015cd4
Merge pull request #109 from sybrands-place/sybrands-place-pubspec-fix
newtaDev May 11, 2023
8160108
feat: improved pub sccore,
newtaDev May 22, 2023
44660cc
🚀 pub -v 0.1.4
newtaDev May 22, 2023
7167e3a
Merge pull request #103 from rafaelmeteoro/master
newtaDev May 24, 2023
d59ba9d
🚀 pub -v 0.1.5
newtaDev Jun 6, 2023
dfa3bb3
feat: move to wakelock plus
oplik0 Jul 4, 2023
c863193
chore: ensure the latest version is specified
oplik0 Jul 4, 2023
92a053c
Merge pull request #129 from InnHub-Ltd/wakelock_plus
newtaDev Jul 5, 2023
26907da
- upgraded dependencies
newtaDev Jul 8, 2023
595e9eb
fix: lint and formating
newtaDev Jul 8, 2023
e1fb768
🚀 pub -v 0.2.0
newtaDev Jul 8, 2023
59f0b94
🚀 pub -v 0.2.1
newtaDev Aug 14, 2023
a44f75b
fix: CI error
newtaDev Aug 16, 2023
29b5c25
fix: flexible dependencies for universal_html and very_good_analysis
newtaDev Aug 16, 2023
1f7d7e7
revert
newtaDev Aug 16, 2023
4a096c3
Update README.md
newtaDev Oct 9, 2023
e40799b
fix: broken vimeo api requests and upgraded the dependencies
newtaDev Apr 11, 2024
d554845
Merge pull request #187 from newtaDev/fix/vimeo-api-broken-issue
newtaDev Apr 11, 2024
f3ea20e
🚀 pub -v 0.2.2
newtaDev Apr 11, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ name: CI

on:
push:
branches: [master]
pull_request:
branches: [master]

jobs:
check-format:
Expand All @@ -14,7 +16,7 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2
- name: Check format
run: flutter format --set-exit-if-changed .
run: dart format --set-exit-if-changed .

lint:
name: Check lints
Expand Down
36 changes: 36 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,39 @@
## 0.2.2
- fixed broken vimeo api requests
- upgraded minimum sdk version from ">=2.17.0 <4.0.0" to ">=3.0.0 <4.0.0"
- upgraded all the dependencies to latest version
- fix typos in README.md

## 0.2.1
- upgraded all dependencies
- upgraded `http` lib to `^1.1.0`
- fix fullscreen issue in IOS

## 0.2.0
- upgraded dependencies
- migrate from `wakelock` to `wakelock_plus` PR [#129](https://github.com/newtaDev/pod_player/pull/129)
- fixed all lint rules
- migrated `VideoPlayerController.network` to `VideoPlayerController.networkUrl`
- Breaking:
- In `PlayVideoFrom.file` [file] param datatype changed from [dynamic] to [File]
## 0.1.5
- merged PR #103
- support unlisted vimeo videos
- upgraded dependencies
- Updated Readme file
## 0.1.4
- added pod player logo to pub.dev
## 0.1.3
- fix: unable to find directory entry in pubspec.yaml #114
- merged PR #109
## 0.1.2
- fixed #82
## 0.1.1
- Feature
- support vimeo private video [ref](https://github.com/newtaDev/pod_player#how-to-play-video-from-vimeo-private-videos)
- double tap ripple effect added
- upgraded dependencies
- merged PR #66 #77 #78
## 0.1.0

- Breaking change:
Expand Down
89 changes: 67 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@
</h1>

<p align="center">
<a href="https://pub.dev/packages/pod_player/score"><img src="https://badges.bar/pod_player/likes" alt="pub likes"></a>
<a href="https://pub.dev/packages/pod_player"><img src="https://img.shields.io/pub/v/pod_player?style=flat" alt="pub version"></a>
<a href="https://pub.dev/packages/pod_player/score"><img src="https://badges.bar/pod_player/popularity" alt="popularity"></a>
<a href="https://pub.dev/packages/pod_player/score"><img src="https://badges.bar/pod_player/pub%20points" alt="pub points"></a>
<a href="https://pub.dev/packages/pod_player/score"><img src="https://img.shields.io/badge/Likes-200+-yellowgreen" alt="pub likes"></a>
<a href="https://pub.dev/packages/pod_player"><img src="https://img.shields.io/pub/v/pod_player?style=flat" alt="pub version"></a>
<a href="https://pub.dev/packages/pod_player/score"><img src="https://img.shields.io/badge/score-140-critical" alt="score"></a>
<a href="https://pub.dev/packages/pod_player/score"><img src="https://img.shields.io/badge/popularity-97﹪-critical" alt="pub points"></a>

</p>
<p align="center"> <img src="https://komarev.com/ghpvc/?username=newtaDev&label=Total%20views&color=0e75b6&style=flat" alt="newta" /> </p>

Video player for flutter web & mobile devices, pod player supports playing video from `Youtube` and `Vimeo`

pod player is a simple and easy-to-use video player. Its video controls are similar to Youtube player (with customizable controls) and also can play videos from `Youtube` and `Vimeo` (By providing url/video_id).
Expand All @@ -26,8 +28,8 @@ This plugin built upon flutter's official [`video_player`](https://pub.dartlang.
## Features

- Play `youtube` videos (using video URL or ID)
- Play `vimeo` videos (using video ID)
- Play `vimeo` private videos (using video ID, access token)
- Play `vimeo` videos (using video ID [with ou without hash])
- Play `vimeo` private videos (using video ID [with ou without hash], access token)
- Video overlay similar to youtube
- `Double tap` to seek video.
- On video tap show/hide video overlay.
Expand All @@ -37,24 +39,24 @@ This plugin built upon flutter's official [`video_player`](https://pub.dartlang.
- Custom progress bar
- Custom labels
- `Change video quality` (for vimeo and youtube)
- Enable/disable fullscreen player
- Enable/disable full-screen player
- support for live youtube video
- [TODO] support for video playlist

## Features on web

- Double tap on Video player to enable/disable fullscreen
- `Mute/unmute` volume
- Double tap on Video player to enable/disable full-screen
- `Mute/unMute` volume
- Video player integration with keyboard

- `SPACE` play/pause video
- `M` mute/unMute video
- `F` enable/disable fullscreen
- `ESC` enable/disable fullscreen
- `F` enable/disable full-screen
- `ESC` enable/disable full-screen
- `->` seek video forward
- `<-` seek video backward

- Double tap on video (enable/diables fullscreen)
- Double tap on video (enable/disables full-screen)

## Demo

Expand All @@ -68,8 +70,14 @@ This plugin built upon flutter's official [`video_player`](https://pub.dartlang.
<img src="https://user-images.githubusercontent.com/85326522/160871693-74b468de-839d-4ae3-9ef0-581066130072.gif" alt="pod_player">
</h1>

- Video player on web

---

<h1 align="center">
<a><img src="https://user-images.githubusercontent.com/85326522/160885274-41be06af-ae6d-41f3-8cff-21767fde8dad.gif" alt="pod_player"></a>
</h1>

- Vimeo player and custom video player

---
Expand All @@ -90,7 +98,7 @@ This plugin built upon flutter's official [`video_player`](https://pub.dartlang.

---

- On mobile full screen
- On mobile full-screen

---

Expand All @@ -116,12 +124,6 @@ This plugin built upon flutter's official [`video_player`](https://pub.dartlang.

---

---

<h1 align="center">
<a><img src="https://user-images.githubusercontent.com/85326522/160885274-41be06af-ae6d-41f3-8cff-21767fde8dad.gif" alt="pod_player"></a>
</h1>

## Usage

- [Installation](#installation)
Expand Down Expand Up @@ -380,6 +382,49 @@ class _PlayVideoFromVimeoState extends State<PlayVideoFromVimeo> {
}

```

## How to play video from vimeo with hash

---

```dart
import 'package:pod_player/pod_player.dart';
import 'package:flutter/material.dart';

class PlayVideoFromVimeo extends StatefulWidget {
const PlayVideoFromVimeo({Key? key}) : super(key: key);

@override
State<PlayVideoFromVimeo> createState() => _PlayVideoFromVimeoState();
}

class _PlayVideoFromVimeoState extends State<PlayVideoFromVimeo> {
late final PodPlayerController controller;

@override
void initState() {
controller = PodPlayerController(
playVideoFrom: PlayVideoFrom.vimeo('518228118', hash: '7cc595e1f8'),
)..initialise();
super.initState();
}

@override
void dispose() {
controller.dispose();
super.dispose();
}

@override
Widget build(BuildContext context) {
return Scaffold(
body: PodVideoPlayer(controller: controller),
);
}
}

```

## How to play video from vimeo private videos

---
Expand All @@ -396,14 +441,14 @@ class PlayVideoFromVimeoPrivateVideo extends StatefulWidget {
_PlayVideoFromVimeoPrivateVideoState();
}

class _PlayVideoFromVimeoPrivateVideoState
class _PlayVideoFromVimeoPrivateVideoState
extends State<PlayVideoFromVimeoPrivateVideo> {
late final PodPlayerController controller;

@override
void initState() {
String videoId = 'your private video id';
String token = 'your access token';
String videoId = 'your private video id';
String token = 'your access token';
final Map<String, String> headers = <String, String>{};
headers['Authorization'] = 'Bearer ${token}';

Expand Down
11 changes: 4 additions & 7 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
include: package:very_good_analysis/analysis_options.yaml
analyzer:
strong-mode:
implicit-casts: true
implicit-dynamic: true
errors:
missing_required_param: error
prefer_const_declarations: warning
prefer_const_constructors: warning
import_of_legacy_library_into_null_safe: warning
public_member_api_docs: ignore

language:
strict-casts: true
strict-raw-types: true
linter:
rules:
omit_local_variable_types: false
missing_required_param: true
prefer_const_declarations: true
prefer_const_constructors: true
public_member_api_docs: false
Expand All @@ -22,7 +20,6 @@ linter:
lines_longer_than_80_chars: false
prefer_relative_imports: true
always_use_package_imports: false
import_of_legacy_library_into_null_safe: true
avoid_print: true
prefer_single_quotes: true
avoid_redundant_argument_values: true
Expand All @@ -34,4 +31,4 @@ linter:
avoid_positional_boolean_parameters: false
use_build_context_synchronously: false
use_setters_to_change_properties: false
avoid_bool_literals_in_conditional_expressions: false
avoid_bool_literals_in_conditional_expressions: false
Loading