diff --git a/packages/video_player/CHANGELOG.md b/packages/video_player/CHANGELOG.md index bed293fd4..fc311ac33 100644 --- a/packages/video_player/CHANGELOG.md +++ b/packages/video_player/CHANGELOG.md @@ -1,3 +1,9 @@ +## 2.5.15 + +* Update video_player to 2.14.0. +* Update video_player_platform_interface to 6.9.0. +* Updates minimum supported SDK version to Flutter 3.44/Dart 3.12. + ## 2.5.14 * Add an `implements` entry to the pubspec to improve discoverability on pub.dev. diff --git a/packages/video_player/README.md b/packages/video_player/README.md index d6d113c26..1b9f4b9e5 100644 --- a/packages/video_player/README.md +++ b/packages/video_player/README.md @@ -14,8 +14,8 @@ This package is not an _endorsed_ implementation of `video_player`. Therefore, y ```yaml dependencies: - video_player: ^2.11.1 - video_player_tizen: ^2.5.14 + video_player: ^2.14.0 + video_player_tizen: ^2.5.15 ``` Then you can import `video_player` in your Dart code: diff --git a/packages/video_player/example/integration_test/video_player_test.dart b/packages/video_player/example/integration_test/video_player_test.dart index 70b4b5785..08ac81cbc 100644 --- a/packages/video_player/example/integration_test/video_player_test.dart +++ b/packages/video_player/example/integration_test/video_player_test.dart @@ -17,8 +17,9 @@ import 'package:video_player/video_player.dart'; const Duration _playDuration = Duration(seconds: 1); // Use WebM for web to allow CI to use Chromium. -const String _videoAssetKey = - kIsWeb ? 'assets/Butterfly-209.webm' : 'assets/Butterfly-209.mp4'; +const String _videoAssetKey = kIsWeb + ? 'assets/Butterfly-209.webm' + : 'assets/Butterfly-209.mp4'; // Returns the URL to load an asset from this example app as a network source. // @@ -217,19 +218,17 @@ void main() { child: Center( child: FutureBuilder( future: started(), - builder: ( - BuildContext context, - AsyncSnapshot snapshot, - ) { - if (snapshot.data ?? false) { - return AspectRatio( - aspectRatio: controller.value.aspectRatio, - child: VideoPlayer(controller), - ); - } else { - return const Text('waiting for video to load'); - } - }, + builder: + (BuildContext context, AsyncSnapshot snapshot) { + if (snapshot.data ?? false) { + return AspectRatio( + aspectRatio: controller.value.aspectRatio, + child: VideoPlayer(controller), + ); + } else { + return const Text('waiting for video to load'); + } + }, ), ), ), diff --git a/packages/video_player/example/lib/main.dart b/packages/video_player/example/lib/main.dart index 1737e622e..08eef8440 100644 --- a/packages/video_player/example/lib/main.dart +++ b/packages/video_player/example/lib/main.dart @@ -304,20 +304,19 @@ class _ControlsOverlay extends StatelessWidget { AnimatedSwitcher( duration: const Duration(milliseconds: 50), reverseDuration: const Duration(milliseconds: 200), - child: - controller.value.isPlaying - ? const SizedBox.shrink() - : const ColoredBox( - color: Colors.black26, - child: Center( - child: Icon( - Icons.play_arrow, - color: Colors.white, - size: 100.0, - semanticLabel: 'Play', - ), + child: controller.value.isPlaying + ? const SizedBox.shrink() + : const ColoredBox( + color: Colors.black26, + child: Center( + child: Icon( + Icons.play_arrow, + color: Colors.white, + size: 100.0, + semanticLabel: 'Play', ), ), + ), ), GestureDetector( onTap: () { diff --git a/packages/video_player/example/pubspec.yaml b/packages/video_player/example/pubspec.yaml index b94315bfa..46f2acfab 100644 --- a/packages/video_player/example/pubspec.yaml +++ b/packages/video_player/example/pubspec.yaml @@ -3,13 +3,13 @@ description: Demonstrates how to use the video_player_tizen plugin. publish_to: "none" environment: - sdk: ^3.7.0 - flutter: ">=3.29.0" + sdk: ^3.12.0 + flutter: ">=3.44.0" dependencies: flutter: sdk: flutter - video_player: ^2.11.1 + video_player: ^2.14.0 video_player_tizen: path: ../ diff --git a/packages/video_player/lib/src/messages.g.dart b/packages/video_player/lib/src/messages.g.dart index 3812b653d..6f1c325f1 100644 --- a/packages/video_player/lib/src/messages.g.dart +++ b/packages/video_player/lib/src/messages.g.dart @@ -262,8 +262,8 @@ class CreateMessage { uri: result[1] as String?, packageName: result[2] as String?, formatHint: result[3] as String?, - httpHeaders: - (result[4] as Map?)!.cast(), + httpHeaders: (result[4] as Map?)! + .cast(), ); } @@ -383,8 +383,9 @@ class TizenVideoPlayerApi { BinaryMessenger? binaryMessenger, String messageChannelSuffix = '', }) : pigeonVar_binaryMessenger = binaryMessenger, - pigeonVar_messageChannelSuffix = - messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty + ? '.$messageChannelSuffix' + : ''; final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); diff --git a/packages/video_player/lib/video_player_tizen.dart b/packages/video_player/lib/video_player_tizen.dart index 251bcac46..cbb7157f9 100644 --- a/packages/video_player/lib/video_player_tizen.dart +++ b/packages/video_player/lib/video_player_tizen.dart @@ -137,10 +137,9 @@ class VideoPlayerTizen extends platform_interface.VideoPlayerPlatform { final List values = map['values'] as List; return platform_interface.VideoEvent( - buffered: - values - .map(_toDurationRange) - .toList(), + buffered: values + .map(_toDurationRange) + .toList(), eventType: platform_interface.VideoEventType.bufferingUpdate, ); case 'bufferingStart': diff --git a/packages/video_player/pubspec.yaml b/packages/video_player/pubspec.yaml index 5d1a346e4..a8c43c422 100644 --- a/packages/video_player/pubspec.yaml +++ b/packages/video_player/pubspec.yaml @@ -2,11 +2,11 @@ name: video_player_tizen description: Tizen implementation of the video_player plugin. homepage: https://github.com/flutter-tizen/plugins repository: https://github.com/flutter-tizen/plugins/tree/main/packages/video_player -version: 2.5.14 +version: 2.5.15 environment: - sdk: ^3.7.0 - flutter: ">=3.29.0" + sdk: ^3.12.0 + flutter: ">=3.44.0" flutter: plugin: @@ -20,7 +20,7 @@ flutter: dependencies: flutter: sdk: flutter - video_player_platform_interface: ^6.6.0 + video_player_platform_interface: ^6.9.0 dev_dependencies: pigeon: ^25.5.0