Skip to content

Commit ac6b72d

Browse files
authored
[video_player] Fix app crash issue (#875)
1 parent d46aff5 commit ac6b72d

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

packages/video_player/CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
## NEXT
1+
## 2.5.6
22

33
* Update code format.
4+
* Fix app crash issue when fail to seek.
45

56
## 2.5.5
67

packages/video_player/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ This package is not an _endorsed_ implementation of `video_player`. Therefore, y
1515
```yaml
1616
dependencies:
1717
video_player: ^2.9.2
18-
video_player_tizen: ^2.5.5
18+
video_player_tizen: ^2.5.6
1919
```
2020
2121
Then you can import `video_player` in your Dart code:

packages/video_player/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: video_player_tizen
22
description: Tizen implementation of the video_player plugin.
33
homepage: https://github.com/flutter-tizen/plugins
44
repository: https://github.com/flutter-tizen/plugins/tree/master/packages/video_player
5-
version: 2.5.5
5+
version: 2.5.6
66

77
environment:
88
sdk: ">=3.3.0 <4.0.0"

packages/video_player/tizen/src/video_player.cc

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,12 @@ void VideoPlayer::OnPlayCompleted(void *data) {
582582
};
583583
player->PushEvent(flutter::EncodableValue(result));
584584

585-
player->Pause();
585+
try {
586+
player->Pause();
587+
} catch (const VideoPlayerError &error) {
588+
LOG_ERROR("[VideoPlayer] Error code: %s, Error message: %s",
589+
error.code().c_str(), error.message().c_str());
590+
}
586591
}
587592

588593
void VideoPlayer::OnInterrupted(player_interrupted_code_e code, void *data) {

0 commit comments

Comments
 (0)