mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
fix(docs): add audio to getting started guide and other updates
This commit is contained in:
@@ -8,8 +8,7 @@ function generateUsageCode(renderer: Renderer, playbackId: string | null): strin
|
||||
const isMuxWithPlaybackId = renderer === 'mux' && playbackId;
|
||||
const playerProp = isMuxWithPlaybackId ? `playbackId="${playbackId}"` : 'src="https://example.com/video.mp4"';
|
||||
|
||||
return `// HomePage.tsx
|
||||
import { MyPlayer } from '../components/player';
|
||||
return `import { MyPlayer } from '../components/player';
|
||||
|
||||
export const HomePage = () => {
|
||||
return (
|
||||
@@ -29,7 +28,7 @@ export default function ReactUsageCodeBlock() {
|
||||
<TabsRoot maxWidth={false}>
|
||||
<TabsList label="React usage">
|
||||
<Tab value="react" initial>
|
||||
React
|
||||
./app/page.tsx
|
||||
</Tab>
|
||||
</TabsList>
|
||||
<TabsPanel value="react" initial>
|
||||
|
||||
Reference in New Issue
Block a user