{"action":"created","issue":{"url":"https://api.github.com/repos/Animatron/player/issues/270","labels_url":"https://api.github.com/repos/Animatron/player/issues/270/labels{/name}","comments_url":"https://api.github.com/repos/Animatron/player/issues/270/comments","events_url":"https://api.github.com/repos/Animatron/player/issues/270/events","html_url":"https://github.com/Animatron/player/pull/270","id":57244348,"number":270,"title":"Show Resource Loading Completeness","user":{"login":"shamansir","id":110920,"avatar_url":"https://avatars.githubusercontent.com/u/110920?v=3","gravatar_id":"","url":"https://api.github.com/users/shamansir","html_url":"https://github.com/shamansir","followers_url":"https://api.github.com/users/shamansir/followers","following_url":"https://api.github.com/users/shamansir/following{/other_user}","gists_url":"https://api.github.com/users/shamansir/gists{/gist_id}","starred_url":"https://api.github.com/users/shamansir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shamansir/subscriptions","organizations_url":"https://api.github.com/users/shamansir/orgs","repos_url":"https://api.github.com/users/shamansir/repos","events_url":"https://api.github.com/users/shamansir/events{/privacy}","received_events_url":"https://api.github.com/users/shamansir/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Animatron/player/labels/in%20progress","name":"in progress","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-02-10T22:01:35Z","updated_at":"2015-02-11T10:46:29Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Animatron/player/pulls/270","html_url":"https://github.com/Animatron/player/pull/270","diff_url":"https://github.com/Animatron/player/pull/270.diff","patch_url":"https://github.com/Animatron/player/pull/270.patch"},"body":"Draws a tiny 2px-line at the bottom of controls to show the completeness of resources loading process. \r\n\r\nFor audio, it has the ability to monitor chunks, [this demo](http://jspro.brothercake.com/media-events/progress.html) and [this article](http://www.sitepoint.com/essential-audio-and-video-events-for-html5/) were used to find out how to do it. For images, it just reports when they are done loading. The total number of URLs requested is used as `1.0`, each file is then `1 / <number-of-urls>` part in the progress line. For audio files, this value is then divided into sub-parts.\r\n\r\n![Demo](https://dl.dropboxusercontent.com/s/qre8q43wqd76bjt/2015-02-10%20at%2022.53%202x.png)\r\n\r\n(sorry, I was able to catch only the last moments of loading :) ).\r\n\r\nNeeds testing.\r\n\r\nAlso I ask to merge this just after the request, since it contains ResourceManager changes which should be considered by Yuri in his proposals and/or changes :). Code review fixes could be done with the next pull requests.\r\n\r\n@alexeypegov @mcm69 please review."},"comment":{"url":"https://api.github.com/repos/Animatron/player/issues/comments/73862639","html_url":"https://github.com/Animatron/player/pull/270#issuecomment-73862639","issue_url":"https://api.github.com/repos/Animatron/player/issues/270","id":73862639,"user":{"login":"alexeypegov","id":3228,"avatar_url":"https://avatars.githubusercontent.com/u/3228?v=3","gravatar_id":"","url":"https://api.github.com/users/alexeypegov","html_url":"https://github.com/alexeypegov","followers_url":"https://api.github.com/users/alexeypegov/followers","following_url":"https://api.github.com/users/alexeypegov/following{/other_user}","gists_url":"https://api.github.com/users/alexeypegov/gists{/gist_id}","starred_url":"https://api.github.com/users/alexeypegov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexeypegov/subscriptions","organizations_url":"https://api.github.com/users/alexeypegov/orgs","repos_url":"https://api.github.com/users/alexeypegov/repos","events_url":"https://api.github.com/users/alexeypegov/events{/privacy}","received_events_url":"https://api.github.com/users/alexeypegov/received_events","type":"User","site_admin":false},"created_at":"2015-02-11T10:46:29Z","updated_at":"2015-02-11T10:46:29Z","body":"personally, I think that loading progress should be similar to playing one\n\nOn Wednesday, February 11, 2015, Yuriy Opryshko <notifications@github.com>\nwrote:\n\n> Please use the circle and draw loading progress there instead of\n> introducing a new design element.\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/Animatron/player/pull/270#issuecomment-73859044>.\n>\n\n\n-- \n\n--\nPEGOV\n"}}