1
0
mirror of https://github.com/videojs/video.js.git synced 2025-01-25 11:13:52 +02:00

Fixed no-text-tracks error

This commit is contained in:
Steve Heffernan 2012-03-19 15:55:05 -07:00
parent 10ec069e71
commit 83ed670dc3

View File

@ -84,6 +84,7 @@ _V_.Player = _V_.Component.extend({
}
// Tracks defined in tracks.js
this.textTracks = [];
if (options.tracks && options.tracks.length > 0) {
this.addTextTracks(options.tracks);
}