Skip to content

Commit

Permalink
example: add manual captions test to basic example (#208)
Browse files Browse the repository at this point in the history
  • Loading branch information
luwes authored Mar 25, 2024
1 parent 24861f2 commit 3dcd0d8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/default-provider/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ export default function Page() {
return (
<>
<main>
<Video src={getStarted} style={{ maxWidth: 800 }} />
<Video src={getStarted} style={{ maxWidth: 800 }}>
<track kind="captions" src="/get-started.vtt" srcLang="en" label="English" default />
</Video>
</main>
</>
);
Expand Down
5 changes: 5 additions & 0 deletions examples/default-provider/public/get-started.vtt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
WEBVTT
1
00:00:07.000 --> 00:00:09.000
Video files are big!

0 comments on commit 3dcd0d8

Please sign in to comment.