{"action":"created","issue":{"url":"https://api.github.com/repos/videojs/video.js/issues/2985","repository_url":"https://api.github.com/repos/videojs/video.js","labels_url":"https://api.github.com/repos/videojs/video.js/issues/2985/labels{/name}","comments_url":"https://api.github.com/repos/videojs/video.js/issues/2985/comments","events_url":"https://api.github.com/repos/videojs/video.js/issues/2985/events","html_url":"https://github.com/videojs/video.js/pull/2985","id":125589233,"number":2985,"title":"Change manual timeUpdate event timing function to be fired more often","user":{"login":"Naouak","id":150214,"avatar_url":"https://avatars.githubusercontent.com/u/150214?v=3","gravatar_id":"","url":"https://api.github.com/users/Naouak","html_url":"https://github.com/Naouak","followers_url":"https://api.github.com/users/Naouak/followers","following_url":"https://api.github.com/users/Naouak/following{/other_user}","gists_url":"https://api.github.com/users/Naouak/gists{/gist_id}","starred_url":"https://api.github.com/users/Naouak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Naouak/subscriptions","organizations_url":"https://api.github.com/users/Naouak/orgs","repos_url":"https://api.github.com/users/Naouak/repos","events_url":"https://api.github.com/users/Naouak/events{/privacy}","received_events_url":"https://api.github.com/users/Naouak/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/videojs/video.js/labels/minor","name":"minor","color":"009800"},{"url":"https://api.github.com/repos/videojs/video.js/labels/needs:%20LGTM","name":"needs: LGTM","color":"207de5"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-01-08T11:05:25Z","updated_at":"2016-02-04T16:10:14Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/videojs/video.js/pulls/2985","html_url":"https://github.com/videojs/video.js/pull/2985","diff_url":"https://github.com/videojs/video.js/pull/2985.diff","patch_url":"https://github.com/videojs/video.js/pull/2985.patch"},"body":"Timeupdate event now use requestAnimationFrame with fallback to setTimeout to get call more often and to permit subtitles to have a better synchronization.\r\n\r\nFix #2979"},"comment":{"url":"https://api.github.com/repos/videojs/video.js/issues/comments/179921210","html_url":"https://github.com/videojs/video.js/pull/2985#issuecomment-179921210","issue_url":"https://api.github.com/repos/videojs/video.js/issues/2985","id":179921210,"user":{"login":"Naouak","id":150214,"avatar_url":"https://avatars.githubusercontent.com/u/150214?v=3","gravatar_id":"","url":"https://api.github.com/users/Naouak","html_url":"https://github.com/Naouak","followers_url":"https://api.github.com/users/Naouak/followers","following_url":"https://api.github.com/users/Naouak/following{/other_user}","gists_url":"https://api.github.com/users/Naouak/gists{/gist_id}","starred_url":"https://api.github.com/users/Naouak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Naouak/subscriptions","organizations_url":"https://api.github.com/users/Naouak/orgs","repos_url":"https://api.github.com/users/Naouak/repos","events_url":"https://api.github.com/users/Naouak/events{/privacy}","received_events_url":"https://api.github.com/users/Naouak/received_events","type":"User","site_admin":false},"created_at":"2016-02-04T16:10:14Z","updated_at":"2016-02-04T16:10:14Z","body":"I understand your point @dmlap but I don't think it is an issue. \r\n\r\n`requestAnimationFrame` is not time based but performance based. You have to actively ask for next animation frame to get you callback called. If you have a handler of timeupdate event that is slow, you will fire timeupdate less often because you called requestAnimationFrame too late.\r\n\r\nBasically, if your timeupdate handler is taking 250ms, you will get 4 call of requestAnimationFrame per second at most. If your timeupdate handler is fast, you will get as much as your screen refresh rate per second (60hz in most case). It is like the note you linked asked.\r\n\r\n"}}