Skip to content

Commit

Permalink
Fix start position out of range issue
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaowei-guan committed Nov 12, 2024
1 parent 21068ea commit e2cf612
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions packages/video_player_avplay/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.5.4

* Fix start position out of range issue.

## 0.5.3

* Add 'isCompleted' event to 'VideoPlayerEvent'.
Expand Down
2 changes: 1 addition & 1 deletion packages/video_player_avplay/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion packages/video_player_avplay/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion packages/video_player_avplay/tizen/src/plus_player.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit e2cf612

Please sign in to comment.