{"action":"created","issue":{"url":"https://api.github.com/repos/dailymotion/hls.js/issues/60","labels_url":"https://api.github.com/repos/dailymotion/hls.js/issues/60/labels{/name}","comments_url":"https://api.github.com/repos/dailymotion/hls.js/issues/60/comments","events_url":"https://api.github.com/repos/dailymotion/hls.js/issues/60/events","html_url":"https://github.com/dailymotion/hls.js/pull/60","id":116108021,"number":60,"title":"Allow for other media sources and destinations (i.e encapsulate MSE concerns into buffer controller only)","user":{"login":"tchakabam","id":1480052,"avatar_url":"https://avatars.githubusercontent.com/u/1480052?v=3","gravatar_id":"","url":"https://api.github.com/users/tchakabam","html_url":"https://github.com/tchakabam","followers_url":"https://api.github.com/users/tchakabam/followers","following_url":"https://api.github.com/users/tchakabam/following{/other_user}","gists_url":"https://api.github.com/users/tchakabam/gists{/gist_id}","starred_url":"https://api.github.com/users/tchakabam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tchakabam/subscriptions","organizations_url":"https://api.github.com/users/tchakabam/orgs","repos_url":"https://api.github.com/users/tchakabam/repos","events_url":"https://api.github.com/users/tchakabam/events{/privacy}","received_events_url":"https://api.github.com/users/tchakabam/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-11-10T13:42:10Z","updated_at":"2015-11-17T21:52:41Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/dailymotion/hls.js/pulls/60","html_url":"https://github.com/dailymotion/hls.js/pull/60","diff_url":"https://github.com/dailymotion/hls.js/pull/60.diff","patch_url":"https://github.com/dailymotion/hls.js/pull/60.patch"},"body":"OK so this is my first PR on the project, it might not be a great fix or a big improvement, but its a start. Some things we need to get straight first from my perspective ..\r\n\r\nThere are several concerns:\r\n\r\n1. It should not only be for `video` element but any HTML5 Media DOM, so also `audio`. That would work in principle, but I needed to change the name of functions and attributes still. Will add audio-only stream to tests asap.\r\n\r\n2. All the MSE concerns should be encapsulated imho. There should be a sane seperation between what is HLS client (downloading, and buffering data) and what is further down the line: demuxing and playing the data \"somehow\" (MSE is only one option).\r\n\r\n3. We would want to use something else maybe to process the data further, so optionally one could inject another BufferController than the default one. That could be for example something that works like a Node stream and represents some processing pipeline (which could be terminated or not by MSE or something else).\r\n\r\nIt would be great if hls.js could extend to these architectural ideas and not narrowing down to one API (MSE) but have \"one input many outputs\". \r\n\r\nThen I hope in the future I can also contribute \"real features\" ;)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/dailymotion/hls.js/issues/comments/157520766","html_url":"https://github.com/dailymotion/hls.js/pull/60#issuecomment-157520766","issue_url":"https://api.github.com/repos/dailymotion/hls.js/issues/60","id":157520766,"user":{"login":"mangui","id":1798553,"avatar_url":"https://avatars.githubusercontent.com/u/1798553?v=3","gravatar_id":"","url":"https://api.github.com/users/mangui","html_url":"https://github.com/mangui","followers_url":"https://api.github.com/users/mangui/followers","following_url":"https://api.github.com/users/mangui/following{/other_user}","gists_url":"https://api.github.com/users/mangui/gists{/gist_id}","starred_url":"https://api.github.com/users/mangui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mangui/subscriptions","organizations_url":"https://api.github.com/users/mangui/orgs","repos_url":"https://api.github.com/users/mangui/repos","events_url":"https://api.github.com/users/mangui/events{/privacy}","received_events_url":"https://api.github.com/users/mangui/received_events","type":"User","site_admin":false},"created_at":"2015-11-17T21:52:41Z","updated_at":"2015-11-17T21:52:41Z","body":"there are still some reference to attachMediaElement/detachMediaElement\r\nit should be attachMedia/detachMedia"}}