Skip to content

Commit

Permalink
update example video url to be absolute instead of relative
Browse files Browse the repository at this point in the history
  • Loading branch information
joshfarrant committed Jan 8, 2025
1 parent da89a1c commit 4432f8e
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions apps/docs/content/components/VideoPlayer.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {VideoPlayer} from '@primer/react-brand'

```jsx live
<VideoPlayer title="GitHub media player">
<VideoPlayer.Source src="https://github.com/primer/brand/raw/refs/heads/main/apps/storybook/static/example.mp4" />
<VideoPlayer.Source src="https://primer.github.io/brand/assets/example.mp4" />
<VideoPlayer.Track src="/brand/assets/example.vtt" default />
</VideoPlayer>
```
Expand All @@ -29,7 +29,7 @@ import {VideoPlayer} from '@primer/react-brand'
poster="/brand/assets/example-poster.png"
title="GitHub media player"
>
<VideoPlayer.Source src="https://github.com/primer/brand/raw/refs/heads/main/apps/storybook/static/example.mp4" />
<VideoPlayer.Source src="https://primer.github.io/brand/assets/example.mp4" />
<VideoPlayer.Track src="/brand/assets/example.vtt" default />
</VideoPlayer>
```
Expand All @@ -38,7 +38,7 @@ import {VideoPlayer} from '@primer/react-brand'

```jsx live
<VideoPlayer showBranding={false} title="GitHub media player">
<VideoPlayer.Source src="https://github.com/primer/brand/raw/refs/heads/main/apps/storybook/static/example.mp4" />
<VideoPlayer.Source src="https://primer.github.io/brand/assets/example.mp4" />
<VideoPlayer.Track src="/brand/assets/example.vtt" default />
</VideoPlayer>
```
Expand All @@ -47,7 +47,7 @@ import {VideoPlayer} from '@primer/react-brand'

```jsx live
<VideoPlayer visuallyHiddenTitle title="GitHub media player">
<VideoPlayer.Source src="https://github.com/primer/brand/raw/refs/heads/main/apps/storybook/static/example.mp4" />
<VideoPlayer.Source src="https://primer.github.io/brand/assets/example.mp4" />
<VideoPlayer.Track src="/brand/assets/example.vtt" default />
</VideoPlayer>
```
Expand All @@ -65,7 +65,7 @@ import {VideoPlayer} from '@primer/react-brand'
showFullScreenButton={false}
>
<VideoPlayer.Source
src="https://github.com/primer/brand/raw/refs/heads/main/apps/storybook/static/example.mp4"
src="https://primer.github.io/brand/assets/example.mp4"
type="video/mp4"
/>
<VideoPlayer.Track src="/brand/assets/example.vtt" default />
Expand All @@ -77,7 +77,7 @@ import {VideoPlayer} from '@primer/react-brand'
```jsx live
<VideoPlayer title="GitHub media player" showControlsWhenPaused={false}>
<VideoPlayer.Source
src="https://github.com/primer/brand/raw/refs/heads/main/apps/storybook/static/example.mp4"
src="https://primer.github.io/brand/assets/example.mp4"
type="video/mp4"
/>
<VideoPlayer.Track src="/brand/assets/example.vtt" default />
Expand All @@ -94,7 +94,7 @@ import {VideoPlayer} from '@primer/react-brand'
showControlsWhenPaused={false}
>
<VideoPlayer.Source
src="https://github.com/primer/brand/raw/refs/heads/main/apps/storybook/static/example.mp4"
src="https://primer.github.io/brand/assets/example.mp4"
type="video/mp4"
/>
<VideoPlayer.Track src="/brand/assets/example.vtt" default />
Expand All @@ -109,7 +109,7 @@ import {VideoPlayer} from '@primer/react-brand'
playIcon={() => <PlayIcon size={96} />}
>
<VideoPlayer.Source
src="https://github.com/primer/brand/raw/refs/heads/main/apps/storybook/static/example.mp4"
src="https://primer.github.io/brand/assets/example.mp4"
type="video/mp4"
/>
<VideoPlayer.Track src="/brand/assets/example.vtt" default />
Expand Down Expand Up @@ -139,7 +139,7 @@ Full documentation for the `useVideo` hook can be found [below](#usevideo-contex
showFullScreenButton={false}
>
<VideoPlayer.Source
src="https://github.com/primer/brand/raw/refs/heads/main/apps/storybook/static/example.mp4"
src="https://primer.github.io/brand/assets/example.mp4"
type="video/mp4"
/>
<VideoPlayer.Track src="/brand/assets/example.vtt" default />
Expand Down

0 comments on commit 4432f8e

Please sign in to comment.