Skip to content

Position after paused callback and prior to other actions #325

@pfaffinger

Description

@pfaffinger

Hello,

How does the player behave in the following scenario?
I have loaded an MJPEG video and it is playing. I set the status to paused via the player and wait for the status change to be completed via callback. In the callback itself, I read the current position (time) in the video. If I then execute a seek(1, SeekFlag::FromNow | SeekFlag::Frame, seekFinishedCallback), the video jumps forward by 2 frames for the most part; with a seek(-1, SeekFlag::FromNow | SeekFlag::Frame, seekFinishedCallback), usually no seek is executed at all.

When reading out the position before the seek call (Step Forward/Backward), it is noticeable that the reported position does not correspond to the position after the paused callback, but normally reflects a later point in time and therefore the seek calls are not appropriate.

Is there a reason for this and how can it be avoided? Why does the player return a different time in the paused callback than later on?

Greets Markus

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions