// This file is used to load the video.js source files into a page // in the correct order based on dependencies. // When you create a new source file you will need to add // it to the list below to use it in sandbox/index.html and // test/index.html // You can use the projectRoot variable to adjust relative urls // that this script loads. By default it's "../", which is what /sandbox // and /test need. If you had sandbox/newDir/index.html, in index.html you // would set projectRoot = "../../" // We could use somehting like requireJS to load files, and at one point // we used goog.require/provide to load dependencies, but that seems like // overkill with the small number of files we actually have. // ADD NEW SOURCE FILES HERE var sourceFiles = [ "src/js/goog.base.js", "src/js/core.js", "src/js/events.js", "src/js/lib.js", "src/js/component.js", "src/js/player.js", "src/js/controls.js", "src/js/media.js", "src/js/media.html5.js", "src/js/media.flash.js", "src/js/tracks.js", "src/js/json.js", "src/js/setup.js", "src/js/plugins.js", "src/js/exports.js" ]; // Allow overriding the default project root var projectRoot = projectRoot || '../'; function loadScripts(scriptsArr){ for (var i = 0; i < scriptsArr.length; i++) { // Using document.write because that's the easiest way to avoid triggering // asynchrnous script loading document.write( "') } }