@portalshq/capability-video-delivery 0.1.8 → 0.1.9

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.
@@ -94,7 +94,13 @@ export class HlsPlaybackController {
94
94
  };
95
95
  media.onplaying = guard(() => { this.attempts = 0; this.observe("playing"); });
96
96
  media.onwaiting = guard(() => this.observe("buffering"));
97
- media.onstalled = guard(() => this.reconnect(new Error("media stalled")));
97
+ /* `onstalled` is deliberately left unbound. Chrome fires it every few
98
+ seconds on a perfectly healthy MSE-backed HLS stream — readyState
99
+ intact, no error, currentTime still climbing. Treating it as a failure
100
+ tore the stream down and restarted it from zero on a loop; reporting it
101
+ as buffering just flickers the status bar over playing video. A real
102
+ outage surfaces as `waiting` (underrun) or a fatal hls.js NETWORK_ERROR,
103
+ and both are already handled. */
98
104
  media.onerror = guard(() => this.reconnect(media.error ?? new Error("media playback failed")));
99
105
  }
100
106
  cleanupSource() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@portalshq/capability-video-delivery",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/portalshq/portals-cloud.git",
@@ -47,7 +47,9 @@
47
47
  },
48
48
  "devDependencies": {
49
49
  "@types/node": "^20.0.0",
50
+ "@types/react": "^18.0.0",
50
51
  "@vitest/coverage-v8": "^3.2.7",
52
+ "react": "^18.0.0",
51
53
  "typescript": "^5.5.0",
52
54
  "vitest": "^3.2.7"
53
55
  },
@@ -55,4 +57,4 @@
55
57
  "access": "public",
56
58
  "registry": "https://registry.npmjs.org/"
57
59
  }
58
- }
60
+ }