{"action":"created","issue":{"url":"https://api.github.com/repos/google/shaka-player/issues/440","repository_url":"https://api.github.com/repos/google/shaka-player","labels_url":"https://api.github.com/repos/google/shaka-player/issues/440/labels{/name}","comments_url":"https://api.github.com/repos/google/shaka-player/issues/440/comments","events_url":"https://api.github.com/repos/google/shaka-player/issues/440/events","html_url":"https://github.com/google/shaka-player/issues/440","id":164609376,"number":440,"title":"Invalid state on MediaSource.endOfStream internal call is causing general exception","user":{"login":"Ross-cz","id":964802,"avatar_url":"https://avatars.githubusercontent.com/u/964802?v=3","gravatar_id":"","url":"https://api.github.com/users/Ross-cz","html_url":"https://github.com/Ross-cz","followers_url":"https://api.github.com/users/Ross-cz/followers","following_url":"https://api.github.com/users/Ross-cz/following{/other_user}","gists_url":"https://api.github.com/users/Ross-cz/gists{/gist_id}","starred_url":"https://api.github.com/users/Ross-cz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ross-cz/subscriptions","organizations_url":"https://api.github.com/users/Ross-cz/orgs","repos_url":"https://api.github.com/users/Ross-cz/repos","events_url":"https://api.github.com/users/Ross-cz/events{/privacy}","received_events_url":"https://api.github.com/users/Ross-cz/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/google/shaka-player/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":{"login":"joeyparrish","id":6843156,"avatar_url":"https://avatars.githubusercontent.com/u/6843156?v=3","gravatar_id":"","url":"https://api.github.com/users/joeyparrish","html_url":"https://github.com/joeyparrish","followers_url":"https://api.github.com/users/joeyparrish/followers","following_url":"https://api.github.com/users/joeyparrish/following{/other_user}","gists_url":"https://api.github.com/users/joeyparrish/gists{/gist_id}","starred_url":"https://api.github.com/users/joeyparrish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joeyparrish/subscriptions","organizations_url":"https://api.github.com/users/joeyparrish/orgs","repos_url":"https://api.github.com/users/joeyparrish/repos","events_url":"https://api.github.com/users/joeyparrish/events{/privacy}","received_events_url":"https://api.github.com/users/joeyparrish/received_events","type":"User","site_admin":false},"assignees":[{"login":"joeyparrish","id":6843156,"avatar_url":"https://avatars.githubusercontent.com/u/6843156?v=3","gravatar_id":"","url":"https://api.github.com/users/joeyparrish","html_url":"https://github.com/joeyparrish","followers_url":"https://api.github.com/users/joeyparrish/followers","following_url":"https://api.github.com/users/joeyparrish/following{/other_user}","gists_url":"https://api.github.com/users/joeyparrish/gists{/gist_id}","starred_url":"https://api.github.com/users/joeyparrish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joeyparrish/subscriptions","organizations_url":"https://api.github.com/users/joeyparrish/orgs","repos_url":"https://api.github.com/users/joeyparrish/repos","events_url":"https://api.github.com/users/joeyparrish/events{/privacy}","received_events_url":"https://api.github.com/users/joeyparrish/received_events","type":"User","site_admin":false}],"milestone":null,"comments":5,"created_at":"2016-07-08T20:23:58Z","updated_at":"2016-07-09T17:29:25Z","closed_at":null,"body":"Hi guys,\r\n\r\nI get sometimes general DOMException, when I seek to the end:\r\nError category: 3, code: 3015\r\nData: \r\nDOMException: Failed to execute 'endOfStream' on 'MediaSource': The MediaSource's readyState is not 'open'. at Error (native) at .<anonymous>\r\nStack trace:\r\n(anonymous function) (VM136975 bundle.js:24286)\r\n(anonymous function) (VM136975 bundle.js:24356)\r\nPromise.resolve (async)\r\nshaka.media.MediaSourceEngine.enqueueBlockingOperation_ ()\r\nshaka.media.MediaSourceEngine.endOfStream ()\r\nshaka.media.StreamingEngine.onUpdate_ ()\r\nsetTimeout (async)\r\nshaka.media.StreamingEngine.scheduleUpdate_ ()\r\nshaka.media.StreamingEngine.seeked ()\r\nshaka.Player.onSeek_ ()\r\nshaka.media.Playhead.onSeeking_ ()\r\nseeking (async)\r\n.. video set current time\r\n\r\nRelated shaka code:\r\nshaka.media.MediaSourceEngine.prototype.endOfStream = function(opt_reason) {\r\n451\t  return this.enqueueBlockingOperation_(function() {\r\n452\t    // Chrome won't let me pass undefined, but it will let me omit the\r\n…\t\r\n456\t      this.mediaSource_.endOfStream(opt_reason);\r\n457\t    } else {\r\n458\t      this.mediaSource_.endOfStream();\r\n459\t    }\r\n460\t  }.bind(this));\r\n\r\nI think there shouldn't be call to endOfStream when readyState equals ended."},"comment":{"url":"https://api.github.com/repos/google/shaka-player/issues/comments/231545727","html_url":"https://github.com/google/shaka-player/issues/440#issuecomment-231545727","issue_url":"https://api.github.com/repos/google/shaka-player/issues/440","id":231545727,"user":{"login":"joeyparrish","id":6843156,"avatar_url":"https://avatars.githubusercontent.com/u/6843156?v=3","gravatar_id":"","url":"https://api.github.com/users/joeyparrish","html_url":"https://github.com/joeyparrish","followers_url":"https://api.github.com/users/joeyparrish/followers","following_url":"https://api.github.com/users/joeyparrish/following{/other_user}","gists_url":"https://api.github.com/users/joeyparrish/gists{/gist_id}","starred_url":"https://api.github.com/users/joeyparrish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joeyparrish/subscriptions","organizations_url":"https://api.github.com/users/joeyparrish/orgs","repos_url":"https://api.github.com/users/joeyparrish/repos","events_url":"https://api.github.com/users/joeyparrish/events{/privacy}","received_events_url":"https://api.github.com/users/joeyparrish/received_events","type":"User","site_admin":false},"created_at":"2016-07-09T17:29:25Z","updated_at":"2016-07-09T17:29:25Z","body":"We don't have a demo for that, but you can put a custom manifest and license server URL into the demo app.  At the bottom of the list of assets is \"(custom asset)\".  Select that and boxes will appear to allow you to put in your own manifest and license server URLs.\r\n\r\nIt's not clear to me why seeking to the end would result in an exception.  As far as I know, no seek should be able to cause this.  But if you can reproduce it on the demo app, we will be much better able to diagnose it."}}
{"actor":{"display_login":"joeyparrish"}}