@nomercy-entertainment/nomercy-video-player 2.9.2 → 2.9.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
## [Unreleased]
|
|
4
4
|
|
|
5
|
+
## [2.9.3] — 2026-11-18
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
|
|
9
|
+
- The Twitch embed takes clicks until its stream plays, so Twitch's own prompts work, such as the "Start Watching" button on a mature-content channel. Once the stream plays, clicks pass through to the player's controls again.
|
|
10
|
+
|
|
5
11
|
## [2.9.2] — 2026-11-18
|
|
6
12
|
|
|
7
13
|
### Fixed
|
|
@@ -73,7 +73,7 @@ export class TwitchEmbedBackend extends MediaElementBackend {
|
|
|
73
73
|
this.captionsLabel = captionsLabel;
|
|
74
74
|
this.element.style.display = 'none';
|
|
75
75
|
this.mount = document.createElement('div');
|
|
76
|
-
//
|
|
76
|
+
// Once playing, the mouse passes through to the player's own controls, and a click cannot pull keyboard focus into the iframe.
|
|
77
77
|
this.mount.style.cssText = 'position:absolute;inset:0;pointer-events:none;';
|
|
78
78
|
if (!window.matchMedia('(prefers-reduced-motion: reduce)').matches) {
|
|
79
79
|
this.mount.style.transition = RESIZE_TRANSITION;
|
|
@@ -121,6 +121,8 @@ export class TwitchEmbedBackend extends MediaElementBackend {
|
|
|
121
121
|
this.reportedLevel = -1;
|
|
122
122
|
this.backendState = 'loading';
|
|
123
123
|
this.raiseEmbed();
|
|
124
|
+
// Twitch's own prompts (the mature-content gate) need clicks until the stream plays.
|
|
125
|
+
this.mount.style.pointerEvents = 'auto';
|
|
124
126
|
const attempt = ++this.loadAttempt;
|
|
125
127
|
const sdk = await loadSdk();
|
|
126
128
|
if (attempt !== this.loadAttempt)
|
|
@@ -155,6 +157,7 @@ export class TwitchEmbedBackend extends MediaElementBackend {
|
|
|
155
157
|
window.clearInterval(this.poller);
|
|
156
158
|
this.player = undefined;
|
|
157
159
|
this.mount.replaceChildren();
|
|
160
|
+
this.mount.style.pointerEvents = 'none';
|
|
158
161
|
this.backendState = 'idle';
|
|
159
162
|
}
|
|
160
163
|
/** Removes everything this backend added to the page. */
|
|
@@ -301,6 +304,7 @@ export class TwitchEmbedBackend extends MediaElementBackend {
|
|
|
301
304
|
}
|
|
302
305
|
onPlaying() {
|
|
303
306
|
this.hasPlayed = true;
|
|
307
|
+
this.mount.style.pointerEvents = 'none';
|
|
304
308
|
this.applyVolume();
|
|
305
309
|
this.backendState = 'playing';
|
|
306
310
|
this.signal('play');
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nomercy-entertainment/nomercy-video-player",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.9.
|
|
4
|
+
"version": "2.9.3",
|
|
5
5
|
"description": "Headless, event-driven HTML5 video player with HLS streaming, subtitle rendering (VTT/ASS/SSA), and a plugin system. No UI — you build your own.",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "NoMercy Entertainment",
|