Drop Prism, it doesn't work, so just don't use it
This commit is contained in:
parent
5366422ea7
commit
ded7d47e1e
8 changed files with 20 additions and 20 deletions
|
@ -3,7 +3,7 @@ Title: Audio Source
|
|||
Type: Document
|
||||
---
|
||||
|
||||
import {Prism} from "@astrojs/prism"
|
||||
import {Code} from "astro:components"
|
||||
import {Zorn} from "@minpluto/zorn"
|
||||
|
||||
<Zorn
|
||||
|
@ -18,7 +18,7 @@ import {Zorn} from "@minpluto/zorn"
|
|||
Since Zorn was originally built for the MinPluto frontend project, there are scenarios where the video source has no audio to get higher quality options. If you're in a scenario where the video source is missing audio, but you do have the audio itself, you can add that audio source to the video player. A separated `<audio/>` element is used, this will use a sync function in JavaScript to make sure the video and audio are synced. As before with the video source, it can be local or remote.
|
||||
|
||||
**Demo Used Above**
|
||||
<Prism lang="jsx" code={
|
||||
<Code lang="jsx" code={
|
||||
`---
|
||||
import {Zorn} from "@minpluto/zorn"
|
||||
---
|
||||
|
@ -34,9 +34,9 @@ import {Zorn} from "@minpluto/zorn"
|
|||
`}/>
|
||||
|
||||
**Local**
|
||||
<Prism lang="jsx" code={`<Zorn Audio="/media/audio.ogg"/>`}/>
|
||||
<Code lang="jsx" code={`<Zorn Audio="/media/audio.ogg"/>`}/>
|
||||
|
||||
> Use the `/public/` folder in your Astro project.
|
||||
|
||||
**Remote**
|
||||
<Prism lang="jsx" code={`<Zorn Audio="https://example.org/media/audio.ogg"/>`}/>
|
||||
<Code lang="jsx" code={`<Zorn Audio="https://example.org/media/audio.ogg"/>`}/>
|
Loading…
Add table
Add a link
Reference in a new issue