Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[video_player] Add seekToDefaultPosition to api #168097

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

Open
mx1up opened this issue Apr 30, 2025 · 0 comments · May be fixed by flutter/packages#9181
Open

[video_player] Add seekToDefaultPosition to api #168097

mx1up opened this issue Apr 30, 2025 · 0 comments · May be fixed by flutter/packages#9181
Labels
c: new feature Nothing broken; request for a new capability c: proposal A detailed proposal for a change to Flutter p: video_player The Video Player plugin P3 Issues that are less important to the Flutter project package flutter/packages repository. See also p: labels. team-ecosystem Owned by Ecosystem team triaged-ecosystem Triaged by Ecosystem team

Comments

@mx1up
Copy link
Contributor

mx1up commented Apr 30, 2025

Use case

the video_player package currently only exposes seekTo but not seekToDefaultPosition. The latter is useful in the context of live streams where you want to return to the "live edge".

from the docs:

/// Seeks to the default position associated with the current MediaItem. 
  /// 
  /// The position can depend on the type of media being played. 
  /// For live streams it will typically be the live edge. 
  /// For other streams it will typically be the start.

I have implemented this in the following PR: flutter/packages!9181

Proposal

extend the api to support this function

@mx1up mx1up changed the title Add seekToDefaultPosition to api [video_player] Add seekToDefaultPosition to api Apr 30, 2025
@mx1up mx1up linked a pull request Apr 30, 2025 that will close this issue
11 tasks
@darshankawar darshankawar added in triage Presently being triaged by the triage team c: new feature Nothing broken; request for a new capability p: video_player The Video Player plugin package flutter/packages repository. See also p: labels. c: proposal A detailed proposal for a change to Flutter team-ecosystem Owned by Ecosystem team and removed in triage Presently being triaged by the triage team labels May 2, 2025
@stuartmorgan-g stuartmorgan-g added P3 Issues that are less important to the Flutter project triaged-ecosystem Triaged by Ecosystem team labels May 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: new feature Nothing broken; request for a new capability c: proposal A detailed proposal for a change to Flutter p: video_player The Video Player plugin P3 Issues that are less important to the Flutter project package flutter/packages repository. See also p: labels. team-ecosystem Owned by Ecosystem team triaged-ecosystem Triaged by Ecosystem team
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants