Skip to content

[video_player] Calling seekTo with _controller.value.position may result in a different frame in the video #116056

@YohanWadia

Description

@YohanWadia

Expected results:
The position you get from the controller should be absolute and not wrong. When I checked the position with VLC/WindowsMovieMaker/otherAudioPlayers... its not the same. INFACT when i enter the same position in the _controller.seekTo command... I once again get another position!

Actual results:
When you click on the FAB (in the official example) and pause the video... and you call _controller.value.position.inMilliseconds to get the postion... you get that answer in milliseconds... lets say "x"
Now if you enter that same number in _controller.seekTo( Duration(milliseconds: x)).... you will get a totally different position!?!

So is there way to get the actual non erroneous position... or may be the frameNumber?
Im working in Flutter 3.3
video_player: ^2.4.8
and platform is WEB,
running it on chrome

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listfound in release: 3.3Found to occur in 3.3found in release: 3.7Found to occur in 3.7has reproducible stepsThe issue has been confirmed reproducible and is ready to work onp: video_playerThe Video Player pluginpackageflutter/packages repository. See also p: labels.team-ecosystemOwned by Ecosystem teamtriaged-ecosystemTriaged by Ecosystem team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions