(function ($) { AblePlayer.prototype.initSignLanguage = function() { // Sign language is only currently supported in HTML5 player, not fallback or YouTube if (this.player === 'html5') { // check to see if there's a sign language video accompanying this video // check only the first source // If sign language is provided, it must be provided for all sources this.signFile = this.$sources.first().attr('data-sign-src'); if (this.signFile) { if (this.debug) { console.log('This video has an accompanying sign language video: ' + this.signFile); } this.hasSignLanguage = true; this.injectSignPlayerCode(); } else { this.hasSignLanguage = false; } } }; AblePlayer.prototype.injectSignPlayerCode = function() { // create and inject surrounding HTML structure // If IOS: // If video: // IOS does not support any of the player's functionality // - everything plays in its own player // Therefore, AblePlayer is not loaded & all functionality is disabled // (this all determined. If this is IOS && video, this function is never called) // If audio: // HTML cannot be injected as a *parent* of the