File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 220220 // this media has no track elements
221221 // if this is a youtube or vimeo player, check there for captions/subtitles
222222 if ( this . player === 'youtube' ) {
223- this . getYouTubeCaptionTracks ( this . youTubeId ) . then ( function ( ) {
223+ this . getYouTubeCaptionTracks ( ) . then ( function ( ) {
224224 if ( thisObj . hasCaptions ) {
225225 thisObj . usingYouTubeCaptions = true ;
226226 if ( thisObj . $captionsWrapper ) {
Original file line number Diff line number Diff line change 183183 }
184184 } ;
185185
186- AblePlayer . prototype . getYouTubeCaptionTracks = function ( youTubeId ) {
186+ AblePlayer . prototype . getYouTubeCaptionTracks = function ( ) {
187187
188188 // get data via YouTube IFrame Player API, and push data to this.tracks & this.captions
189189 // NOTE: Caption tracks are not available through the IFrame Player API
You can’t perform that action at this time.
0 commit comments