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:
parent
28c66dcf72
commit
bdb9b7a010
@ -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"),
|
||||
|
Loading…
Reference in New Issue
Block a user