{"action":"created","issue":{"url":"https://api.github.com/repos/clappr/clappr/issues/956","repository_url":"https://api.github.com/repos/clappr/clappr","labels_url":"https://api.github.com/repos/clappr/clappr/issues/956/labels{/name}","comments_url":"https://api.github.com/repos/clappr/clappr/issues/956/comments","events_url":"https://api.github.com/repos/clappr/clappr/issues/956/events","html_url":"https://github.com/clappr/clappr/issues/956","id":149781413,"number":956,"title":"Play past end when using HLS","user":{"login":"kolpax","id":3372392,"avatar_url":"https://avatars.githubusercontent.com/u/3372392?v=3","gravatar_id":"","url":"https://api.github.com/users/kolpax","html_url":"https://github.com/kolpax","followers_url":"https://api.github.com/users/kolpax/followers","following_url":"https://api.github.com/users/kolpax/following{/other_user}","gists_url":"https://api.github.com/users/kolpax/gists{/gist_id}","starred_url":"https://api.github.com/users/kolpax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kolpax/subscriptions","organizations_url":"https://api.github.com/users/kolpax/orgs","repos_url":"https://api.github.com/users/kolpax/repos","events_url":"https://api.github.com/users/kolpax/events{/privacy}","received_events_url":"https://api.github.com/users/kolpax/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2016-04-20T14:18:47Z","updated_at":"2016-04-20T15:12:27Z","closed_at":null,"body":"When playing HLS and there is a drift between the playlist and the information in the TS files, the player can end up playing past the total duration.\r\n\r\nClappr uses the video elements to determine the current time, but HLS for determining the duration. HLS.JS internally uses the m3u8 playlist for duration, while the video element uses the last fragments PTS.\r\n\r\nNormally the drift can be quite small, but it's problematic for us as we are writing a frame-accurate player."},"comment":{"url":"https://api.github.com/repos/clappr/clappr/issues/comments/212470645","html_url":"https://github.com/clappr/clappr/issues/956#issuecomment-212470645","issue_url":"https://api.github.com/repos/clappr/clappr/issues/956","id":212470645,"user":{"login":"bikegriffith","id":167782,"avatar_url":"https://avatars.githubusercontent.com/u/167782?v=3","gravatar_id":"","url":"https://api.github.com/users/bikegriffith","html_url":"https://github.com/bikegriffith","followers_url":"https://api.github.com/users/bikegriffith/followers","following_url":"https://api.github.com/users/bikegriffith/following{/other_user}","gists_url":"https://api.github.com/users/bikegriffith/gists{/gist_id}","starred_url":"https://api.github.com/users/bikegriffith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bikegriffith/subscriptions","organizations_url":"https://api.github.com/users/bikegriffith/orgs","repos_url":"https://api.github.com/users/bikegriffith/repos","events_url":"https://api.github.com/users/bikegriffith/events{/privacy}","received_events_url":"https://api.github.com/users/bikegriffith/received_events","type":"User","site_admin":false},"created_at":"2016-04-20T15:12:27Z","updated_at":"2016-04-20T15:12:27Z","body":"We're noticing other issues with hls.js relying on the m3u8 for segment times. Perhaps it's worth taking it up there to consider using the .ts timestamps rather than m3u8.  It's worth noting however that the HLS spec does suggest the m3u8 timestamps on the EXTINF should be accurate."}}