@stinkycomputing/web-live-player 0.1.0 → 0.1.1

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.
@@ -450,13 +450,12 @@ class En {
450
450
  d(this, "_queueSize", 0);
451
451
  d(this, "pendingTimestamps", []);
452
452
  d(this, "pendingFrames", []);
453
- d(this, "maxQueueSize");
454
453
  d(this, "onFrameDecoded");
455
454
  d(this, "onError");
456
455
  // @ts-ignore - kept for future use
457
456
  d(this, "onQueueOverflow");
458
457
  d(this, "configured", !1);
459
- this.onFrameDecoded = U.onFrameDecoded, this.onError = U.onError, this.onQueueOverflow = U.onQueueOverflow, this.maxQueueSize = U.maxQueueSize ?? 10;
458
+ this.onFrameDecoded = U.onFrameDecoded, this.onError = U.onError, this.onQueueOverflow = U.onQueueOverflow;
460
459
  }
461
460
  get queueSize() {
462
461
  return this._queueSize;
@@ -515,7 +514,7 @@ class En {
515
514
  * Send frame to worker for decoding
516
515
  */
517
516
  decode(U) {
518
- !this.worker || !this.configured || (this._queueSize >= this.maxQueueSize, this._queueSize++, this.worker.postMessage({
517
+ !this.worker || !this.configured || (this._queueSize++, this.worker.postMessage({
519
518
  type: "decode",
520
519
  data: U.buffer,
521
520
  offset: U.byteOffset,
package/package.json CHANGED
@@ -1,54 +1,57 @@
1
- {
2
- "name": "@stinkycomputing/web-live-player",
3
- "version": "0.1.0",
4
- "description": "A framework-agnostic video streaming library with MoQ support",
5
- "type": "module",
6
- "main": "./dist/web-live-player.cjs",
7
- "module": "./dist/web-live-player.mjs",
8
- "types": "./dist/index.d.ts",
9
- "exports": {
10
- ".": {
11
- "import": "./dist/web-live-player.mjs",
12
- "require": "./dist/web-live-player.cjs",
13
- "types": "./dist/index.d.ts"
14
- }
15
- },
16
- "files": [
17
- "dist",
18
- "src"
19
- ],
20
- "scripts": {
21
- "dev": "vite",
22
- "build": "vite build -c vite.config.lib.ts",
23
- "build:demo": "vite build",
24
- "preview": "vite preview",
25
- "typecheck": "tsc --noEmit",
26
- "test": "vitest run",
27
- "test:watch": "vitest",
28
- "clean": "node -e \"require('fs').rmSync('dist', { recursive: true, force: true })\"",
29
- "prepublishOnly": "npm run clean && npm run typecheck && npm test && npm run build",
30
- "publish:npm": "npm publish --access public"
31
- },
32
- "devDependencies": {
33
- "@types/node": "^20.0.0",
34
- "typescript": "^5.0.0",
35
- "vite": "^4.4.9",
36
- "vite-plugin-dts": "^3.0.0",
37
- "vitest": "^1.0.0"
38
- },
39
- "dependencies": {
40
- "mp4box": "^2.3.0",
41
- "stinky-moq-js": ">=0.1.18",
42
- "tinyh264": "^0.0.7"
43
- },
44
- "keywords": [
45
- "video",
46
- "streaming",
47
- "webcodecs",
48
- "moq",
49
- "media-over-quic",
50
- "live-video"
51
- ],
52
- "author": "",
53
- "license": "MIT"
54
- }
1
+ {
2
+ "name": "@stinkycomputing/web-live-player",
3
+ "version": "0.1.1",
4
+ "description": "A Player library for Sesame video streams using WebCodecs and MoQ",
5
+ "type": "module",
6
+ "main": "./dist/web-live-player.cjs",
7
+ "module": "./dist/web-live-player.mjs",
8
+ "types": "./dist/index.d.ts",
9
+ "repository": { "url": "https://github.com/stinkydev/web-live-player"},
10
+ "exports": {
11
+ ".": {
12
+ "import": "./dist/web-live-player.mjs",
13
+ "require": "./dist/web-live-player.cjs",
14
+ "types": "./dist/index.d.ts"
15
+ }
16
+ },
17
+ "files": [
18
+ "dist"
19
+ ],
20
+ "publishConfig": {
21
+ "access": "public"
22
+ },
23
+ "scripts": {
24
+ "dev": "vite",
25
+ "build": "vite build -c vite.config.lib.ts",
26
+ "build:demo": "vite build",
27
+ "preview": "vite preview",
28
+ "typecheck": "tsc --noEmit",
29
+ "test": "vitest run",
30
+ "test:watch": "vitest",
31
+ "clean": "node -e \"require('fs').rmSync('dist', { recursive: true, force: true })\"",
32
+ "prepublishOnly": "npm run clean && npm run typecheck && npm test && npm run build",
33
+ "publish:npm": "npm publish --access public"
34
+ },
35
+ "devDependencies": {
36
+ "@types/node": "^20.0.0",
37
+ "typescript": "^5.0.0",
38
+ "vite": "^4.4.9",
39
+ "vite-plugin-dts": "^3.0.0",
40
+ "vitest": "^1.0.0"
41
+ },
42
+ "dependencies": {
43
+ "mp4box": "^2.3.0",
44
+ "stinky-moq-js": ">=0.1.18",
45
+ "tinyh264": "^0.0.7"
46
+ },
47
+ "keywords": [
48
+ "video",
49
+ "streaming",
50
+ "webcodecs",
51
+ "moq",
52
+ "media-over-quic",
53
+ "live-video"
54
+ ],
55
+ "author": "",
56
+ "license": "MIT"
57
+ }
@@ -1,8 +0,0 @@
1
- /**
2
- * BasePlayer Tests
3
- *
4
- * Tests for the shared player base class functionality:
5
- * - Event handling (on/off/emit)
6
- * - State management
7
- */
8
- export {};
@@ -1,11 +0,0 @@
1
- /**
2
- * FrameScheduler Tests
3
- *
4
- * Tests for the critical frame scheduling and buffering logic.
5
- * The scheduler is responsible for:
6
- * - Buffering frames to handle network jitter
7
- * - Synchronizing stream time to real time
8
- * - Detecting and correcting drift
9
- * - Dropping frames appropriately when falling behind
10
- */
11
- export {};
@@ -1,2 +0,0 @@
1
- declare const _default: import('vite').UserConfig;
2
- export default _default;