From 772e664b20a17af42e05dbe0ea2df9df8b471549 Mon Sep 17 00:00:00 2001 From: xiaowei guan <60122246+xiaowei-guan@users.noreply.github.com> Date: Wed, 17 Jan 2024 19:10:20 +0800 Subject: [PATCH] [video_player_avplay] Fix can not resume issue when re-launch app (#658) --- packages/video_player_avplay/CHANGELOG.md | 6 +++++- packages/video_player_avplay/README.md | 2 +- packages/video_player_avplay/pubspec.yaml | 2 +- packages/video_player_avplay/tizen/src/media_player.cc | 3 --- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/packages/video_player_avplay/CHANGELOG.md b/packages/video_player_avplay/CHANGELOG.md index 4eb3a1a8c..dabf608b1 100644 --- a/packages/video_player_avplay/CHANGELOG.md +++ b/packages/video_player_avplay/CHANGELOG.md @@ -1,6 +1,10 @@ +## 0.2.2 + +* Fix can not resume issue when re-launch app. + ## 0.2.1 -* Replace g_idle_add with ecore_pipe +* Replace g_idle_add with ecore_pipe. ## 0.2.0 diff --git a/packages/video_player_avplay/README.md b/packages/video_player_avplay/README.md index 4fa2d5ecd..30dd2120d 100644 --- a/packages/video_player_avplay/README.md +++ b/packages/video_player_avplay/README.md @@ -12,7 +12,7 @@ To use this package, add `video_player_avplay` as a dependency in your `pubspec. ```yaml dependencies: - video_player_avplay: ^0.2.1 + video_player_avplay: ^0.2.2 ``` Then you can import `video_player_avplay` in your Dart code: diff --git a/packages/video_player_avplay/pubspec.yaml b/packages/video_player_avplay/pubspec.yaml index 98cbf7153..55103f0e0 100644 --- a/packages/video_player_avplay/pubspec.yaml +++ b/packages/video_player_avplay/pubspec.yaml @@ -2,7 +2,7 @@ name: video_player_avplay description: Flutter plugin for displaying inline video on Tizen TV devices. homepage: https://github.com/flutter-tizen/plugins repository: https://github.com/flutter-tizen/plugins/tree/master/packages/video_player_avplay -version: 0.2.1 +version: 0.2.2 environment: sdk: ">=2.18.0 <4.0.0" diff --git a/packages/video_player_avplay/tizen/src/media_player.cc b/packages/video_player_avplay/tizen/src/media_player.cc index 6022136a6..e29354861 100644 --- a/packages/video_player_avplay/tizen/src/media_player.cc +++ b/packages/video_player_avplay/tizen/src/media_player.cc @@ -680,9 +680,6 @@ void MediaPlayer::OnPlayCompleted(void *user_data) { void MediaPlayer::OnInterrupted(player_interrupted_code_e code, void *user_data) { LOG_ERROR("[MediaPlayer] Interrupt code: %d.", code); - - MediaPlayer *self = static_cast(user_data); - self->SendError("Interrupted error", "Media player has been interrupted."); } void MediaPlayer::OnError(int error_code, void *user_data) {