{"action":"created","issue":{"url":"https://api.github.com/repos/Dash-Industry-Forum/dash.js/issues/355","labels_url":"https://api.github.com/repos/Dash-Industry-Forum/dash.js/issues/355/labels{/name}","comments_url":"https://api.github.com/repos/Dash-Industry-Forum/dash.js/issues/355/comments","events_url":"https://api.github.com/repos/Dash-Industry-Forum/dash.js/issues/355/events","html_url":"https://github.com/Dash-Industry-Forum/dash.js/pull/355","id":54540578,"number":355,"title":"Adding MediaPlayerFactory for simpler page embeds","user":{"login":"wilaw","id":2762250,"avatar_url":"https://avatars.githubusercontent.com/u/2762250?v=3","gravatar_id":"","url":"https://api.github.com/users/wilaw","html_url":"https://github.com/wilaw","followers_url":"https://api.github.com/users/wilaw/followers","following_url":"https://api.github.com/users/wilaw/following{/other_user}","gists_url":"https://api.github.com/users/wilaw/gists{/gist_id}","starred_url":"https://api.github.com/users/wilaw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wilaw/subscriptions","organizations_url":"https://api.github.com/users/wilaw/orgs","repos_url":"https://api.github.com/users/wilaw/repos","events_url":"https://api.github.com/users/wilaw/events{/privacy}","received_events_url":"https://api.github.com/users/wilaw/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-01-16T05:15:16Z","updated_at":"2015-01-16T18:16:28Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Dash-Industry-Forum/dash.js/pulls/355","html_url":"https://github.com/Dash-Industry-Forum/dash.js/pull/355","diff_url":"https://github.com/Dash-Industry-Forum/dash.js/pull/355.diff","patch_url":"https://github.com/Dash-Industry-Forum/dash.js/pull/355.patch"},"body":"Introducing a MediaPlayerFactory, which initializes MediaPlayers in a web page and automates the conversion of the videoElement to a functioning DASH player. The createDashPlayers method will search the DOM for all VideoElements of the class type 'dashjs-player' and then call the createDashPlayer method on each one. The createDashPlayer accepts a videoElement as input and then initializes a MediaPlayer around it, extracting the source URL from the source element. \r\n\r\nFour new sample files are added to illustrate operation of the class:\r\nauto-load-single-video.html - shows the simplest possible embed of the player in to a page with a single videoElement.\r\nauto-load-multi-video.html - shows how 3 video players are added, two of which are dash.js players (one with autostart, one without) and a one which is a standard progressive mp4.\r\nauto-load-single-video-with-reference.html - shows how to use the MediaPlayer reference returned by the createDashPlayers method to listen to metrics and trace out the buffer length.\r\nmanual-load-single-video.html - the older (and still fully supported) method for adding the player to the page by establishing a DashContext.\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Dash-Industry-Forum/dash.js/issues/comments/70296697","html_url":"https://github.com/Dash-Industry-Forum/dash.js/pull/355#issuecomment-70296697","issue_url":"https://api.github.com/repos/Dash-Industry-Forum/dash.js/issues/355","id":70296697,"user":{"login":"kirkshoop","id":982716,"avatar_url":"https://avatars.githubusercontent.com/u/982716?v=3","gravatar_id":"","url":"https://api.github.com/users/kirkshoop","html_url":"https://github.com/kirkshoop","followers_url":"https://api.github.com/users/kirkshoop/followers","following_url":"https://api.github.com/users/kirkshoop/following{/other_user}","gists_url":"https://api.github.com/users/kirkshoop/gists{/gist_id}","starred_url":"https://api.github.com/users/kirkshoop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kirkshoop/subscriptions","organizations_url":"https://api.github.com/users/kirkshoop/orgs","repos_url":"https://api.github.com/users/kirkshoop/repos","events_url":"https://api.github.com/users/kirkshoop/events{/privacy}","received_events_url":"https://api.github.com/users/kirkshoop/received_events","type":"User","site_admin":false},"created_at":"2015-01-16T18:16:28Z","updated_at":"2015-01-16T18:16:28Z","body":"I do not object, but according to my understanding of the release plan, this PR came too late. \r\nI think Mikhail's feedback is essential - I was going to suggest some of the same things."}}