diff --git a/dev/build/combine_sources.sh b/dev/build/combine_sources.sh index 2f9bbf49c..1377079ef 100755 --- a/dev/build/combine_sources.sh +++ b/dev/build/combine_sources.sh @@ -35,4 +35,4 @@ cat ../src/controls/subtitlesBox.js >> ../dist/video.js cat ../src/autoload.js >> ../dist/video.js -cat ../src/_end.js >> ../dist/video.js \ No newline at end of file +cat ../src/_end.js >> ../dist/video.js diff --git a/video.js b/video.js index abef3f12a..8e8d75a22 100644 --- a/video.js +++ b/video.js @@ -3276,3 +3276,9 @@ _V_.loadPlayerTimeout = function(wait){ setTimeout(_V_.loadPlayers, wait); }; _V_.loadPlayerTimeout(1); // Let vjs javascript finish executing + +// Expose to global +window.VideoJS = window._V_ = VideoJS; + +// End self-executing function +})(window); \ No newline at end of file