{"action":"created","issue":{"url":"https://api.github.com/repos/Dash-Industry-Forum/dash.js/issues/1258","repository_url":"https://api.github.com/repos/Dash-Industry-Forum/dash.js","labels_url":"https://api.github.com/repos/Dash-Industry-Forum/dash.js/issues/1258/labels{/name}","comments_url":"https://api.github.com/repos/Dash-Industry-Forum/dash.js/issues/1258/comments","events_url":"https://api.github.com/repos/Dash-Industry-Forum/dash.js/issues/1258/events","html_url":"https://github.com/Dash-Industry-Forum/dash.js/issues/1258","id":141830339,"number":1258,"title":"Playing unexpectedly stops before end","user":{"login":"theifish","id":2760890,"avatar_url":"https://avatars.githubusercontent.com/u/2760890?v=3","gravatar_id":"","url":"https://api.github.com/users/theifish","html_url":"https://github.com/theifish","followers_url":"https://api.github.com/users/theifish/followers","following_url":"https://api.github.com/users/theifish/following{/other_user}","gists_url":"https://api.github.com/users/theifish/gists{/gist_id}","starred_url":"https://api.github.com/users/theifish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theifish/subscriptions","organizations_url":"https://api.github.com/users/theifish/orgs","repos_url":"https://api.github.com/users/theifish/repos","events_url":"https://api.github.com/users/theifish/events{/privacy}","received_events_url":"https://api.github.com/users/theifish/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Dash-Industry-Forum/dash.js/labels/Bug","name":"Bug","color":"fc2929"},{"url":"https://api.github.com/repos/Dash-Industry-Forum/dash.js/labels/Investigate","name":"Investigate","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-03-18T10:35:39Z","updated_at":"2016-04-11T11:39:45Z","closed_at":null,"body":"I'm trying to implement mpeg-dash support in my player with Dash.js library, it works well, however, sometimes it stops playing unexpectedly on 5-15 seconds before end (number of seconds ranges randomly).\r\nMediaPlayer has default settings, nothing were changed.\r\n\r\nI have no idea what to do with it. See logs attached.\r\n\r\n[dash-log.txt](https://github.com/Dash-Industry-Forum/dash.js/files/179449/dash-log.txt)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Dash-Industry-Forum/dash.js/issues/comments/208300998","html_url":"https://github.com/Dash-Industry-Forum/dash.js/issues/1258#issuecomment-208300998","issue_url":"https://api.github.com/repos/Dash-Industry-Forum/dash.js/issues/1258","id":208300998,"user":{"login":"simonegymondo","id":16120643,"avatar_url":"https://avatars.githubusercontent.com/u/16120643?v=3","gravatar_id":"","url":"https://api.github.com/users/simonegymondo","html_url":"https://github.com/simonegymondo","followers_url":"https://api.github.com/users/simonegymondo/followers","following_url":"https://api.github.com/users/simonegymondo/following{/other_user}","gists_url":"https://api.github.com/users/simonegymondo/gists{/gist_id}","starred_url":"https://api.github.com/users/simonegymondo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simonegymondo/subscriptions","organizations_url":"https://api.github.com/users/simonegymondo/orgs","repos_url":"https://api.github.com/users/simonegymondo/repos","events_url":"https://api.github.com/users/simonegymondo/events{/privacy}","received_events_url":"https://api.github.com/users/simonegymondo/received_events","type":"User","site_admin":false},"created_at":"2016-04-11T11:39:45Z","updated_at":"2016-04-11T11:39:45Z","body":"I have the same issue and it is easily reproduceble but hard to explain how. It is somehow sporadic but I can provide one way to do make it happen\r\n\r\n1. Go here: http://dashif.org/reference/players/javascript/v2.0.0/samples/dash-if-reference-player/index.html\r\n\r\n2. Play the following file: //dash.edgesuite.net/dash264/TestCasesHD/2a/qualcomm/1/MultiResMPEG2.mpd\r\n\r\n3. Seek to about 15% of the video\r\n4. Seek again to 20%\r\n5. Seek to about 15 seconds before the end.\r\n6. Let it run\r\n\r\nObserved: \r\n- Video gets stuck 4 seconds before the end, at 10.51. (10.54 is the total length)\r\n- No more actions are possible. \r\n- End video trigger is not sent\r\n\r\nReproduceble: Tends to be sporadic but 100% reproduceble if seeking around the middle of the video as decribed.\r\n\r\nBelow the last lines of the logs:\r\n\r\nDebug.js:108 [14436] Getting the request for video time : 652 \r\nDebug.js:108 [14436] Index for video time 652 is 325 \r\nDebug.js:108[14436] SegmentBase: 650 / 654 \r\nDebug.js:108[14437] Getting the next request at index: 326 \r\nDebug.js:108[14437] SegmentBase: 652 / 654 \r\nDebug.js:108[14451] loaded video:MediaSegment:652 (206, 10ms, 1ms) \r\nDebug.js:108[14475] Buffered Range: 0 - 39.999999 \r\nDebug.js:108[14475] Buffered Range: 100 - 111.999999 \r\nDebug.js:108[14475] Buffered Range: 178 - 183.999999 \r\nDebug.js:108[14475] Buffered Range: 640 - 651.999999 \r\nDebug.js:108[14476] Getting the request for video time : 654 \r\nDebug.js:108[14476] Index for video time 654 is 326 \r\nDebug.js:108[14476] SegmentBase: 652 / 654 \r\nDebug.js:108[14476] Getting the next request at index: 327 \r\nDebug.js:108[14476] Signal complete. \r\nDebug.js:108[14479] Stream is complete \r\nDebug.js:108[23759] Stalling Buffer \r\nDebug.js:108[23759] Waiting for more buffer before starting playback. \r\nDebug.js:108[23770] Native video element event: ratechange:  0 \r\n"}}