{"action":"opened","number":1021,"pull_request":{"url":"https://api.github.com/repos/dailymotion/hls.js/pulls/1021","id":110010352,"html_url":"https://github.com/dailymotion/hls.js/pull/1021","diff_url":"https://github.com/dailymotion/hls.js/pull/1021.diff","patch_url":"https://github.com/dailymotion/hls.js/pull/1021.patch","issue_url":"https://api.github.com/repos/dailymotion/hls.js/issues/1021","number":1021,"state":"open","locked":false,"title":"issue 1020 - Win10/Edge is restrictive when calling xhr.open which happens before xhrSetup callback is made","user":{"login":"statuswoe","id":940914,"avatar_url":"https://avatars0.githubusercontent.com/u/940914?v=3","gravatar_id":"","url":"https://api.github.com/users/statuswoe","html_url":"https://github.com/statuswoe","followers_url":"https://api.github.com/users/statuswoe/followers","following_url":"https://api.github.com/users/statuswoe/following{/other_user}","gists_url":"https://api.github.com/users/statuswoe/gists{/gist_id}","starred_url":"https://api.github.com/users/statuswoe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/statuswoe/subscriptions","organizations_url":"https://api.github.com/users/statuswoe/orgs","repos_url":"https://api.github.com/users/statuswoe/repos","events_url":"https://api.github.com/users/statuswoe/events{/privacy}","received_events_url":"https://api.github.com/users/statuswoe/received_events","type":"User","site_admin":false},"body":"from Issue  #1020\r\n\r\nIf using win 10/edge and loading a player on an https page the xhrSetup callback happens too late (after xhr.open) if you want to do something like protocol match on the ts requests. On this platform the xhr.open is not allowed to be called with an insecure url. I'll attach a PR with an additional xhrSetupBeforeOpen option which allows you to alter the context before the xhr.open call is made. This fixes the issue as I experience it.\r\n\r\n### CheckLists\r\n\r\n- [x ] changes have been done against master branch, and PR does not conflict\r\n- [x ] no commits have been done in dist folder (we will take care of updating it)\r\n- [ ] new unit / functional tests have been added (whenever applicable)\r\n- [ ] Travis tests are passing (or test results are not worse than on master branch :))\r\n- [ ] API or design changes are documented in API.md\r\n","created_at":"2017-03-09T21:33:01Z","updated_at":"2017-03-09T21:33:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/dailymotion/hls.js/pulls/1021/commits","review_comments_url":"https://api.github.com/repos/dailymotion/hls.js/pulls/1021/comments","review_comment_url":"https://api.github.com/repos/dailymotion/hls.js/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dailymotion/hls.js/issues/1021/comments","statuses_url":"https://api.github.com/repos/dailymotion/hls.js/statuses/70c6f24774e72bf0f36ef9a015cd3ad9ae836cf6","head":{"label":"statuswoe:fix-xhr-pre-open-callback","ref":"fix-xhr-pre-open-callback","sha":"70c6f24774e72bf0f36ef9a015cd3ad9ae836cf6","user":{"login":"statuswoe","id":940914,"avatar_url":"https://avatars0.githubusercontent.com/u/940914?v=3","gravatar_id":"","url":"https://api.github.com/users/statuswoe","html_url":"https://github.com/statuswoe","followers_url":"https://api.github.com/users/statuswoe/followers","following_url":"https://api.github.com/users/statuswoe/following{/other_user}","gists_url":"https://api.github.com/users/statuswoe/gists{/gist_id}","starred_url":"https://api.github.com/users/statuswoe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/statuswoe/subscriptions","organizations_url":"https://api.github.com/users/statuswoe/orgs","repos_url":"https://api.github.com/users/statuswoe/repos","events_url":"https://api.github.com/users/statuswoe/events{/privacy}","received_events_url":"https://api.github.com/users/statuswoe/received_events","type":"User","site_admin":false},"repo":{"id":84342174,"name":"hls.js","full_name":"statuswoe/hls.js","owner":{"login":"statuswoe","id":940914,"avatar_url":"https://avatars0.githubusercontent.com/u/940914?v=3","gravatar_id":"","url":"https://api.github.com/users/statuswoe","html_url":"https://github.com/statuswoe","followers_url":"https://api.github.com/users/statuswoe/followers","following_url":"https://api.github.com/users/statuswoe/following{/other_user}","gists_url":"https://api.github.com/users/statuswoe/gists{/gist_id}","starred_url":"https://api.github.com/users/statuswoe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/statuswoe/subscriptions","organizations_url":"https://api.github.com/users/statuswoe/orgs","repos_url":"https://api.github.com/users/statuswoe/repos","events_url":"https://api.github.com/users/statuswoe/events{/privacy}","received_events_url":"https://api.github.com/users/statuswoe/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/statuswoe/hls.js","description":"MSE-based HLS client - http://dailymotion.github.io/hls.js/demo","fork":true,"url":"https://api.github.com/repos/statuswoe/hls.js","forks_url":"https://api.github.com/repos/statuswoe/hls.js/forks","keys_url":"https://api.github.com/repos/statuswoe/hls.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/statuswoe/hls.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/statuswoe/hls.js/teams","hooks_url":"https://api.github.com/repos/statuswoe/hls.js/hooks","issue_events_url":"https://api.github.com/repos/statuswoe/hls.js/issues/events{/number}","events_url":"https://api.github.com/repos/statuswoe/hls.js/events","assignees_url":"https://api.github.com/repos/statuswoe/hls.js/assignees{/user}","branches_url":"https://api.github.com/repos/statuswoe/hls.js/branches{/branch}","tags_url":"https://api.github.com/repos/statuswoe/hls.js/tags","blobs_url":"https://api.github.com/repos/statuswoe/hls.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/statuswoe/hls.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/statuswoe/hls.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/statuswoe/hls.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/statuswoe/hls.js/statuses/{sha}","languages_url":"https://api.github.com/repos/statuswoe/hls.js/languages","stargazers_url":"https://api.github.com/repos/statuswoe/hls.js/stargazers","contributors_url":"https://api.github.com/repos/statuswoe/hls.js/contributors","subscribers_url":"https://api.github.com/repos/statuswoe/hls.js/subscribers","subscription_url":"https://api.github.com/repos/statuswoe/hls.js/subscription","commits_url":"https://api.github.com/repos/statuswoe/hls.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/statuswoe/hls.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/statuswoe/hls.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/statuswoe/hls.js/issues/comments{/number}","contents_url":"https://api.github.com/repos/statuswoe/hls.js/contents/{+path}","compare_url":"https://api.github.com/repos/statuswoe/hls.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/statuswoe/hls.js/merges","archive_url":"https://api.github.com/repos/statuswoe/hls.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/statuswoe/hls.js/downloads","issues_url":"https://api.github.com/repos/statuswoe/hls.js/issues{/number}","pulls_url":"https://api.github.com/repos/statuswoe/hls.js/pulls{/number}","milestones_url":"https://api.github.com/repos/statuswoe/hls.js/milestones{/number}","notifications_url":"https://api.github.com/repos/statuswoe/hls.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/statuswoe/hls.js/labels{/name}","releases_url":"https://api.github.com/repos/statuswoe/hls.js/releases{/id}","deployments_url":"https://api.github.com/repos/statuswoe/hls.js/deployments","created_at":"2017-03-08T16:29:41Z","updated_at":"2017-03-08T16:29:43Z","pushed_at":"2017-03-09T21:27:13Z","git_url":"git://github.com/statuswoe/hls.js.git","ssh_url":"git@github.com:statuswoe/hls.js.git","clone_url":"https://github.com/statuswoe/hls.js.git","svn_url":"https://github.com/statuswoe/hls.js","homepage":"","size":19278,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"dailymotion:master","ref":"master","sha":"4f3b197064db4001d88355bc9701254f00f4aaef","user":{"login":"dailymotion","id":115313,"avatar_url":"https://avatars1.githubusercontent.com/u/115313?v=3","gravatar_id":"","url":"https://api.github.com/users/dailymotion","html_url":"https://github.com/dailymotion","followers_url":"https://api.github.com/users/dailymotion/followers","following_url":"https://api.github.com/users/dailymotion/following{/other_user}","gists_url":"https://api.github.com/users/dailymotion/gists{/gist_id}","starred_url":"https://api.github.com/users/dailymotion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dailymotion/subscriptions","organizations_url":"https://api.github.com/users/dailymotion/orgs","repos_url":"https://api.github.com/users/dailymotion/repos","events_url":"https://api.github.com/users/dailymotion/events{/privacy}","received_events_url":"https://api.github.com/users/dailymotion/received_events","type":"Organization","site_admin":false},"repo":{"id":30064588,"name":"hls.js","full_name":"dailymotion/hls.js","owner":{"login":"dailymotion","id":115313,"avatar_url":"https://avatars1.githubusercontent.com/u/115313?v=3","gravatar_id":"","url":"https://api.github.com/users/dailymotion","html_url":"https://github.com/dailymotion","followers_url":"https://api.github.com/users/dailymotion/followers","following_url":"https://api.github.com/users/dailymotion/following{/other_user}","gists_url":"https://api.github.com/users/dailymotion/gists{/gist_id}","starred_url":"https://api.github.com/users/dailymotion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dailymotion/subscriptions","organizations_url":"https://api.github.com/users/dailymotion/orgs","repos_url":"https://api.github.com/users/dailymotion/repos","events_url":"https://api.github.com/users/dailymotion/events{/privacy}","received_events_url":"https://api.github.com/users/dailymotion/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dailymotion/hls.js","description":"MSE-based HLS client - http://dailymotion.github.io/hls.js/demo","fork":false,"url":"https://api.github.com/repos/dailymotion/hls.js","forks_url":"https://api.github.com/repos/dailymotion/hls.js/forks","keys_url":"https://api.github.com/repos/dailymotion/hls.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dailymotion/hls.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dailymotion/hls.js/teams","hooks_url":"https://api.github.com/repos/dailymotion/hls.js/hooks","issue_events_url":"https://api.github.com/repos/dailymotion/hls.js/issues/events{/number}","events_url":"https://api.github.com/repos/dailymotion/hls.js/events","assignees_url":"https://api.github.com/repos/dailymotion/hls.js/assignees{/user}","branches_url":"https://api.github.com/repos/dailymotion/hls.js/branches{/branch}","tags_url":"https://api.github.com/repos/dailymotion/hls.js/tags","blobs_url":"https://api.github.com/repos/dailymotion/hls.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dailymotion/hls.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dailymotion/hls.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/dailymotion/hls.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dailymotion/hls.js/statuses/{sha}","languages_url":"https://api.github.com/repos/dailymotion/hls.js/languages","stargazers_url":"https://api.github.com/repos/dailymotion/hls.js/stargazers","contributors_url":"https://api.github.com/repos/dailymotion/hls.js/contributors","subscribers_url":"https://api.github.com/repos/dailymotion/hls.js/subscribers","subscription_url":"https://api.github.com/repos/dailymotion/hls.js/subscription","commits_url":"https://api.github.com/repos/dailymotion/hls.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/dailymotion/hls.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/dailymotion/hls.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/dailymotion/hls.js/issues/comments{/number}","contents_url":"https://api.github.com/repos/dailymotion/hls.js/contents/{+path}","compare_url":"https://api.github.com/repos/dailymotion/hls.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dailymotion/hls.js/merges","archive_url":"https://api.github.com/repos/dailymotion/hls.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dailymotion/hls.js/downloads","issues_url":"https://api.github.com/repos/dailymotion/hls.js/issues{/number}","pulls_url":"https://api.github.com/repos/dailymotion/hls.js/pulls{/number}","milestones_url":"https://api.github.com/repos/dailymotion/hls.js/milestones{/number}","notifications_url":"https://api.github.com/repos/dailymotion/hls.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dailymotion/hls.js/labels{/name}","releases_url":"https://api.github.com/repos/dailymotion/hls.js/releases{/id}","deployments_url":"https://api.github.com/repos/dailymotion/hls.js/deployments","created_at":"2015-01-30T09:06:27Z","updated_at":"2017-03-09T13:17:43Z","pushed_at":"2017-03-08T22:19:02Z","git_url":"git://github.com/dailymotion/hls.js.git","ssh_url":"git@github.com:dailymotion/hls.js.git","clone_url":"https://github.com/dailymotion/hls.js.git","svn_url":"https://github.com/dailymotion/hls.js","homepage":"","size":18855,"stargazers_count":2105,"watchers_count":2105,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":477,"mirror_url":null,"open_issues_count":249,"forks":477,"open_issues":249,"watchers":2105,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dailymotion/hls.js/pulls/1021"},"html":{"href":"https://github.com/dailymotion/hls.js/pull/1021"},"issue":{"href":"https://api.github.com/repos/dailymotion/hls.js/issues/1021"},"comments":{"href":"https://api.github.com/repos/dailymotion/hls.js/issues/1021/comments"},"review_comments":{"href":"https://api.github.com/repos/dailymotion/hls.js/pulls/1021/comments"},"review_comment":{"href":"https://api.github.com/repos/dailymotion/hls.js/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dailymotion/hls.js/pulls/1021/commits"},"statuses":{"href":"https://api.github.com/repos/dailymotion/hls.js/statuses/70c6f24774e72bf0f36ef9a015cd3ad9ae836cf6"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":11,"deletions":0,"changed_files":2}}
{"actor":{"display_login":"statuswoe"}}