(function ($) { AblePlayer.prototype.initSignLanguage = function() { // Sign language is only currently supported in HTML5 player, not YouTube or Vimeo 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.isIOS()) { // IOS does not allow multiple videos to play simultaneously // Therefore, sign language as rendered by Able Player unfortunately won't work this.hasSignLanguage = false; if (this.debug) { console.log('Sign language has been disabled due to IOS restrictions'); } } else { if (this.debug) { console.log('This video has an accompanying sign language video: ' + this.signFile); } this.hasSignLanguage = true; this.injectSignPlayerCode(); } } else { this.hasSignLanguage = false; } } else { this.hasSignLanguage = false; } }; AblePlayer.prototype.injectSignPlayerCode = function() { // create and inject surrounding HTML structure var thisObj, signVideoId, signVideoWidth, i, signSrc, srcType, $signSource; thisObj = this; signVideoWidth = this.getDefaultWidth('sign'); signVideoId = this.mediaId + '-sign'; this.$signVideo = $('