@100mslive/hms-video-store 0.12.21 → 0.12.22-alpha.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.
Files changed (38) hide show
  1. package/dist/IHMSActions.d.ts +2 -1
  2. package/dist/analytics/AnalyticsEventFactory.d.ts +1 -0
  3. package/dist/error/ErrorCodes.d.ts +1 -0
  4. package/dist/error/ErrorFactory.d.ts +1 -0
  5. package/dist/index.cjs.js +9 -9
  6. package/dist/index.cjs.js.map +4 -4
  7. package/dist/index.d.ts +1 -1
  8. package/dist/index.js +9 -9
  9. package/dist/index.js.map +4 -4
  10. package/dist/interfaces/config.d.ts +0 -4
  11. package/dist/media/tracks/HMSLocalAudioTrack.d.ts +6 -1
  12. package/dist/media/tracks/HMSTrack.d.ts +1 -0
  13. package/dist/plugins/video/HMSMediaStreamPluginsManager.d.ts +1 -0
  14. package/dist/reactive-store/HMSSDKActions.d.ts +1 -0
  15. package/dist/schema/settings.d.ts +5 -0
  16. package/dist/sdk/index.d.ts +2 -0
  17. package/dist/utils/media.d.ts +7 -1
  18. package/dist/utils/track-audio-level-monitor.d.ts +1 -1
  19. package/package.json +2 -2
  20. package/src/IHMSActions.ts +3 -0
  21. package/src/analytics/AnalyticsEventFactory.ts +10 -0
  22. package/src/audio-sink-manager/AudioSinkManager.ts +7 -1
  23. package/src/device-manager/DeviceManager.ts +6 -6
  24. package/src/error/ErrorCodes.ts +3 -0
  25. package/src/error/ErrorFactory.ts +10 -0
  26. package/src/index.ts +1 -0
  27. package/src/interfaces/config.ts +0 -4
  28. package/src/media/tracks/HMSLocalAudioTrack.ts +47 -7
  29. package/src/media/tracks/HMSLocalVideoTrack.ts +11 -5
  30. package/src/media/tracks/HMSTrack.ts +5 -0
  31. package/src/media/tracks/HMSVideoTrack.ts +2 -2
  32. package/src/plugins/video/HMSMediaStreamPluginsManager.ts +4 -0
  33. package/src/reactive-store/HMSSDKActions.ts +4 -0
  34. package/src/schema/settings.ts +6 -0
  35. package/src/sdk/LocalTrackManager.test.ts +11 -1
  36. package/src/sdk/index.ts +39 -8
  37. package/src/utils/media.ts +17 -6
  38. package/src/utils/track-audio-level-monitor.ts +1 -1
@@ -3,7 +3,7 @@ import { TranscriptionConfig } from './interfaces/transcription-config';
3
3
  import { FindPeerByNameRequestParams } from './signal/interfaces';
4
4
  import { HMSSessionFeedback } from './end-call-feedback';
5
5
  import { HLSConfig, HLSTimedMetadata, HMSAudioPlugin, HMSAudioTrackSettings, HMSConfig, HMSInteractivityCenter as IHMSInteractivityCenter, HMSLogLevel, HMSMediaStreamPlugin, HMSMidCallPreviewConfig, HMSPlaylistSettings, HMSPluginSupportResult, HMSPreferredSimulcastLayer, HMSPreviewConfig, HMSScreenShareConfig, HMSTrack, HMSVideoPlugin, HMSVideoTrackSettings, RTMPRecordingConfig, TokenRequest, TokenRequestOptions } from './internal';
6
- import { HMSChangeMultiTrackStateParams, HMSGenericTypes, HMSMessageID, HMSPeer, HMSPeerID, HMSPeerListIterator, HMSPeerListIteratorOptions, HMSRoleName, HMSTrackID, HMSTrackSource, IHMSPlaylistActions, IHMSSessionStoreActions } from './schema';
6
+ import { DebugInfo, HMSChangeMultiTrackStateParams, HMSGenericTypes, HMSMessageID, HMSPeer, HMSPeerID, HMSPeerListIterator, HMSPeerListIteratorOptions, HMSRoleName, HMSTrackID, HMSTrackSource, IHMSPlaylistActions, IHMSSessionStoreActions } from './schema';
7
7
  import { HMSRoleChangeRequest } from './selectors';
8
8
  /**
9
9
  * The below interface defines our SDK API Surface for taking room related actions.
@@ -491,4 +491,5 @@ export interface IHMSActions<T extends HMSGenericTypes = {
491
491
  */
492
492
  setPlaylistSettings(settings: HMSPlaylistSettings): void;
493
493
  initDiagnostics(): HMSDiagnosticsInterface;
494
+ getDebugInfo(): DebugInfo;
494
495
  }
@@ -43,6 +43,7 @@ export default class AnalyticsEventFactory {
43
43
  static leave(): AnalyticsEvent;
44
44
  static autoplayError(): AnalyticsEvent;
45
45
  static audioPlaybackError(error: HMSException): AnalyticsEvent;
46
+ static audioRecovered(message: string): AnalyticsEvent;
46
47
  static deviceChange({ isUserSelection, selection, type, devices, error, }: {
47
48
  isUserSelection?: boolean;
48
49
  selection: Partial<SelectedDevices>;
@@ -26,6 +26,7 @@ export declare const ErrorCodes: {
26
26
  CURRENT_TAB_NOT_SHARED: number;
27
27
  AUDIO_PLAYBACK_ERROR: number;
28
28
  SELECTED_DEVICE_MISSING: number;
29
+ NO_DATA: number;
29
30
  };
30
31
  WebrtcErrors: {
31
32
  CREATE_OFFER_FAILED: number;
@@ -29,6 +29,7 @@ export declare const ErrorFactory: {
29
29
  CurrentTabNotShared(): HMSException;
30
30
  AudioPlaybackError(description: string): HMSException;
31
31
  SelectedDeviceMissing(deviceType: string): HMSException;
32
+ NoDataInTrack(description: string): HMSException;
32
33
  };
33
34
  WebrtcErrors: {
34
35
  CreateOfferFailed(action: HMSAction, description?: string): HMSException;