{"action":"created","issue":{"url":"https://api.github.com/repos/CreateJS/PreloadJS/issues/115","labels_url":"https://api.github.com/repos/CreateJS/PreloadJS/issues/115/labels{/name}","comments_url":"https://api.github.com/repos/CreateJS/PreloadJS/issues/115/comments","events_url":"https://api.github.com/repos/CreateJS/PreloadJS/issues/115/events","html_url":"https://github.com/CreateJS/PreloadJS/issues/115","id":55542857,"number":115,"title":"VideoLoader","user":{"login":"fatlinesofcode","id":505776,"avatar_url":"https://avatars.githubusercontent.com/u/505776?v=3","gravatar_id":"","url":"https://api.github.com/users/fatlinesofcode","html_url":"https://github.com/fatlinesofcode","followers_url":"https://api.github.com/users/fatlinesofcode/followers","following_url":"https://api.github.com/users/fatlinesofcode/following{/other_user}","gists_url":"https://api.github.com/users/fatlinesofcode/gists{/gist_id}","starred_url":"https://api.github.com/users/fatlinesofcode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fatlinesofcode/subscriptions","organizations_url":"https://api.github.com/users/fatlinesofcode/orgs","repos_url":"https://api.github.com/users/fatlinesofcode/repos","events_url":"https://api.github.com/users/fatlinesofcode/events{/privacy}","received_events_url":"https://api.github.com/users/fatlinesofcode/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/CreateJS/PreloadJS/labels/question","name":"question","color":"bfe5bf"}],"state":"open","locked":false,"assignee":{"login":"wdamien","id":299050,"avatar_url":"https://avatars.githubusercontent.com/u/299050?v=3","gravatar_id":"","url":"https://api.github.com/users/wdamien","html_url":"https://github.com/wdamien","followers_url":"https://api.github.com/users/wdamien/followers","following_url":"https://api.github.com/users/wdamien/following{/other_user}","gists_url":"https://api.github.com/users/wdamien/gists{/gist_id}","starred_url":"https://api.github.com/users/wdamien/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wdamien/subscriptions","organizations_url":"https://api.github.com/users/wdamien/orgs","repos_url":"https://api.github.com/users/wdamien/repos","events_url":"https://api.github.com/users/wdamien/events{/privacy}","received_events_url":"https://api.github.com/users/wdamien/received_events","type":"User","site_admin":false},"milestone":null,"comments":6,"created_at":"2015-01-26T21:51:36Z","updated_at":"2015-10-30T17:39:51Z","closed_at":null,"body":"Is there any examples on how to preload video with 0.6.0? I've tried several methods and am having no luck. The files do load in the loadQueue but I can't access the result.\r\n\r\nUsing \r\n```\r\ndocument.body.appendChild(event.result);\r\n```\r\nDoes insert a video tag but its not playable, the source seems to be encoded or corrupt when I look at the html in the inspector. \r\n![screen-capture-12](https://cloud.githubusercontent.com/assets/505776/5909073/365b4c94-a601-11e4-9322-31f6649ca9eb.jpg)\r\n\r\nI've also tried creating my own video object and setting the source to the preloaded data e.g.\r\n\r\n```\r\nmyvideo.src = queue.getResult('video-story').src;\r\n```\r\n\r\nor the using raw result\r\n```\r\nvar video = document.createElement('video'), source = document.createElement('source');\r\nvideo.controls = \"controls\";\r\nvideo.autoplay = \"autoplay\";\r\nsource.src = event.rawResult;\r\nsource.type = \"video/mp4\";\r\nvideo.appendChild(source);\r\ndocument.body.appendChild(video)\r\n```\r\n\r\nthis also fails."},"comment":{"url":"https://api.github.com/repos/CreateJS/PreloadJS/issues/comments/152597385","html_url":"https://github.com/CreateJS/PreloadJS/issues/115#issuecomment-152597385","issue_url":"https://api.github.com/repos/CreateJS/PreloadJS/issues/115","id":152597385,"user":{"login":"netpalantir","id":10104531,"avatar_url":"https://avatars.githubusercontent.com/u/10104531?v=3","gravatar_id":"","url":"https://api.github.com/users/netpalantir","html_url":"https://github.com/netpalantir","followers_url":"https://api.github.com/users/netpalantir/followers","following_url":"https://api.github.com/users/netpalantir/following{/other_user}","gists_url":"https://api.github.com/users/netpalantir/gists{/gist_id}","starred_url":"https://api.github.com/users/netpalantir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/netpalantir/subscriptions","organizations_url":"https://api.github.com/users/netpalantir/orgs","repos_url":"https://api.github.com/users/netpalantir/repos","events_url":"https://api.github.com/users/netpalantir/events{/privacy}","received_events_url":"https://api.github.com/users/netpalantir/received_events","type":"User","site_admin":false},"created_at":"2015-10-30T17:39:51Z","updated_at":"2015-10-30T17:39:51Z","body":"(Rumbling rants removed :) ).\r\n\r\nI skipped the VIDEO loader altogether, and I jumped straight to the BINARY loader. From there I got an objectUrl which I plugged into the video source.\r\n\r\nI suspect that returning a `<video>` element that has raw binary data inside its `src` attribute is not correct. As far as I know, the src attribute for media files is supposed to be a valid URL, and binary data are not. This is what the libary does at the moment.\r\n\r\nHere is a working fiddle rewriting the previous example. Sorry if it is messy.\r\nhttps://jsfiddle.net/uukyt2qf/"}}