@marianmeres/webrtc 1.2.1 → 1.2.2

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.
Files changed (2) hide show
  1. package/README.md +4 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -461,7 +461,7 @@ deno task test
461
461
 
462
462
  ### Interactive Example
463
463
 
464
- The `example/` directory contains a working demo of two peers communicating via WebRTC data channels:
464
+ The `example/` directory contains a working demo of two peers communicating via WebRTC data channels and audio streams:
465
465
 
466
466
  ```bash
467
467
  # Build the example bundle
@@ -477,12 +477,14 @@ Then open `http://localhost:8000/` in your browser.
477
477
  - `index.html` - Parent page with two side-by-side iframes, acts as signaling relay via `postMessage`
478
478
  - `peer1.html` - The "offerer" peer (click "Connect" to initiate)
479
479
  - `peer2.html` - The "answerer" peer (waits for connection)
480
+ - `peer.js` - Shared utilities (factory, beep generation, logging)
480
481
 
481
482
  This example demonstrates:
482
483
  - P2P connection establishment without a signaling server (uses `postMessage` between iframes)
483
- - SDP offer/answer exchange
484
+ - SDP offer/answer exchange with bidirectional audio setup
484
485
  - ICE candidate exchange
485
486
  - Data channel creation and message passing
487
+ - **Audio streaming via WebRTC media tracks** (click "Send Beep" to transmit generated audio)
486
488
  - State change monitoring
487
489
 
488
490
  ## License
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marianmeres/webrtc",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "type": "module",
5
5
  "main": "dist/mod.js",
6
6
  "types": "dist/mod.d.ts",