{"action":"created","issue":{"url":"https://api.github.com/repos/Dash-Industry-Forum/dash.js/issues/973","labels_url":"https://api.github.com/repos/Dash-Industry-Forum/dash.js/issues/973/labels{/name}","comments_url":"https://api.github.com/repos/Dash-Industry-Forum/dash.js/issues/973/comments","events_url":"https://api.github.com/repos/Dash-Industry-Forum/dash.js/issues/973/events","html_url":"https://github.com/Dash-Industry-Forum/dash.js/issues/973","id":124852034,"number":973,"title":"[2.0] Some API methods don't work before play","user":{"login":"LloydW93","id":2572695,"avatar_url":"https://avatars.githubusercontent.com/u/2572695?v=3","gravatar_id":"","url":"https://api.github.com/users/LloydW93","html_url":"https://github.com/LloydW93","followers_url":"https://api.github.com/users/LloydW93/followers","following_url":"https://api.github.com/users/LloydW93/following{/other_user}","gists_url":"https://api.github.com/users/LloydW93/gists{/gist_id}","starred_url":"https://api.github.com/users/LloydW93/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LloydW93/subscriptions","organizations_url":"https://api.github.com/users/LloydW93/orgs","repos_url":"https://api.github.com/users/LloydW93/repos","events_url":"https://api.github.com/users/LloydW93/events{/privacy}","received_events_url":"https://api.github.com/users/LloydW93/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-01-04T22:17:52Z","updated_at":"2016-01-08T18:32:14Z","closed_at":null,"body":"createControllers is not called until play() is first ran. This could potentially be problematic if you want to use a call such as setInitialBitrateFor.\r\n\r\nFor example, we do something like:\r\n```javascript\r\nvar dashPlayer = MediaPlayer().create();\r\ndashPlayer.initialize();\r\n// various settings such as setScheduleWhilePaused, setAutoSwitchQuality\r\ndashPlayer.attachView(video);\r\ndashPlayer.attachSource(connection);\r\n```\r\n\r\nI'm currently working around this for testing and playing with by adding createControllers() to the initialize function, but am not sure if that's the best place for it."},"comment":{"url":"https://api.github.com/repos/Dash-Industry-Forum/dash.js/issues/comments/170084171","html_url":"https://github.com/Dash-Industry-Forum/dash.js/issues/973#issuecomment-170084171","issue_url":"https://api.github.com/repos/Dash-Industry-Forum/dash.js/issues/973","id":170084171,"user":{"login":"AkamaiDASH","id":7864462,"avatar_url":"https://avatars.githubusercontent.com/u/7864462?v=3","gravatar_id":"","url":"https://api.github.com/users/AkamaiDASH","html_url":"https://github.com/AkamaiDASH","followers_url":"https://api.github.com/users/AkamaiDASH/followers","following_url":"https://api.github.com/users/AkamaiDASH/following{/other_user}","gists_url":"https://api.github.com/users/AkamaiDASH/gists{/gist_id}","starred_url":"https://api.github.com/users/AkamaiDASH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AkamaiDASH/subscriptions","organizations_url":"https://api.github.com/users/AkamaiDASH/orgs","repos_url":"https://api.github.com/users/AkamaiDASH/repos","events_url":"https://api.github.com/users/AkamaiDASH/events{/privacy}","received_events_url":"https://api.github.com/users/AkamaiDASH/received_events","type":"User","site_admin":false},"created_at":"2016-01-08T18:32:14Z","updated_at":"2016-01-08T18:32:14Z","body":"@LloydW93 @wilaw I'll take a look soon.  Never liked the create call in play was there for your last comment problem.  Many todos around dash handler/parser create stuff. Ill take a look to  come up with a better object creation process.    \r\n\r\nDan"}}