@100mslive/hms-video-store 0.11.2-alpha.2 → 0.11.2-alpha.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.
@@ -1,4 +1,4 @@
1
- import { HLSConfig, HLSTimedMetadata, HMSAudioPlugin, HMSAudioTrackSettings, HMSConfig, HMSInteractivityCenter as IHMSInteractivityCenter, HMSLogLevel, HMSMediaStreamPlugin, HMSMidCallPreviewConfig, HMSPlaylistSettings, HMSPluginSupportResult, HMSPreferredSimulcastLayer, HMSPreviewConfig, HMSScreenShareConfig, HMSVideoPlugin, HMSVideoTrackSettings, RTMPRecordingConfig, TokenRequest, TokenRequestOptions } from './internal';
1
+ 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';
2
2
  import { HMSChangeMultiTrackStateParams, HMSGenericTypes, HMSMessageID, HMSPeerID, HMSPeerListIterator, HMSPeerListIteratorOptions, HMSRoleName, HMSTrackID, HMSTrackSource, IHMSPlaylistActions, IHMSSessionStoreActions } from './schema';
3
3
  import { HMSRoleChangeRequest } from './selectors';
4
4
  /**
@@ -429,6 +429,17 @@ export interface IHMSActions<T extends HMSGenericTypes = {
429
429
  **/
430
430
  setAppData(key: string, value: Record<string | number, any>, merge?: boolean): void;
431
431
  setAppData(key: string, value: any): void;
432
+ /**
433
+ * @param trackId
434
+ * pass the trackId from store (for instance, peer.audioTrack) for which you want the native MediaStreamTrack instance.
435
+ * Be cautious when using this and modifying the underlying MediastreamTrack.
436
+ * Note: In case of local peer, the native audio track will change the first time it is unmuted.
437
+ * In case of video track, the native track changes everytime you mute/unmute.
438
+ * Be cautious when using this. This will not be needed unless you want to do some extra processing on the audio/video tracks.
439
+ * We recommend using our plugins for the same instead
440
+ */
441
+ getNativeTrackById(trackId: string): MediaStreamTrack | undefined;
442
+ getTrackById(trackId: string): HMSTrack | undefined;
432
443
  getAuthTokenByRoomCode(tokenRequest: TokenRequest, tokenRequestOptions?: TokenRequestOptions): Promise<string>;
433
444
  /**
434
445
  * enable sending audio speaker data to beam