You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In HTML5 and JavaScript’s DOM, there is the HTMLMediaElement with its currentTime property, which we use to seek forward, backward, and to individual positions. That property supports a higher precision than this project currently makes use of in the web editor.
In effect, we could more or less seek to any individual frame, and support moving forward or backward by single frames in the web editor.
The problem is that we won’t know the frame rate of a video being played. At least not automatically, i.e. we’re not able to detect it from code. So we either have to explicitly ask the user for the rate to use, or hard-code the frame rate to a fixed (and common) value, or offer a variety of frame rates to choose from.
Apart from that, the latest Firefox seems to limit the precision of HTMLMediaElement.currentTime to 2 milliseconds. But that’s still pretty useful and allows us to seek by 1 or 2 individual frames. Other browsers may still support a higher precision (or, if we’re unlucky, an even lower one).
The text was updated successfully, but these errors were encountered:
In HTML5 and JavaScript’s DOM, there is the
HTMLMediaElement
with itscurrentTime
property, which we use to seek forward, backward, and to individual positions. That property supports a higher precision than this project currently makes use of in the web editor.In effect, we could more or less seek to any individual frame, and support moving forward or backward by single frames in the web editor.
The problem is that we won’t know the frame rate of a video being played. At least not automatically, i.e. we’re not able to detect it from code. So we either have to explicitly ask the user for the rate to use, or hard-code the frame rate to a fixed (and common) value, or offer a variety of frame rates to choose from.
Apart from that, the latest Firefox seems to limit the precision of
HTMLMediaElement.currentTime
to 2 milliseconds. But that’s still pretty useful and allows us to seek by 1 or 2 individual frames. Other browsers may still support a higher precision (or, if we’re unlucky, an even lower one).The text was updated successfully, but these errors were encountered: