How does Apple make html5 video play on it a new mac pro instructions page?

On the page are all new pages for familiarizing yourself with the macro , when you click these dots left up and up one after another, the video plays in the opposite direction, too. But Chrome or Firefox do not support the negative playbackRate property, and there seems to be no other back-recorded video.

+4
source share
1 answer

I found a solution last night.

var video = document.getElementByID("video");
video.currentTime = 10;
video.pause();
function reverse() {
    video.currentTime -= 0.01;
    setInterval(reverse,10);
}
+6
source

Source: https://habr.com/ru/post/1534272/


All Articles