diff --git a/docs/subtitles-and-captions.html b/docs/subtitles-and-captions.html index c04a45ab..208fb8bc 100644 --- a/docs/subtitles-and-captions.html +++ b/docs/subtitles-and-captions.html @@ -117,9 +117,7 @@ // Paced const pacedPlayer = cloudinary.videoPlayer('paced', { - cloudName: 'demo', - autoplay: true, - muted: true + cloudName: 'demo' }); const publicId = 'lincoln'; @@ -180,9 +178,7 @@ // Karaoke const karaokePlayer = cloudinary.videoPlayer('karaoke', { - cloudName: 'demo', - autoplay: true, - muted: true + cloudName: 'demo' }); karaokePlayer.source('lincoln', { @@ -212,6 +208,22 @@ } } }); + + // Transcript from URL + const urlTranscriptPlayer = cloudinary.videoPlayer('url-transcript', { + cloudName: 'demo' + }); + + urlTranscriptPlayer.source('elephants', { + textTracks: { + captions: { + label: "Lincoln's Transcript", + url: 'https://res.cloudinary.com/demo/raw/upload/lincoln.transcript', + wordHighlight: true, + maxWords: 8 + } + } + }); }, false); @@ -227,8 +239,6 @@

Subtitles & Captions

id="player" playsinline controls - muted - autoplay class="cld-video-player cld-fluid" crossorigin="anonymous" width="500" @@ -240,7 +250,6 @@

Playlist Subtitles (switch per source)

id="playlist" playsinline controls - muted class="cld-video-player cld-fluid" crossorigin="anonymous" width="500" @@ -290,7 +299,6 @@

Paced & Styled Captions

id="paced" playsinline controls - muted class="cld-video-player cld-fluid" crossorigin="anonymous" width="500" @@ -302,7 +310,17 @@

Karaoke player

id="karaoke" playsinline controls - muted + class="cld-video-player cld-fluid" + crossorigin="anonymous" + width="500" + > + +

Transcript from URL

+ +