From 0a7f331c1f5d3941e2b7b3877e243ae8451aede7 Mon Sep 17 00:00:00 2001 From: Korbs Date: Mon, 4 Nov 2024 19:52:55 -0500 Subject: [PATCH 1/6] Add new demo page for "Multi-Instance" demo --- test/src/components/Switcher.astro | 1 + test/src/pages/multi.astro | 91 ++++++++++++++++++++++++++++++ 2 files changed, 92 insertions(+) create mode 100644 test/src/pages/multi.astro 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 -- 2.45.2 From 00d15447532b1408e2713b698282120836e84086 Mon Sep 17 00:00:00 2001 From: Korbs Date: Mon, 4 Nov 2024 19:53:18 -0500 Subject: [PATCH 2/6] Breaking change: The `PlayerName` option is now required --- test/src/pages/index.astro | 1 + test/src/pages/live.astro | 1 + test/src/pages/milieu.astro | 1 + test/src/pages/with-separate-audio.astro | 1 + 4 files changed, 4 insertions(+) diff --git a/test/src/pages/index.astro b/test/src/pages/index.astro index d83bdeb..f6d01b4 100644 --- a/test/src/pages/index.astro +++ b/test/src/pages/index.astro @@ -15,6 +15,7 @@ import { Date: Mon, 4 Nov 2024 19:54:01 -0500 Subject: [PATCH 3/6] Create `PlayerName` option to identify specific Zorn players --- src/Controls/Controller.astro | 97 +++++++++++++++++------------------ src/Controls/Seek.astro | 24 +++++---- src/Controls/Sync.astro | 12 +++-- src/Player.astro | 28 +++++----- 4 files changed, 84 insertions(+), 77 deletions(-) diff --git a/src/Controls/Controller.astro b/src/Controls/Controller.astro index 34aef98..04b8c4d 100644 --- a/src/Controls/Controller.astro +++ b/src/Controls/Controller.astro @@ -1,4 +1,10 @@ - : - -} - +} \ No newline at end of file -- 2.45.2 From 713363752690607007d7d3d1c4ac76fde171a65b Mon Sep 17 00:00:00 2001 From: Korbs Date: Mon, 4 Nov 2024 19:54:13 -0500 Subject: [PATCH 4/6] Update documention related to the breaking change --- README.md | 5 +++++ 1 file changed, 5 insertions(+) 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' --- Date: Mon, 4 Nov 2024 19:54:20 -0500 Subject: [PATCH 5/6] Update TODO --- TODO.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TODO.md b/TODO.md index 8a3995b..d395188 100644 --- a/TODO.md +++ b/TODO.md @@ -3,11 +3,11 @@ - [ ] Multi-Video Tracks ([`videoTracks`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/videoTracks)) - [ ] Multi-Audio Tracks ([`audioTracks`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/audioTracks)) - [ ] Playback Rate ([`playbackRate`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/playbackRate)) - - [ ] Add Picture-in-Picture button + - [x] Add Picture-in-Picture button - [x] Volume Controller - [ ] Mobile Gestures - [ ] Cast Support - - [ ] Allow for multiple players on one page + - [x] Allow for multiple players on one page - [ ] 360 Video Support - [ ] Milieu Settings - [ ] Mode (Default | Fullscreen) -- 2.45.2 From 76e9c317d70272890eb2f5affe9f1d0f29300c36 Mon Sep 17 00:00:00 2001 From: Korbs Date: Mon, 4 Nov 2024 19:54:26 -0500 Subject: [PATCH 6/6] Bump version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index a882b40..58c7c52 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "live-streaming" ], "type": "module", - "version": "0.4.54", + "version": "0.4.6", "exports": { ".": "./index.ts" }, -- 2.45.2