Skip to content

Commit 919814d

Browse files
committed
Highlight descriptions in transcipt, not just captions
1 parent 05983c4 commit 919814d

7 files changed

Lines changed: 9 additions & 8 deletions

File tree

build/ableplayer.dist.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10373,7 +10373,7 @@ if (thisObj.useTtml && (trackSrc.endsWith('.xml') || trackText.startsWith('<?xml
1037310373
currentTime = parseFloat(currentTime);
1037410374

1037510375
// Highlight the current transcript item.
10376-
this.$transcriptArea.find('span.able-transcript-caption').each(function() {
10376+
this.$transcriptArea.find('span.able-transcript-seekpoint').each(function() {
1037710377
start = parseFloat($(this).attr('data-start'));
1037810378
end = parseFloat($(this).attr('data-end'));
1037910379
if (currentTime >= start && currentTime <= end) {

build/ableplayer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10373,7 +10373,7 @@ if (thisObj.useTtml && (trackSrc.endsWith('.xml') || trackText.startsWith('<?xml
1037310373
currentTime = parseFloat(currentTime);
1037410374

1037510375
// Highlight the current transcript item.
10376-
this.$transcriptArea.find('span.able-transcript-caption').each(function() {
10376+
this.$transcriptArea.find('span.able-transcript-seekpoint').each(function() {
1037710377
start = parseFloat($(this).attr('data-start'));
1037810378
end = parseFloat($(this).attr('data-end'));
1037910379
if (currentTime >= start && currentTime <= end) {

build/ableplayer.min.css

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/ableplayer.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ableplayer",
3-
"version": "3.2.17",
3+
"version": "3.2.18",
44
"description": "fully accessible HTML5 media player",
55
"homepage": "http://ableplayer.github.io/ableplayer",
66
"bugs": "https://github.com/ableplayer/ableplayer/issues",

scripts/transcript.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@
299299
currentTime = parseFloat(currentTime);
300300

301301
// Highlight the current transcript item.
302-
this.$transcriptArea.find('span.able-transcript-caption').each(function() {
302+
this.$transcriptArea.find('span.able-transcript-seekpoint').each(function() {
303303
start = parseFloat($(this).attr('data-start'));
304304
end = parseFloat($(this).attr('data-end'));
305305
if (currentTime >= start && currentTime <= end) {

styles/ableplayer.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -889,6 +889,7 @@ ul.able-popup {
889889
z-index: 7000;
890890
outline: none;
891891
padding-bottom: 25px; /* keep content above 16x16px drag icon */
892+
background-color: #FFF;
892893
}
893894
.able-transcript {
894895
position: relative; /* must be positioned for scrolling */

0 commit comments

Comments
 (0)