From e0b9ff2b85aa98b99575aa58fa57a4bd4979ff11 Mon Sep 17 00:00:00 2001 From: pravinpagare <pravinpagare@gmail.com> Date: Thu, 9 Oct 2014 16:18:27 +1100 Subject: [PATCH] Update jquery.brightcove-video.js Added : New method "loadVideoByID" to load the brightcove video by brightcove ID. Which will help to load brightcove video if pass the brightcove ID. --- jquery.brightcove-video.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/jquery.brightcove-video.js b/jquery.brightcove-video.js index ccb23a9..65563ce 100644 --- a/jquery.brightcove-video.js +++ b/jquery.brightcove-video.js @@ -314,6 +314,18 @@ var } ); }, + /** + * Load the brightcove video with brightcove ID. + * + * @param {string} The brightcove ID + */ + loadVideoByID: function ( ID ) { + return this.each(function () { + $(this).data("brightcoveVideo").videoPlayer + .loadVideoByID( ID ); + }); + }, + /** * Seeks to a specified time position in the video. *