janus-simple-videoroom-client 1.0.2 → 1.0.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/dist/index.d.ts CHANGED
@@ -39,6 +39,7 @@ export interface VideoRoomPublisher {
39
39
  unpublish(): Promise<void>;
40
40
  }
41
41
  export interface VideoRoomSubscriber {
42
+ pluginHandle: JanusPluginHandleEx;
42
43
  onTrackAdded(callback: (track: MediaStreamTrack, mid: JanusMid) => void): void;
43
44
  onTrackRemoved(callback: (track: MediaStreamTrack, mid: JanusMid) => void): void;
44
45
  addStreams(streams: JanusStreamSpec[]): Promise<void>;
@@ -50,6 +51,7 @@ export interface VideoRoomSubscriber {
50
51
  unsubscribe(): Promise<void>;
51
52
  }
52
53
  export interface StreamingSubscriber {
54
+ pluginHandle: JanusPluginHandleEx;
53
55
  onTrackAdded(callback: (track: MediaStreamTrack, mid: JanusMid) => void): void;
54
56
  onTrackRemoved(callback: (track: MediaStreamTrack, mid: JanusMid) => void): void;
55
57
  pause(): Promise<void>;
package/dist/index.js CHANGED
@@ -593,6 +593,7 @@ function createVideoRoomSubscriber(session, roomId, streams, opts) {
593
593
  _a.sent();
594
594
  // construct and return the VideoRoomSubscriber object
595
595
  return [2 /*return*/, {
596
+ pluginHandle: handle_2,
596
597
  onTrackAdded: function (callback) {
597
598
  callbacks.set("onTrackAdded", callback);
598
599
  },
@@ -798,6 +799,7 @@ function createStreamingSubscriber(session, mountPointId, opts) {
798
799
  _a.sent();
799
800
  // construct and return the StreamingSubscriber object
800
801
  return [2 /*return*/, {
802
+ pluginHandle: handle_3,
801
803
  onTrackAdded: function (callback) {
802
804
  callbacks.set("onTrackAdded", callback);
803
805
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "janus-simple-videoroom-client",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "Provides a simple high-level API that makes it easy to work with the Janus VideoRoom plugin",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
package/src/index.ts CHANGED
@@ -34,6 +34,7 @@ export interface VideoRoomPublisher {
34
34
  }
35
35
 
36
36
  export interface VideoRoomSubscriber {
37
+ pluginHandle: JanusPluginHandleEx
37
38
  onTrackAdded(callback: (track: MediaStreamTrack, mid: JanusMid) => void): void
38
39
  onTrackRemoved(callback: (track: MediaStreamTrack, mid: JanusMid) => void): void
39
40
  addStreams(streams: JanusStreamSpec[]): Promise<void>
@@ -46,6 +47,7 @@ export interface VideoRoomSubscriber {
46
47
  }
47
48
 
48
49
  export interface StreamingSubscriber {
50
+ pluginHandle: JanusPluginHandleEx
49
51
  onTrackAdded(callback: (track: MediaStreamTrack, mid: JanusMid) => void): void
50
52
  onTrackRemoved(callback: (track: MediaStreamTrack, mid: JanusMid) => void): void
51
53
  pause(): Promise<void>
@@ -520,6 +522,7 @@ async function createVideoRoomSubscriber(
520
522
 
521
523
  // construct and return the VideoRoomSubscriber object
522
524
  return {
525
+ pluginHandle: handle,
523
526
  onTrackAdded(callback) {
524
527
  callbacks.set("onTrackAdded", callback)
525
528
  },
@@ -643,6 +646,7 @@ async function createStreamingSubscriber(
643
646
 
644
647
  // construct and return the StreamingSubscriber object
645
648
  return {
649
+ pluginHandle: handle,
646
650
  onTrackAdded(callback) {
647
651
  callbacks.set("onTrackAdded", callback)
648
652
  },