@livedigital/client 2.42.0 → 2.43.0

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.
@@ -311,3 +311,7 @@ export interface TrackWithEncodings {
311
311
  getCodecOptions(): ProducerCodecOptions;
312
312
  getEncodings(): RtpEncodingParameters[];
313
313
  }
314
+ export declare type ActivityConfirmationRequiredPayload = {
315
+ channelId: string;
316
+ time: number;
317
+ };
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@livedigital/client",
3
3
  "author": "vlprojects",
4
4
  "license": "MIT",
5
- "version": "2.42.0",
5
+ "version": "2.43.0",
6
6
  "private": false,
7
7
  "bugs": {
8
8
  "url": "https://github.com/vlprojects/livedigital-sdk/issues"
@@ -1,4 +1,5 @@
1
1
  import {
2
+ ActivityConfirmationRequiredPayload,
2
3
  ChannelEvent,
3
4
  LogMessageHandler,
4
5
  PeerResponse,
@@ -47,7 +48,7 @@ class ChannelEventHandler {
47
48
  this.logger.debug('Peer left the channel', { peerId });
48
49
  });
49
50
 
50
- connection.on(CHANNEL_EVENTS.activityConfirmationRequired, (event: ChannelEvent) => {
51
+ connection.on(CHANNEL_EVENTS.activityConfirmationRequired, (event: ActivityConfirmationRequiredPayload) => {
51
52
  this.engine.clientEventEmitter.safeEmit(CLIENT_EVENTS.activityConfirmationRequired, event);
52
53
  this.logger.info('Notify the channel that activity confirmation is required', event);
53
54
  });
@@ -376,3 +376,8 @@ export interface TrackWithEncodings {
376
376
  getCodecOptions(): ProducerCodecOptions;
377
377
  getEncodings(): RtpEncodingParameters[];
378
378
  }
379
+
380
+ export type ActivityConfirmationRequiredPayload = {
381
+ channelId: string;
382
+ time: number;
383
+ };