|
|
@ -21,10 +21,12 @@ |
|
|
|
function init(context,settings){ |
|
|
|
function init(context,settings){ |
|
|
|
if (!initialized){ |
|
|
|
if (!initialized){ |
|
|
|
initialized = true; |
|
|
|
initialized = true; |
|
|
|
$('audio')[0].textTracks[0].oncuechange = function() { |
|
|
|
if ($('audio')[0].textTracks.length > 0) { |
|
|
|
var currentCue = this.activeCues[0].text; |
|
|
|
$('audio')[0].textTracks[0].oncuechange = function() { |
|
|
|
$('#audioTrack').html(currentCue); |
|
|
|
var currentCue = this.activeCues[0].text; |
|
|
|
} |
|
|
|
$('#audioTrack').html(currentCue); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
Drupal.Audio = Drupal.Audio || {}; |
|
|
|
Drupal.Audio = Drupal.Audio || {}; |
|
|
|