-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: replace Mux player w/ Media Chrome + media (#303)
* feat: replace Mux player w/ Media Chrome + media * fix: slotted poster image * fix: upgrade pkgs * fix: add custom theme prop and example * fix: upgrade Media Chrome * fix: use Sutro as default * docs: add default player docs * fix: add hls-video, dash-video. src adapting types * fix: test fixture * docs: update readme * site: fix active link * docs: move change player theme to guides section * docs: make more clear it's on the Video comp * fix: use @mux/mux-video/react pkg
- Loading branch information
Showing
21 changed files
with
713 additions
and
235 deletions.
There are no files selected for viewing
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
20 changes: 20 additions & 0 deletions
20
examples/default-provider/app/(default)/custom-theme/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,20 @@ | ||
import { Metadata } from 'next'; | ||
import Video from 'next-video'; | ||
import Instaplay from 'player.style/instaplay/react'; | ||
import getStarted from '/videos/get-started.mp4?thumbnailTime=0'; | ||
|
||
export const metadata: Metadata = { | ||
title: 'next-video - Custom theme', | ||
}; | ||
|
||
export default function Page() { | ||
return ( | ||
<> | ||
<section> | ||
<Video src={getStarted} theme={Instaplay}> | ||
<track kind="captions" src="/get-started.vtt" srcLang="en" label="English" default /> | ||
</Video> | ||
</section> | ||
</> | ||
); | ||
} |
19 changes: 19 additions & 0 deletions
19
examples/default-provider/app/(default)/dash-source/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,19 @@ | ||
import { Metadata } from 'next'; | ||
import Player from 'next-video/player'; | ||
|
||
export const metadata: Metadata = { | ||
title: 'next-video - DASH source', | ||
}; | ||
|
||
export default function Page() { | ||
return ( | ||
<> | ||
<section> | ||
<Player | ||
style={{ display: 'grid', width: '100%', aspectRatio: '16/9' }} | ||
src="https://player.vimeo.com/external/648359100.mpd?s=a4419a2e2113cc24a87aef2f93ef69a8e4c8fb0c" | ||
/> | ||
</section> | ||
</> | ||
); | ||
} |
19 changes: 19 additions & 0 deletions
19
examples/default-provider/app/(default)/hls-source/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,19 @@ | ||
import { Metadata } from 'next'; | ||
import Player from 'next-video/player'; | ||
|
||
export const metadata: Metadata = { | ||
title: 'next-video - HLS source', | ||
}; | ||
|
||
export default function Page() { | ||
return ( | ||
<> | ||
<section> | ||
<Player | ||
style={{ display: 'grid', width: '100%', aspectRatio: '16/9' }} | ||
src="https://stream.mux.com/sxY31L6Opl02RWPpm3Gro9XTe7fRHBjs92x93kiB1vpc.m3u8" | ||
/> | ||
</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
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
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
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
Oops, something went wrong.