function setLanguage(input) {
	    var passive = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;

	    if (!is$1.string(input)) {
	      this.debug.warn('Invalid language argument', input);
	      return;
	    } // Normalize


	    var language = input.toLowerCase();
	    this.captions.language = language; // Set currentTrack

	    var tracks = captions.getTracks.call(this);
	    var track = captions.findTrack.call(this, [language]);
	    captions.set.call(this, tracks.indexOf(track), passive);
	  }
function setLanguage(input) {
	    var passive = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;

	    if (!is$1.string(input)) {
	      this.debug.warn('Invalid language argument', input);
	      return;
	    } 


	    var language = input.toLowerCase();
	    this.captions.language = language; 

	    var tracks = captions.getTracks.call(this);
	    var track = captions.findTrack.call(this, [language]);
	    captions.set.call(this, tracks.indexOf(track), passive);
	  }
function setLanguage ( input ) { var passive = arguments . length > 1 && arguments [ 1 ] !== undefined ? arguments [ 1 ] : true ; if ( ! is$1 . string ( input ) ) { this . debug . warn ( 'Invalid language argument' , input ) ; return ; } // Normalize var language = input . toLowerCase ( ) ; this . captions . language = language ; // Set currentTrack var tracks = captions . getTracks . call ( this ) ; var track = captions . findTrack . call ( this , [ language ] ) ; captions . set . call ( this , tracks . indexOf ( track ) , passive ) ; }
Set captions by language Used internally for the language setter with the passive option forced to false
Set captions by language Used internally for the language setter with the passive option forced to false