Skip to content

Commit 6bb6514

Browse files
committed
Make startPosition support int32_t
1 parent dd8242e commit 6bb6514

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/video_player_avplay/tizen/src/plus_player.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,10 @@ int64_t PlusPlayer::Create(const std::string &uri,
139139

140140
int64_t start_position = flutter_common::GetValue(
141141
create_message.player_options(), "startPosition", (int64_t)0);
142+
if (start_position == 0) {
143+
start_position = flutter_common::GetValue(create_message.player_options(),
144+
"startPosition", (int32_t)0);
145+
}
142146
if (start_position > 0) {
143147
LOG_INFO("[PlusPlayer] Start position: %lld", start_position);
144148
if (!Seek(player_, start_position)) {

0 commit comments

Comments
 (0)