-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add support for player-only <source> tag (#284)
fix #262
- Loading branch information
Showing
7 changed files
with
145 additions
and
115 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
examples/default-provider/app/(default)/source-tag/page.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { Metadata } from 'next'; | ||
import Player from 'next-video/player'; | ||
|
||
export const metadata: Metadata = { | ||
title: 'next-video - Player only', | ||
}; | ||
|
||
export default function Page() { | ||
return ( | ||
<> | ||
<section> | ||
<Player style={{ display: 'grid', width: '100%', aspectRatio: 1.9 }}> | ||
<source src="/country-clouds" type="video/mp4" /> | ||
</Player> | ||
</section> | ||
</> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Oops, something went wrong.