Skip to content

Commit f77d5ee

Browse files
committed
Pass data.text where trackText used to be.
1 parent b54a833 commit f77d5ee

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

scripts/track.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,17 +54,15 @@
5454
var trackDesc = track.desc;
5555

5656
return function (data) {
57-
// these are the two vars returned from loadTextObject
5857
var cues = thisObj.parseWebVTT(data).cues;
5958
if (thisObj.hasVts) {
60-
// setupVtsTracks() is in vts.js
6159
thisObj.setupVtsTracks(
6260
kind,
6361
trackLang,
6462
trackDesc,
6563
trackLabel,
6664
trackSrc,
67-
trackText
65+
data.text
6866
);
6967
}
7068
if (kind === 'captions' || kind === 'subtitles') {

0 commit comments

Comments
 (0)