From 47e2a2973dbcb7ad8c65cd9204c961714cd0d4c6 Mon Sep 17 00:00:00 2001 From: xiaowei guan Date: Tue, 16 Jan 2024 16:24:36 +0800 Subject: [PATCH 1/2] Fix can not resume issue when re-launch app Do not need send error message when receive OnInterrupted callback, because MM player can recover on its own. --- packages/video_player_avplay/tizen/src/media_player.cc | 3 --- 1 file changed, 3 deletions(-) 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) { From a7914b4eb90d8233733d038b9a452beb5a54ac89 Mon Sep 17 00:00:00 2001 From: xiaowei guan Date: Tue, 16 Jan 2024 16:41:26 +0800 Subject: [PATCH 2/2] Version up --- packages/video_player_avplay/CHANGELOG.md | 6 +++++- packages/video_player_avplay/README.md | 2 +- packages/video_player_avplay/pubspec.yaml | 2 +- 3 files changed, 7 insertions(+), 3 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"