From fbca444b70645e0bdaf6d8fbe4d736bace5fa3a2 Mon Sep 17 00:00:00 2001 From: "Harish S.G" Date: Mon, 12 Jul 2021 11:52:19 +0530 Subject: [PATCH 01/16] Update chewie_player.dart --- lib/src/chewie_player.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/chewie_player.dart b/lib/src/chewie_player.dart index 952e1ce9f..e2df496d2 100644 --- a/lib/src/chewie_player.dart +++ b/lib/src/chewie_player.dart @@ -8,7 +8,7 @@ import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; import 'package:flutter/widgets.dart'; import 'package:provider/provider.dart'; -import 'package:video_player/video_player.dart'; +import 'package:ext_video_player/ext_video_player.dart'; import 'package:wakelock/wakelock.dart'; import 'package:chewie/src/models/subtitle_model.dart'; From 79a2646dcfaafd83f73b7f7a2f60736d848fcb44 Mon Sep 17 00:00:00 2001 From: "Harish S.G" Date: Mon, 12 Jul 2021 11:53:44 +0530 Subject: [PATCH 02/16] Update player_with_controls.dart --- lib/src/player_with_controls.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/player_with_controls.dart b/lib/src/player_with_controls.dart index e162b628c..1c407adf3 100644 --- a/lib/src/player_with_controls.dart +++ b/lib/src/player_with_controls.dart @@ -4,7 +4,7 @@ import 'package:chewie/src/notifiers/index.dart'; import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart'; import 'package:provider/provider.dart'; -import 'package:video_player/video_player.dart'; +import 'package:ext_video_player/ext_video_player.dart'; class PlayerWithControls extends StatelessWidget { const PlayerWithControls({Key? key}) : super(key: key); From b346f288a501d3755e4c691d7885fcbdee4d8d3e Mon Sep 17 00:00:00 2001 From: "Harish S.G" Date: Mon, 12 Jul 2021 11:55:49 +0530 Subject: [PATCH 03/16] Update progress_bar.dart --- lib/src/progress_bar.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/progress_bar.dart b/lib/src/progress_bar.dart index dcb2b7ad1..e7a16332e 100644 --- a/lib/src/progress_bar.dart +++ b/lib/src/progress_bar.dart @@ -1,7 +1,7 @@ import 'package:chewie/src/chewie_progress_colors.dart'; import 'package:flutter/material.dart'; import 'package:flutter/widgets.dart'; -import 'package:video_player/video_player.dart'; +import 'package:ext_video_player/ext_video_player.dart'; class VideoProgressBar extends StatefulWidget { VideoProgressBar( From 0585d7ac4672612056ac5dec2b8277142b4dee02 Mon Sep 17 00:00:00 2001 From: "Harish S.G" Date: Mon, 12 Jul 2021 11:57:41 +0530 Subject: [PATCH 04/16] Update material_controls.dart --- lib/src/material/material_controls.dart | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/src/material/material_controls.dart b/lib/src/material/material_controls.dart index d0643a671..ac671e7d6 100644 --- a/lib/src/material/material_controls.dart +++ b/lib/src/material/material_controls.dart @@ -10,9 +10,8 @@ import 'package:chewie/src/material/widgets/options_dialog.dart'; import 'package:chewie/src/notifiers/index.dart'; import 'package:flutter/material.dart'; import 'package:provider/provider.dart'; -import 'package:video_player/video_player.dart'; import 'package:chewie/src/models/subtitle_model.dart'; - +import 'package:ext_video_player/ext_video_player.dart'; import 'widgets/playback_speed_dialog.dart'; class MaterialControls extends StatefulWidget { From 62716b73a23b8d4a1296de911a32aa776b521343 Mon Sep 17 00:00:00 2001 From: "Harish S.G" Date: Mon, 12 Jul 2021 11:58:03 +0530 Subject: [PATCH 05/16] Update material_desktop_controls.dart --- lib/src/material/material_desktop_controls.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/material/material_desktop_controls.dart b/lib/src/material/material_desktop_controls.dart index 8c38cec9f..ec44375c1 100644 --- a/lib/src/material/material_desktop_controls.dart +++ b/lib/src/material/material_desktop_controls.dart @@ -11,7 +11,7 @@ import 'package:chewie/src/material/widgets/options_dialog.dart'; import 'package:chewie/src/notifiers/index.dart'; import 'package:flutter/material.dart'; import 'package:provider/provider.dart'; -import 'package:video_player/video_player.dart'; +import 'package:ext_video_player/ext_video_player.dart'; import 'package:chewie/src/models/subtitle_model.dart'; import 'widgets/playback_speed_dialog.dart'; From 4d577fde0011e9c466640036b126cc6eedc1fd20 Mon Sep 17 00:00:00 2001 From: "Harish S.G" Date: Mon, 12 Jul 2021 11:58:28 +0530 Subject: [PATCH 06/16] Update material_progress_bar.dart --- lib/src/material/material_progress_bar.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/material/material_progress_bar.dart b/lib/src/material/material_progress_bar.dart index fd1ee4fbb..4f5ed5a18 100644 --- a/lib/src/material/material_progress_bar.dart +++ b/lib/src/material/material_progress_bar.dart @@ -2,7 +2,7 @@ import 'package:chewie/src/chewie_progress_colors.dart'; import 'package:chewie/src/progress_bar.dart'; import 'package:flutter/material.dart'; import 'package:flutter/widgets.dart'; -import 'package:video_player/video_player.dart'; +import 'package:ext_video_player/ext_video_player.dart'; class MaterialVideoProgressBar extends StatelessWidget { MaterialVideoProgressBar( From 48e8ecbce40efe4d00cd807dcebabc88f6746bd8 Mon Sep 17 00:00:00 2001 From: "Harish S.G" Date: Mon, 12 Jul 2021 11:59:42 +0530 Subject: [PATCH 07/16] Update cupertino_controls.dart --- lib/src/cupertino/cupertino_controls.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/cupertino/cupertino_controls.dart b/lib/src/cupertino/cupertino_controls.dart index 02873a865..f6f93bb28 100644 --- a/lib/src/cupertino/cupertino_controls.dart +++ b/lib/src/cupertino/cupertino_controls.dart @@ -13,7 +13,7 @@ import 'package:flutter/cupertino.dart'; import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart'; import 'package:provider/provider.dart'; -import 'package:video_player/video_player.dart'; +import 'package:ext_video_player/ext_video_player.dart'; import 'package:chewie/src/models/subtitle_model.dart'; class CupertinoControls extends StatefulWidget { From 29b21eadff195e6b787f94fe42d82954201f18e8 Mon Sep 17 00:00:00 2001 From: "Harish S.G" Date: Mon, 12 Jul 2021 12:00:40 +0530 Subject: [PATCH 08/16] Update cupertino_progress_bar.dart --- lib/src/cupertino/cupertino_progress_bar.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/cupertino/cupertino_progress_bar.dart b/lib/src/cupertino/cupertino_progress_bar.dart index 8e14962bc..e3b89cca2 100644 --- a/lib/src/cupertino/cupertino_progress_bar.dart +++ b/lib/src/cupertino/cupertino_progress_bar.dart @@ -2,7 +2,7 @@ import 'package:chewie/src/chewie_progress_colors.dart'; import 'package:chewie/src/progress_bar.dart'; import 'package:flutter/material.dart'; import 'package:flutter/widgets.dart'; -import 'package:video_player/video_player.dart'; +import 'package:ext_video_player/ext_video_player.dart'; class CupertinoVideoProgressBar extends StatelessWidget { CupertinoVideoProgressBar( From 2fd25fcf478bbae67477e20e5bd8336c6a8d3472 Mon Sep 17 00:00:00 2001 From: "Harish S.G" Date: Mon, 12 Jul 2021 12:03:39 +0530 Subject: [PATCH 09/16] Update pubspec.yaml --- pubspec.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pubspec.yaml b/pubspec.yaml index 537432fa1..3f28e62e2 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -14,6 +14,8 @@ dependencies: provider: ^5.0.0 video_player: ^2.1.5 wakelock: ^0.5.2 + ext_video_player: ^0.0.6 + dev_dependencies: flutter_test: From 3d8cac4b0e52afb733f300721287de5584c36171 Mon Sep 17 00:00:00 2001 From: "Harish S.G" Date: Mon, 12 Jul 2021 12:07:27 +0530 Subject: [PATCH 10/16] Update pubspec.yaml --- pubspec.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/pubspec.yaml b/pubspec.yaml index 3f28e62e2..9342824bf 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -12,7 +12,6 @@ dependencies: flutter: sdk: flutter provider: ^5.0.0 - video_player: ^2.1.5 wakelock: ^0.5.2 ext_video_player: ^0.0.6 From cf7912291e3e265f32d2027c4c93ca9a838dc9f8 Mon Sep 17 00:00:00 2001 From: "Harish S.G" Date: Mon, 12 Jul 2021 12:41:53 +0530 Subject: [PATCH 11/16] Update chewie_player.dart --- lib/src/chewie_player.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/chewie_player.dart b/lib/src/chewie_player.dart index e2df496d2..0ac065735 100644 --- a/lib/src/chewie_player.dart +++ b/lib/src/chewie_player.dart @@ -474,7 +474,7 @@ class ChewieController extends ChangeNotifier { await videoPlayerController.setLooping(looping); if ((autoInitialize || autoPlay) && - !videoPlayerController.value.isInitialized) { + !videoPlayerController.value.initialized) { await videoPlayerController.initialize(); } From af0cdf99c31c0e4fc6e5642b5388e1c54b7992bd Mon Sep 17 00:00:00 2001 From: "Harish S.G" Date: Mon, 12 Jul 2021 12:49:03 +0530 Subject: [PATCH 12/16] Update progress_bar.dart --- lib/src/progress_bar.dart | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/src/progress_bar.dart b/lib/src/progress_bar.dart index e7a16332e..73ed4bb9d 100644 --- a/lib/src/progress_bar.dart +++ b/lib/src/progress_bar.dart @@ -67,7 +67,7 @@ class _VideoProgressBarState extends State { Widget build(BuildContext context) { return GestureDetector( onHorizontalDragStart: (DragStartDetails details) { - if (!controller.value.isInitialized) { + if (!controller.value.initialized) { return; } _controllerWasPlaying = controller.value.isPlaying; @@ -78,7 +78,7 @@ class _VideoProgressBarState extends State { widget.onDragStart?.call(); }, onHorizontalDragUpdate: (DragUpdateDetails details) { - if (!controller.value.isInitialized) { + if (!controller.value.initialized) { return; } _seekToRelativePosition(details.globalPosition); @@ -93,7 +93,7 @@ class _VideoProgressBarState extends State { widget.onDragEnd?.call(); }, onTapDown: (TapDownDetails details) { - if (!controller.value.isInitialized) { + if (!controller.value.initialized) { return; } _seekToRelativePosition(details.globalPosition); @@ -153,7 +153,7 @@ class _ProgressBarPainter extends CustomPainter { ), colors.backgroundPaint, ); - if (!value.isInitialized) { + if (!value.initialized) { return; } final double playedPartPercent = From 6b40e95937c0dc6af980da9a55ab722c71f62c52 Mon Sep 17 00:00:00 2001 From: "Harish S.G" Date: Mon, 12 Jul 2021 12:57:17 +0530 Subject: [PATCH 13/16] Update material_desktop_controls.dart --- lib/src/material/material_desktop_controls.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/material/material_desktop_controls.dart b/lib/src/material/material_desktop_controls.dart index ec44375c1..a1675d3d1 100644 --- a/lib/src/material/material_desktop_controls.dart +++ b/lib/src/material/material_desktop_controls.dart @@ -501,7 +501,7 @@ class _MaterialDesktopControlsState extends State } else { _cancelAndRestartTimer(); - if (!controller.value.isInitialized) { + if (!controller.value.initialized) { controller.initialize().then((_) { controller.play(); }); From 2399dd4ee5b0f732a7c064cc5dc8e59236063230 Mon Sep 17 00:00:00 2001 From: "Harish S.G" Date: Mon, 12 Jul 2021 12:58:18 +0530 Subject: [PATCH 14/16] Update pubspec.yaml --- pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pubspec.yaml b/pubspec.yaml index 9342824bf..a8df90ca2 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: chewie description: A video player for Flutter with Cupertino and Material play controls -version: 1.2.2 +version: 1.2.4 homepage: https://github.com/brianegan/chewie environment: From 60094a8e116e334bf8ea90e9f11091bec1de24be Mon Sep 17 00:00:00 2001 From: "Harish S.G" Date: Mon, 12 Jul 2021 13:07:58 +0530 Subject: [PATCH 15/16] Update material_controls.dart --- lib/src/material/material_controls.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/material/material_controls.dart b/lib/src/material/material_controls.dart index ac671e7d6..2055dae12 100644 --- a/lib/src/material/material_controls.dart +++ b/lib/src/material/material_controls.dart @@ -495,7 +495,7 @@ class _MaterialControlsState extends State } else { _cancelAndRestartTimer(); - if (!controller.value.isInitialized) { + if (!controller.value.initialized) { controller.initialize().then((_) { controller.play(); }); From 1d9d2518e465e074276276f1afc38ea88e3eeed8 Mon Sep 17 00:00:00 2001 From: "Harish S.G" Date: Mon, 12 Jul 2021 13:09:05 +0530 Subject: [PATCH 16/16] Update cupertino_controls.dart --- lib/src/cupertino/cupertino_controls.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/cupertino/cupertino_controls.dart b/lib/src/cupertino/cupertino_controls.dart index f6f93bb28..6202a2018 100644 --- a/lib/src/cupertino/cupertino_controls.dart +++ b/lib/src/cupertino/cupertino_controls.dart @@ -655,7 +655,7 @@ class _CupertinoControlsState extends State } else { _cancelAndRestartTimer(); - if (!controller.value.isInitialized) { + if (!controller.value.initialized) { controller.initialize().then((_) { controller.play(); });