From bdb9b7a0108175501d0155bcfc309befea7e8f0c Mon Sep 17 00:00:00 2001 From: Steve Heffernan Date: Wed, 23 Feb 2011 17:48:19 -0800 Subject: [PATCH] Added the VideoJS.player() function for getting a player for an ID --- dev/src/main.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dev/src/main.js b/dev/src/main.js index 15dbb8aa1..16d7b2810 100644 --- a/dev/src/main.js +++ b/dev/src/main.js @@ -227,6 +227,9 @@ VideoJS.extend({ return (returnSingular) ? playerList[0] : playerList; }, + // Get the player object for the supplied video tag ID + player: function(id){ return document.getElementById(id).player; }, + // Find video tags with the video-js class getVideoJSTags: function() { var videoTags = document.getElementsByTagName("video"),