{"action":"created","issue":{"url":"https://api.github.com/repos/brion/ogv.js/issues/333","repository_url":"https://api.github.com/repos/brion/ogv.js","labels_url":"https://api.github.com/repos/brion/ogv.js/issues/333/labels{/name}","comments_url":"https://api.github.com/repos/brion/ogv.js/issues/333/comments","events_url":"https://api.github.com/repos/brion/ogv.js/issues/333/events","html_url":"https://github.com/brion/ogv.js/issues/333","id":145578002,"number":333,"title":"Cross-Domain Web Workers Errors","user":{"login":"jtfell","id":6702746,"avatar_url":"https://avatars.githubusercontent.com/u/6702746?v=3","gravatar_id":"","url":"https://api.github.com/users/jtfell","html_url":"https://github.com/jtfell","followers_url":"https://api.github.com/users/jtfell/followers","following_url":"https://api.github.com/users/jtfell/following{/other_user}","gists_url":"https://api.github.com/users/jtfell/gists{/gist_id}","starred_url":"https://api.github.com/users/jtfell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jtfell/subscriptions","organizations_url":"https://api.github.com/users/jtfell/orgs","repos_url":"https://api.github.com/users/jtfell/repos","events_url":"https://api.github.com/users/jtfell/events{/privacy}","received_events_url":"https://api.github.com/users/jtfell/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/brion/ogv.js/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/brion/ogv.js/milestones/12","html_url":"https://github.com/brion/ogv.js/milestones/ogv.js%201.2%20-%20various%20improvements","labels_url":"https://api.github.com/repos/brion/ogv.js/milestones/12/labels","id":1711837,"number":12,"title":"ogv.js 1.2 - various improvements","description":"Milestone for various improvements that don't need to get done before making a more packaging-friendly 1.1. Any API changes will be backwards-compatible.","creator":{"login":"brion","id":103075,"avatar_url":"https://avatars.githubusercontent.com/u/103075?v=3","gravatar_id":"","url":"https://api.github.com/users/brion","html_url":"https://github.com/brion","followers_url":"https://api.github.com/users/brion/followers","following_url":"https://api.github.com/users/brion/following{/other_user}","gists_url":"https://api.github.com/users/brion/gists{/gist_id}","starred_url":"https://api.github.com/users/brion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brion/subscriptions","organizations_url":"https://api.github.com/users/brion/orgs","repos_url":"https://api.github.com/users/brion/repos","events_url":"https://api.github.com/users/brion/events{/privacy}","received_events_url":"https://api.github.com/users/brion/received_events","type":"User","site_admin":false},"open_issues":46,"closed_issues":6,"state":"open","created_at":"2016-04-17T02:39:09Z","updated_at":"2016-06-12T06:02:57Z","due_on":null,"closed_at":null},"comments":7,"created_at":"2016-04-04T04:03:38Z","updated_at":"2016-06-12T06:02:57Z","closed_at":"2016-06-12T06:02:57Z","body":"When hosting the 1.0 release on a static server, I get cross-domain errors when the web workers are initialised. I tried to resolve this issue by modifying the OGVLoader class to fetch the source (using httpXMLRequest) and generate a blob data url. This seems to work on some level, but there are a few outstanding issues with this approach:\r\n\r\n1. The OGVLoader.base is unable to query the browser for the URLs of other files (eg. demuxers) when in a web-worker that has been invoked on a data url.\r\n2. If this base variable is hard-coded (as a quick workaround), the audio plays but I have no video showing up. \r\n\r\nIs this the approach that you would expect to be the most effective to solve this issue? If it is, do you have any intuition on how to resolve these other issues. Or is there a better method to resolve this?\r\n\r\n[Link to current progress](https://github.com/jtfell/ogv.js/commit/543e4fb9ab9c3c06c5b0a876d8d31374519241a2)"},"comment":{"url":"https://api.github.com/repos/brion/ogv.js/issues/comments/225411961","html_url":"https://github.com/brion/ogv.js/issues/333#issuecomment-225411961","issue_url":"https://api.github.com/repos/brion/ogv.js/issues/333","id":225411961,"user":{"login":"brion","id":103075,"avatar_url":"https://avatars.githubusercontent.com/u/103075?v=3","gravatar_id":"","url":"https://api.github.com/users/brion","html_url":"https://github.com/brion","followers_url":"https://api.github.com/users/brion/followers","following_url":"https://api.github.com/users/brion/following{/other_user}","gists_url":"https://api.github.com/users/brion/gists{/gist_id}","starred_url":"https://api.github.com/users/brion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brion/subscriptions","organizations_url":"https://api.github.com/users/brion/orgs","repos_url":"https://api.github.com/users/brion/repos","events_url":"https://api.github.com/users/brion/events{/privacy}","received_events_url":"https://api.github.com/users/brion/received_events","type":"User","site_admin":false},"created_at":"2016-06-12T06:02:57Z","updated_at":"2016-06-12T06:02:57Z","body":"aac8cb3d0af1ebed5b862c518fb000a1a74f5d83 implements XHR->blob worker loading for cross-domain base URL, pre-concatenating the target class with the worker setup to avoid dealing with the extra importScripts inside the worker. Seems to work nice, I've merged it. :)"}}
{"actor":{"display_login":"brion"}}