{"action":"created","issue":{"url":"https://api.github.com/repos/dailymotion/hls.js/issues/711","repository_url":"https://api.github.com/repos/dailymotion/hls.js","labels_url":"https://api.github.com/repos/dailymotion/hls.js/issues/711/labels{/name}","comments_url":"https://api.github.com/repos/dailymotion/hls.js/issues/711/comments","events_url":"https://api.github.com/repos/dailymotion/hls.js/issues/711/events","html_url":"https://github.com/dailymotion/hls.js/issues/711","id":180443479,"number":711,"title":"Setting video.currentTime in firefox throws undefined exception - didn't use to occur in previous versions","user":{"login":"momomo","id":9274346,"avatar_url":"https://avatars.githubusercontent.com/u/9274346?v=3","gravatar_id":"","url":"https://api.github.com/users/momomo","html_url":"https://github.com/momomo","followers_url":"https://api.github.com/users/momomo/followers","following_url":"https://api.github.com/users/momomo/following{/other_user}","gists_url":"https://api.github.com/users/momomo/gists{/gist_id}","starred_url":"https://api.github.com/users/momomo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/momomo/subscriptions","organizations_url":"https://api.github.com/users/momomo/orgs","repos_url":"https://api.github.com/users/momomo/repos","events_url":"https://api.github.com/users/momomo/events{/privacy}","received_events_url":"https://api.github.com/users/momomo/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-10-01T07:23:52Z","updated_at":"2016-10-03T12:50:37Z","closed_at":"2016-10-03T08:31:29Z","body":"hls.on(...MANIFEST_PARSED, function (event, data) {\r\n\r\n\t\t\t\tclearInterval(intervalCode);\r\n\t\t\t\tintervalCode = setInterval(function() {\r\n\t\t\t\t\tvar duration = video.duration;\r\n\t\t\t\t\tif ( duration != null && !isNaN(duration) ) {\r\n\r\n                                                 /// Error here! Didn't use to occur in previous hls version, have verified. \r\n\t\t\t\t\t\tvideo.currentTime = 20;\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\tclearInterval(intervalCode);\r\n\t\t\t\t\t} \r\n\t\t\t\t}, 2);\r\n\t\t\t});"},"comment":{"url":"https://api.github.com/repos/dailymotion/hls.js/issues/comments/251097620","html_url":"https://github.com/dailymotion/hls.js/issues/711#issuecomment-251097620","issue_url":"https://api.github.com/repos/dailymotion/hls.js/issues/711","id":251097620,"user":{"login":"momomo","id":9274346,"avatar_url":"https://avatars.githubusercontent.com/u/9274346?v=3","gravatar_id":"","url":"https://api.github.com/users/momomo","html_url":"https://github.com/momomo","followers_url":"https://api.github.com/users/momomo/followers","following_url":"https://api.github.com/users/momomo/following{/other_user}","gists_url":"https://api.github.com/users/momomo/gists{/gist_id}","starred_url":"https://api.github.com/users/momomo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/momomo/subscriptions","organizations_url":"https://api.github.com/users/momomo/orgs","repos_url":"https://api.github.com/users/momomo/repos","events_url":"https://api.github.com/users/momomo/events{/privacy}","received_events_url":"https://api.github.com/users/momomo/received_events","type":"User","site_admin":false},"created_at":"2016-10-03T12:50:37Z","updated_at":"2016-10-03T12:50:37Z","body":"@mangui Ok, thanks for the tip. Done. \r\n\r\n               var seekTo = 2 * Math.ceil( (hls_time)/1000 );\r\n\t\tfunction seek() {\r\n\t\t\tconsole.log('seek')\r\n\t\t\tvar duration = video.duration;\r\n\t\t\tif ( Player.video.readyState > 0 && duration != null && !isNaN(duration) ) {\r\n\t\t\t\tclearInterval(intervalCode);\r\n\t\t\t\tvar to = Math.max(0, Math.floor(duration - seekTo) );\r\n\t\t\t\tvideo.currentTime = to;\r\n\t\t\t\t\r\n\t\t\t\tvideo.removeEventListener('loadedmetadata', seek);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tvideo.addEventListener('loadedmetadata', seek);\r\n\r\nHowever, the error still occurs on the new version, but not on the old one. Something has changed to make this happen. \r\n\r\nTicket should re open. \r\n\r\nThe only reason i am updating the code is because of stupidity. Too much wasted time when everything was working before, but perhaps there was some improvements, especially on edge, where the player does not behave perfectly, neither the old or the new one does. "}}
{"actor":{"display_login":"momomo"}}