mirror of
https://github.com/videojs/video.js.git
synced 2025-07-15 01:34:23 +02:00
Added the VideoJS.player() function for getting a player for an ID
This commit is contained in:
@ -227,6 +227,9 @@ VideoJS.extend({
|
|||||||
return (returnSingular) ? playerList[0] : playerList;
|
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
|
// Find video tags with the video-js class
|
||||||
getVideoJSTags: function() {
|
getVideoJSTags: function() {
|
||||||
var videoTags = document.getElementsByTagName("video"),
|
var videoTags = document.getElementsByTagName("video"),
|
||||||
|
Reference in New Issue
Block a user