diff --git a/README.md b/README.md index ff9c0a5..7438668 100644 --- a/README.md +++ b/README.md @@ -42,6 +42,7 @@ import {Zorn} from '@minpluto/zorn' --- ``` +> [!NOTE] +> The option `PlayerName` is now required as of v0.4.6. + **With Separated Audio Source** Since Zorn is built for the MinPluto project, there are scenarios where the video source has no audio to get higher quality options, so Zorn has an option to add a seprated audio source to include. @@ -59,6 +63,7 @@ import {Zorn} from '@minpluto/zorn' --- +--- +const { + PlayerName +} = Astro.props +--- + + : - -} - +} \ No newline at end of file diff --git a/test/src/components/Switcher.astro b/test/src/components/Switcher.astro index b3d428e..3a9b42a 100644 --- a/test/src/components/Switcher.astro +++ b/test/src/components/Switcher.astro @@ -3,6 +3,7 @@ Separated Audio Live Stream Milieu Effect + Multiple Instances + +
+

+ As of Zorn Player v0.4.6, it is now possible to have multiple instances of the player on one page. With the new PlayerName option, which is required from now on. +
+
+ This update now identities each Zorn Player with the PlayerName option, as an ID such as zorn-player-PLAYER_NAME_HERE is now used. +
+
+ The PlayerName option will be identited by the built-in scripts using Astro's definer:vars feature for the script tag. +

+

+ Having multiple instances can still be buggy, depending on how you have it setup. +

+
+ \ No newline at end of file diff --git a/test/src/pages/with-separate-audio.astro b/test/src/pages/with-separate-audio.astro index 1d13cbb..0c59aed 100644 --- a/test/src/pages/with-separate-audio.astro +++ b/test/src/pages/with-separate-audio.astro @@ -6,6 +6,7 @@ import Switcher from '@components/Switcher.astro' ---