Unverified Commit e98e79f3 authored by tokkiyaa's avatar tokkiyaa Committed by GitHub

docs: add missing / (#66105)

Co-authored-by: 's avatarSam Ko <sam@vercel.com>
parent 24180bda
...@@ -216,25 +216,21 @@ If you have subtitles for your video, you can easily add them using the `<track> ...@@ -216,25 +216,21 @@ If you have subtitles for your video, you can easily add them using the `<track>
```jsx filename="app/page.jsx" ```jsx filename="app/page.jsx"
async function VideoComponent({ fileName }) { async function VideoComponent({ fileName }) {
const {blobs} = await list({ const { blobs } = await list({
prefix: fileName, prefix: fileName,
limit: 2 limit: 2,
}); })
const { url } = blobs[0]; const { url } = blobs[0]
const { url: captionsUrl } = blobs[1]; const { url: captionsUrl } = blobs[1]
return ( return (
<video controls preload="none" aria-label="Video player"> <video controls preload="none" aria-label="Video player">
<source src={url} type="video/mp4" /> <source src={url} type="video/mp4" />
<track <track src={captionsUrl} kind="subtitles" srcLang="en" label="English" />
src={captionsUrl}
kind="subtitles"
srcLang="en"
label="English">
Your browser does not support the video tag. Your browser does not support the video tag.
</video> </video>
); )
}; }
``` ```
By following this approach, you can effectively self-host and integrate videos into your Next.js applications. By following this approach, you can effectively self-host and integrate videos into your Next.js applications.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment