|
|
@ -23,12 +23,14 @@ |
|
|
|
initialized = true; |
|
|
|
initialized = true; |
|
|
|
if ($('audio')[0].textTracks.length > 0) { |
|
|
|
if ($('audio')[0].textTracks.length > 0) { |
|
|
|
$('audio')[0].textTracks[0].oncuechange = function() { |
|
|
|
$('audio')[0].textTracks[0].oncuechange = function() { |
|
|
|
|
|
|
|
if (this.activeCues.length > 0) { |
|
|
|
var currentCue = this.activeCues[0].text; |
|
|
|
var currentCue = this.activeCues[0].text; |
|
|
|
$('#audioTrack').html(currentCue); |
|
|
|
$('#audioTrack').html(currentCue); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
Drupal.Audio = Drupal.Audio || {}; |
|
|
|
Drupal.Audio = Drupal.Audio || {}; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|