diff --git a/packages/video_player_avplay/CHANGELOG.md b/packages/video_player_avplay/CHANGELOG.md index 0f4efed92..80b1a9fa7 100644 --- a/packages/video_player_avplay/CHANGELOG.md +++ b/packages/video_player_avplay/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.5.4 + +* Fix start position out of range issue. + ## 0.5.3 * Add 'isCompleted' event to 'VideoPlayerEvent'. diff --git a/packages/video_player_avplay/README.md b/packages/video_player_avplay/README.md index 398b509c1..731998300 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.5.3 + video_player_avplay: ^0.5.4 ``` 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 c288963f6..4802d06c7 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.5.3 +version: 0.5.4 environment: sdk: ">=3.1.0 <4.0.0" diff --git a/packages/video_player_avplay/tizen/src/plus_player.cc b/packages/video_player_avplay/tizen/src/plus_player.cc index 3e05cb7c7..6b90e125a 100644 --- a/packages/video_player_avplay/tizen/src/plus_player.cc +++ b/packages/video_player_avplay/tizen/src/plus_player.cc @@ -138,7 +138,7 @@ int64_t PlusPlayer::Create(const std::string &uri, } int64_t start_position = flutter_common::GetValue( - create_message.player_options(), "startPosition", 0); + create_message.player_options(), "startPosition", (int64_t)0); if (start_position > 0) { LOG_INFO("[PlusPlayer] Start position: %lld", start_position); if (!Seek(player_, start_position)) {