1
0
mirror of https://github.com/videojs/video.js.git synced 2024-12-25 02:42:10 +02:00

Added the VideoJS.player() function for getting a player for an ID

This commit is contained in:
Steve Heffernan 2011-02-23 17:48:19 -08:00
parent 28c66dcf72
commit bdb9b7a010

View File

@ -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"),