Skip to content

Commit 61c9277

Browse files
committed
Function doesn't use the YouTube ID argument.
1 parent 360b5eb commit 61c9277

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

scripts/track.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@
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) {

scripts/youtube.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@
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

0 commit comments

Comments
 (0)