[files.js] Fix namespace

This commit is contained in:
Christoph Diehl 2017-05-02 23:37:06 +03:00
parent 92cac4b901
commit 7b4bfe7f94

View file

@ -4,35 +4,36 @@
make.files = { make.files = {
image: function () { image: function () {
return utils.quote(random.pick([ return utils.common.quote(random.pick([
'data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=', 'data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=',
'data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==', 'data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==',
'data:image/gif;base64,R0lGODlhAQABAAAAACwAAAAAAQABAAA=', 'data:image/gif;base64,R0lGODlhAQABAAAAACwAAAAAAQABAAA=',
'data:image/gif;base64,R0lGODlhAQABAAAAACw=', 'data:image/gif;base64,R0lGODlhAQABAAAAACw=',
'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAAAAAA6fptVAAAACklEQVQYV2P4DwABAQEAWk1v8QAAAABJRU5ErkJggg==', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAAAAAA6fptVAAAACklEQVQYV2P4DwABAQEAWk1v8QAAAABJRU5ErkJggg==',
'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVQYV2NgYAAAAAMAAWgmWQ0AAAAASUVORK5CYII=', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVQYV2NgYAAAAAMAAWgmWQ0AAAAASUVORK5CYII='
'media/images/image1.jpg', // Todo: load from filesystem randomly: 'media/images/*.{bmp|jpg|gif|png|webp}'
'media/images/image3.jpg'
])) ]))
}, },
video: function () { video: function () {
return utils.quote(random.pick([ return utils.common.quote(random.pick([
'media/video/video1.webm', 'media/video/video1.webm'
'media/video/video2.webm' // Todo: load from filesystem randomly: 'media/videos/*.{webm|ogv|mp4}'
])) ]))
}, },
audio: function () { audio: function () {
return utils.quote(random.pick([ return utils.common.quote(random.pick([
'media/audio/mono-uncompressed-8bit-8000hz.wav', 'media/audio/mono-uncompressed-8bit-8000hz.wav',
'media/audio/mono-uncompressed-8bit-44100hz.wav', 'media/audio/mono-uncompressed-8bit-44100hz.wav',
'media/audio/mono-uncompressed-32bit-8000hz.wav', 'media/audio/mono-uncompressed-32bit-8000hz.wav',
'media/audio/mono-uncompressed-32bit-44100hz.wav' 'media/audio/mono-uncompressed-32bit-44100hz.wav'
// Todo: load from filesystem randomly: 'media/videos/*.{wav|ogg|mp3}'
])) ]))
}, },
webvtt: function () { webvtt: function () {
return utils.quote(random.pick([ return utils.common.quote(random.pick([
// 'data:text/vtt,' + encodeURIComponent('WEBVTT\n\n00:00:00.000 --> 00:00:00.001\ntest');, // 'data:text/vtt,' + encodeURIComponent('WEBVTT\n\n00:00:00.000 --> 00:00:00.001\ntest');,
'media/video/sample.vtt' 'media/video/sample.vtt'
// Todo: load from filesystem randomly: 'media/videos/*.{vtt}'
])) ]))
}, },
file: function () { file: function () {