Skip to content

Commit

Permalink
Merge pull request #465 from cloudinary/ME-14358-paced-transcript-event
Browse files Browse the repository at this point in the history
ME-14358-paced-transcript-event
  • Loading branch information
tsi authored Dec 12, 2023
2 parents fcd72c5 + fd5b17c commit 9b67235
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/plugins/paced-transcript/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function pacedTranscript(config) {
const options = {
kind: config.kind || 'captions',
label: config.label || 'Captions',
default: config.default || true,
default: config.default,
srclang: config.srclang || 'en',
src: config.src || getCloudinaryUrl(
source.publicId(),
Expand All @@ -26,8 +26,9 @@ function pacedTranscript(config) {
const captionsTrack = player.addRemoteTextTrack({
kind: options.kind,
label: options.label,
srclang: options.srclang,
default: options.default,
srclang: options.srclang
mode: options.default ? 'showing' : 'disabled'
});

captions.forEach(caption => {
Expand Down Expand Up @@ -66,7 +67,7 @@ function pacedTranscript(config) {
return captions;
};

player.ready(() => {
player.one('loadedmetadata', () => {
initTranscript();
});
}
Expand Down

0 comments on commit 9b67235

Please sign in to comment.