Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[video_player_avplay] Add start position in player options when creating player #759

Merged
merged 2 commits into from
Nov 1, 2024

Conversation

xiaowei-guan
Copy link
Contributor

Add start position in player options when creating player,this is useful for resuming playback from last viewed position.
code sample:

    _controller = VideoPlayerController.network(
        'https://media.w3.org/2010/05/bunny/trailer.mp4',
         // startPosition in millisecond
        playerOptions: {'startPosition': 10 * 1000});

Copy link
Member

@JSUYA JSUYA left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems that the condition of the state calling the Seek() API could be kIdle or higher. The state condition of SeekTo() could also be modified to avoid confusion.

packages/video_player_avplay/tizen/src/plus_player.cc Outdated Show resolved Hide resolved
@xiaowei-guan xiaowei-guan merged commit 5fbf478 into flutter-tizen:master Nov 1, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants