isSeek true when pausing #1935
Replies: 2 comments
-
Yes the behavior is correct due to this behavior: When you pause alphaTab will actually seek back to the "start" of the current beat. e.g. if you have a full note, and press pause on half of it. the cursor and time jumps back to the start of the full note and it will be played as a whole again.
There is no differenciation "what" triggered a seek. From a player perspective it is simply a seek to a different position. If you share more insights on what you plan to do I might be able to give some better hints how to achieve it. |
Beta Was this translation helpful? Give feedback.
-
I want to detect user is actively seeking and give chosen time in seconds and not when a position change occurs due to pause or score load.
|
Beta Was this translation helpful? Give feedback.
-
Hi,
The isSeek is returning true when pause button is pressed and no actual seeking is done. It also occurs when we first load without any user interaction. Is this behaviour correct?
https://alphatab.net/docs/reference/api/playerpositionchanged#positionchangedeventargs-properties
I also tried to couple it with playerstatechanged to get stopped parameter but didn't help!
My question is how can I only getting if seeking (both while playing or being paused) without pause or score load triggering it initially?
Beta Was this translation helpful? Give feedback.
All reactions