{"action":"created","issue":{"url":"https://api.github.com/repos/Dash-Industry-Forum/dash.js/issues/265","repository_url":"https://api.github.com/repos/Dash-Industry-Forum/dash.js","labels_url":"https://api.github.com/repos/Dash-Industry-Forum/dash.js/issues/265/labels{/name}","comments_url":"https://api.github.com/repos/Dash-Industry-Forum/dash.js/issues/265/comments","events_url":"https://api.github.com/repos/Dash-Industry-Forum/dash.js/issues/265/events","html_url":"https://github.com/Dash-Industry-Forum/dash.js/issues/265","id":46846604,"number":265,"title":"preloading segments with the dash.js player","user":{"login":"orcaman","id":4884073,"avatar_url":"https://avatars.githubusercontent.com/u/4884073?v=3","gravatar_id":"","url":"https://api.github.com/users/orcaman","html_url":"https://github.com/orcaman","followers_url":"https://api.github.com/users/orcaman/followers","following_url":"https://api.github.com/users/orcaman/following{/other_user}","gists_url":"https://api.github.com/users/orcaman/gists{/gist_id}","starred_url":"https://api.github.com/users/orcaman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orcaman/subscriptions","organizations_url":"https://api.github.com/users/orcaman/orgs","repos_url":"https://api.github.com/users/orcaman/repos","events_url":"https://api.github.com/users/orcaman/events{/privacy}","received_events_url":"https://api.github.com/users/orcaman/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Dash-Industry-Forum/dash.js/labels/0%20-%20Backlog","name":"0 - Backlog","color":"CCCCCC"},{"url":"https://api.github.com/repos/Dash-Industry-Forum/dash.js/labels/Feature%20Request","name":"Feature Request","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2014-10-26T16:05:10Z","updated_at":"2016-04-22T08:49:23Z","closed_at":null,"body":"Hi guys, this is a question, not an issue.\r\n\r\nWith the dash.js player, there is some sort of preloading already going on - I am talking about the initialization segment (the segment is preloaded before you actually play the video, it is enough to attach the source and the view to have get this to happen). \r\n\r\nIs there a built in way to tell the player to preload the first few media segments (in addition to the initialization segment)? If not, could you please provide some hints as to where it would be best for me to modify the code to provide support for this kind of preloading?\r\n\r\nCheers,\r\nOr"},"comment":{"url":"https://api.github.com/repos/Dash-Industry-Forum/dash.js/issues/comments/213334459","html_url":"https://github.com/Dash-Industry-Forum/dash.js/issues/265#issuecomment-213334459","issue_url":"https://api.github.com/repos/Dash-Industry-Forum/dash.js/issues/265","id":213334459,"user":{"login":"arnaudleyder","id":6594069,"avatar_url":"https://avatars.githubusercontent.com/u/6594069?v=3","gravatar_id":"","url":"https://api.github.com/users/arnaudleyder","html_url":"https://github.com/arnaudleyder","followers_url":"https://api.github.com/users/arnaudleyder/followers","following_url":"https://api.github.com/users/arnaudleyder/following{/other_user}","gists_url":"https://api.github.com/users/arnaudleyder/gists{/gist_id}","starred_url":"https://api.github.com/users/arnaudleyder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arnaudleyder/subscriptions","organizations_url":"https://api.github.com/users/arnaudleyder/orgs","repos_url":"https://api.github.com/users/arnaudleyder/repos","events_url":"https://api.github.com/users/arnaudleyder/events{/privacy}","received_events_url":"https://api.github.com/users/arnaudleyder/received_events","type":"User","site_admin":false},"created_at":"2016-04-22T08:49:22Z","updated_at":"2016-04-22T08:49:22Z","body":"ok there are 2 issues I think here now that I have reviewed the source:\r\n- MediaPlayerModel.js line 92:        \r\n`scheduleWhilePaused = true;`\r\n=> so default seems indeed to be true. Can you confirm what should be the correct default?\r\n- setScheduleWhilePaused does not work after initialization. \r\nScheduleController.js line 226 \r\n`if (isStopped || playbackController.isPaused() && !scheduleWhilePaused) return;`\r\nscheduleWhilePaused is always false when I set setScheduleWhilePaused(false) at startup even after setScheduleWhilePaused(true) being set. \r\nOne solution could be:\r\n```\r\nlet scheduleWhilePaused = mediaPlayerModel.getScheduleWhilePaused();\r\nif (isStopped || playbackController.isPaused() && !scheduleWhilePaused) return;\r\n```\r\n\r\nShould I submit a PR or can you comment on the above?\r\n"}}