From beb329ad710a4b35f8aea617494946ccb8fcc9ae Mon Sep 17 00:00:00 2001 From: David LaPalomento Date: Tue, 3 Dec 2013 14:09:16 -0500 Subject: [PATCH] Make textTracks an extern TextTracks are queried during player initialization whether they're present or not so the method must be present on Player objects. Make sure the method name isn't minified so it's possible to create a Player object without having to extend videojs.Player directly. --- src/js/player.externs.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/js/player.externs.js b/src/js/player.externs.js index 9087cec98..8d2538dbe 100644 --- a/src/js/player.externs.js +++ b/src/js/player.externs.js @@ -9,3 +9,8 @@ videojs.Player.prototype.isFullScreen = undefined; videojs.Player.prototype.requestFullScreen = function(){}; videojs.Player.prototype.cancelFullScreen = function(){}; + +/** + * Text tracks + */ +videojs.Player.prototype.textTracks = function(){};