diff --git a/video.js b/video.js index 03dce0d7c..43b29f3e3 100644 --- a/video.js +++ b/video.js @@ -768,6 +768,22 @@ VideoJS.setup = function(options){ } } +// Add video-js to the video tag or array of video tags (or IDs) passed in. +// Typically used when videos are being added to a page dynamically. +VideoJS.addVideos = function(videos, options) { + videos = videos instanceof Array ? videos : [videos]; + var videoTag; + for (var i=0; i