Dragging the zoomview during playback is hectic#25
Conversation
|
I just notice the same thing. Is there going to be a fix for this soon? Thanks. |
|
Well, dragging the zoomview 1) seeks on click 2) then moves the zoomview without changing the playhead position. Is it a problem? Whereas the fact it's not in sync anymore, that is a problem for sure. |
|
The problem is that the audio is not in sync with the playhead in the zoom view anymore, so that if people want to annotate a segment in detail they can easily get confused by it. Yes, it is reproducible in that site. |
|
It probably needs an update of 1 or 2 lines of code on the dragging mouse release event to do what the click does but I am just guessing. |
|
Is this something that will be fixed soon? I would say it's a relatively important bug, since people who would like to annotate an audio signal might get quite confused with it. If it's not going to be fixed soon, could somebody point me to the code part that should be changed? Thanks! |
|
@urinieto @martybalandis hey, "soon" is going to be defined: depending how long it takes to fix it I might sort it out tonight or in the train on monday morning. Next week I'm quite busy in team discovery so I can't guaranty finding the time to address this issue. If you find any way to solve the problem meanwhile, address a pull request. It's not a problem if it's not perfect as long as it solves the problem. |
|
Okay so I had a look. I'm not sure to understand the problem: what you explain is the intended behaviour.
However when you do that while playing, it just confuses everything. Is that the problem? If not, don't hesitate to make a screencast with LICEcap or something like that to share it in this issue. |
|
Yes, the problem is that the audio that you hear and the playhead are not synchronized. You might be listening to silence but you can see how the playhead in he zoom view is going through some waves that should be audible. |
|
When you press stop, and play again, the problem is solved. |
|
So we have two things:
I guess there are some race conditions because offset and playhead values are updated from two different ways (by the user and the audio element) which causes this behaviour. My bet is to make the playhead move only on mouse up, if it's not happening after a drag. |
|
That would be ideal. But I wouldn't care about 1 or 2 as long as the playhead is always located in the right place. |
|
Okay I checked a little bit this morning and it's not that trivial. When the media element is not playing, that's easy to do. It's rather when it's playing that things starts to become harder. The playhead needs to keep in sync with the offset in the animation loop. It requires a bit of work and I'll check that monday morning. |
|
Thanks a lot man, I really appreciate your help. On Sat, Feb 15, 2014 at 9:09 AM, Thomas Parisot notifications@github.comwrote:
|
And only if the user was not dragging.
- fixed playhead pixel display after dragging with no playback and no seeking
And thinking to have that "per view".
Basically: - playhead position is calculated anyway, displaying it or hiding it if necessary - `newFrame` calculation is going to be performed on playback heartbeat rather than on playhead progress
|
Hey guys, so I made a couple of tweaks:
It's time to checkout the branch and provide your feedbacks now :-) |
|
This is great, this totally fixes the issue. Thanks a lot! I have another related request (I wouldn't call it a bug though):
Do you think this behavior would be better? If so, would it be a hard modification to make? Thanks a lot for your help! |
|
Yes I was considering that change. It makes sense from the overview but not when you remain in the same area of the zoom view. I'll open another issue to state that intent. |
Dragging zoomview bug (low priority)
|
Awesome. Thanks again! |
Seeking while dragging doesn't seem to work unless you click on it. If you drag the zoomview the overview and zoomview highlighting don't match anymore until you click on it again.