@100mslive/react-native-hms 1.10.0 → 1.10.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.
- package/android/build.gradle +1 -0
- package/android/local.properties +1 -8
- package/android/src/main/java/com/reactnativehmssdk/HMSDecoder.kt +2 -0
- package/android/src/main/java/com/reactnativehmssdk/HMSHelper.kt +15 -0
- package/android/src/main/java/com/reactnativehmssdk/HMSManager.kt +133 -0
- package/android/src/main/java/com/reactnativehmssdk/HMSRNSDK.kt +3 -0
- package/android/src/main/java/com/reactnativehmssdk/Interactivity/HMSInteractivityDecoder.kt +1 -1
- package/ios/HMSDecoder.swift +11 -0
- package/ios/HMSHelper.swift +64 -9
- package/ios/HMSManager.m +31 -0
- package/ios/HMSManager.swift +72 -0
- package/ios/HMSRNSDK.swift +97 -1
- package/lib/commonjs/classes/HMSAudioCodec.js.map +1 -1
- package/lib/commonjs/classes/HMSAudioDevice.js.map +1 -1
- package/lib/commonjs/classes/HMSAudioFilePlayerNode.js.map +1 -1
- package/lib/commonjs/classes/HMSAudioMixerSource.js +1 -1
- package/lib/commonjs/classes/HMSAudioMixerSource.js.map +1 -1
- package/lib/commonjs/classes/HMSAudioMixingMode.js.map +1 -1
- package/lib/commonjs/classes/HMSAudioMode.js.map +1 -1
- package/lib/commonjs/classes/HMSAudioNode.js +1 -1
- package/lib/commonjs/classes/HMSAudioNode.js.map +1 -1
- package/lib/commonjs/classes/HMSAudioSettings.js +1 -1
- package/lib/commonjs/classes/HMSAudioSettings.js.map +1 -1
- package/lib/commonjs/classes/HMSAudioTrack.js.map +1 -1
- package/lib/commonjs/classes/HMSAudioTrackSettings.js +10 -3
- package/lib/commonjs/classes/HMSAudioTrackSettings.js.map +1 -1
- package/lib/commonjs/classes/HMSBrowserRecordingState.js +1 -1
- package/lib/commonjs/classes/HMSBrowserRecordingState.js.map +1 -1
- package/lib/commonjs/classes/HMSCameraControl.js.map +1 -1
- package/lib/commonjs/classes/HMSCameraFacing.js.map +1 -1
- package/lib/commonjs/classes/HMSChangeTrackStateRequest.js +1 -1
- package/lib/commonjs/classes/HMSChangeTrackStateRequest.js.map +1 -1
- package/lib/commonjs/classes/HMSConfig.js +1 -1
- package/lib/commonjs/classes/HMSConfig.js.map +1 -1
- package/lib/commonjs/classes/HMSConstants.js.map +1 -1
- package/lib/commonjs/classes/HMSEncoder.js +1 -1
- package/lib/commonjs/classes/HMSEncoder.js.map +1 -1
- package/lib/commonjs/classes/HMSEventEmitter.js.map +1 -1
- package/lib/commonjs/classes/HMSException.js +1 -1
- package/lib/commonjs/classes/HMSException.js.map +1 -1
- package/lib/commonjs/classes/HMSHLSConfig.js +1 -1
- package/lib/commonjs/classes/HMSHLSConfig.js.map +1 -1
- package/lib/commonjs/classes/HMSHLSMeetingURLVariant.js +1 -1
- package/lib/commonjs/classes/HMSHLSMeetingURLVariant.js.map +1 -1
- package/lib/commonjs/classes/HMSHLSRecordingConfig.js +1 -1
- package/lib/commonjs/classes/HMSHLSRecordingConfig.js.map +1 -1
- package/lib/commonjs/classes/HMSHLSRecordingState.js +1 -1
- package/lib/commonjs/classes/HMSHLSRecordingState.js.map +1 -1
- package/lib/commonjs/classes/HMSHLSStreamingState.js +1 -1
- package/lib/commonjs/classes/HMSHLSStreamingState.js.map +1 -1
- package/lib/commonjs/classes/HMSHLSTimedMetadata.js.map +1 -1
- package/lib/commonjs/classes/HMSHLSVariant.js +1 -1
- package/lib/commonjs/classes/HMSHLSVariant.js.map +1 -1
- package/lib/commonjs/classes/HMSHelper.js.map +1 -1
- package/lib/commonjs/classes/HMSIOSAudioMode.js.map +1 -1
- package/lib/commonjs/classes/HMSInteractivityCenter.js +1 -1
- package/lib/commonjs/classes/HMSInteractivityCenter.js.map +1 -1
- package/lib/commonjs/classes/HMSInteractivityEncoder.js.map +1 -1
- package/lib/commonjs/classes/HMSLayer.js.map +1 -1
- package/lib/commonjs/classes/HMSLocalAudioStats.js +1 -1
- package/lib/commonjs/classes/HMSLocalAudioStats.js.map +1 -1
- package/lib/commonjs/classes/HMSLocalAudioTrack.js +1 -1
- package/lib/commonjs/classes/HMSLocalAudioTrack.js.map +1 -1
- package/lib/commonjs/classes/HMSLocalPeer.js +1 -1
- package/lib/commonjs/classes/HMSLocalPeer.js.map +1 -1
- package/lib/commonjs/classes/HMSLocalVideoStats.js +1 -1
- package/lib/commonjs/classes/HMSLocalVideoStats.js.map +1 -1
- package/lib/commonjs/classes/HMSLocalVideoTrack.js +1 -1
- package/lib/commonjs/classes/HMSLocalVideoTrack.js.map +1 -1
- package/lib/commonjs/classes/HMSLogAlarmManager.js.map +1 -1
- package/lib/commonjs/classes/HMSLogLevel.js.map +1 -1
- package/lib/commonjs/classes/HMSLogSettings.js +1 -1
- package/lib/commonjs/classes/HMSLogSettings.js.map +1 -1
- package/lib/commonjs/classes/HMSLogger.js +1 -1
- package/lib/commonjs/classes/HMSLogger.js.map +1 -1
- package/lib/commonjs/classes/HMSMessage.js +1 -1
- package/lib/commonjs/classes/HMSMessage.js.map +1 -1
- package/lib/commonjs/classes/HMSMessageRecipient.js +1 -1
- package/lib/commonjs/classes/HMSMessageRecipient.js.map +1 -1
- package/lib/commonjs/classes/HMSMessageRecipientType.js.map +1 -1
- package/lib/commonjs/classes/HMSMicNode.js.map +1 -1
- package/lib/commonjs/classes/HMSNativeEventEmitter.js +1 -1
- package/lib/commonjs/classes/HMSNativeEventEmitter.js.map +1 -1
- package/lib/commonjs/classes/HMSNativeEventListener.js.map +1 -1
- package/lib/commonjs/classes/HMSNetworkQuality.js +1 -1
- package/lib/commonjs/classes/HMSNetworkQuality.js.map +1 -1
- package/lib/commonjs/classes/HMSNoiseCancellationPlugin.js +127 -0
- package/lib/commonjs/classes/HMSNoiseCancellationPlugin.js.map +1 -0
- package/lib/commonjs/classes/HMSPIPConfig.js.map +1 -1
- package/lib/commonjs/classes/HMSPIPListenerActions.js.map +1 -1
- package/lib/commonjs/classes/HMSPeer.js +17 -1
- package/lib/commonjs/classes/HMSPeer.js.map +1 -1
- package/lib/commonjs/classes/HMSPeerListIterator.js +1 -1
- package/lib/commonjs/classes/HMSPeerListIterator.js.map +1 -1
- package/lib/commonjs/classes/HMSPeerListIteratorOptions.js.map +1 -1
- package/lib/commonjs/classes/HMSPeerType.js +13 -0
- package/lib/commonjs/classes/HMSPeerType.js.map +1 -0
- package/lib/commonjs/classes/HMSPeerUpdate.js.map +1 -1
- package/lib/commonjs/classes/HMSPeersCache.js +1 -1
- package/lib/commonjs/classes/HMSPeersCache.js.map +1 -1
- package/lib/commonjs/classes/HMSPermissions.js +1 -1
- package/lib/commonjs/classes/HMSPermissions.js.map +1 -1
- package/lib/commonjs/classes/HMSPollsListenerActions.js.map +1 -1
- package/lib/commonjs/classes/HMSPublishSettings.js +1 -1
- package/lib/commonjs/classes/HMSPublishSettings.js.map +1 -1
- package/lib/commonjs/classes/HMSQualityLimitationReason.js.map +1 -1
- package/lib/commonjs/classes/HMSQualityLimitationReasons.js +1 -1
- package/lib/commonjs/classes/HMSQualityLimitationReasons.js.map +1 -1
- package/lib/commonjs/classes/HMSRTCStats.js +1 -1
- package/lib/commonjs/classes/HMSRTCStats.js.map +1 -1
- package/lib/commonjs/classes/HMSRTCStatsReport.js +1 -1
- package/lib/commonjs/classes/HMSRTCStatsReport.js.map +1 -1
- package/lib/commonjs/classes/HMSRTMPConfig.js +1 -1
- package/lib/commonjs/classes/HMSRTMPConfig.js.map +1 -1
- package/lib/commonjs/classes/HMSRecordingState.js.map +1 -1
- package/lib/commonjs/classes/HMSRemoteAudioStats.js +1 -1
- package/lib/commonjs/classes/HMSRemoteAudioStats.js.map +1 -1
- package/lib/commonjs/classes/HMSRemoteAudioTrack.js +1 -1
- package/lib/commonjs/classes/HMSRemoteAudioTrack.js.map +1 -1
- package/lib/commonjs/classes/HMSRemotePeer.js +1 -1
- package/lib/commonjs/classes/HMSRemotePeer.js.map +1 -1
- package/lib/commonjs/classes/HMSRemoteVideoStats.js +1 -1
- package/lib/commonjs/classes/HMSRemoteVideoStats.js.map +1 -1
- package/lib/commonjs/classes/HMSRemoteVideoTrack.js +1 -1
- package/lib/commonjs/classes/HMSRemoteVideoTrack.js.map +1 -1
- package/lib/commonjs/classes/HMSRole.js +1 -1
- package/lib/commonjs/classes/HMSRole.js.map +1 -1
- package/lib/commonjs/classes/HMSRoleChangeRequest.js +1 -1
- package/lib/commonjs/classes/HMSRoleChangeRequest.js.map +1 -1
- package/lib/commonjs/classes/HMSRoom.js +1 -1
- package/lib/commonjs/classes/HMSRoom.js.map +1 -1
- package/lib/commonjs/classes/HMSRoomCache.js +1 -1
- package/lib/commonjs/classes/HMSRoomCache.js.map +1 -1
- package/lib/commonjs/classes/HMSRoomUpdate.js.map +1 -1
- package/lib/commonjs/classes/HMSRtmpStreamingState.js +1 -1
- package/lib/commonjs/classes/HMSRtmpStreamingState.js.map +1 -1
- package/lib/commonjs/classes/HMSRtmpVideoResolution.js +1 -1
- package/lib/commonjs/classes/HMSRtmpVideoResolution.js.map +1 -1
- package/lib/commonjs/classes/HMSSDK.js +21 -12
- package/lib/commonjs/classes/HMSSDK.js.map +1 -1
- package/lib/commonjs/classes/HMSScreenBroadcastAudioReceiverNode.js.map +1 -1
- package/lib/commonjs/classes/HMSServerRecordingState.js +1 -1
- package/lib/commonjs/classes/HMSServerRecordingState.js.map +1 -1
- package/lib/commonjs/classes/HMSSessionStore.js +1 -1
- package/lib/commonjs/classes/HMSSessionStore.js.map +1 -1
- package/lib/commonjs/classes/HMSSimulcastLayerDefinition.js +1 -1
- package/lib/commonjs/classes/HMSSimulcastLayerDefinition.js.map +1 -1
- package/lib/commonjs/classes/HMSSimulcastLayerSettings.js +1 -1
- package/lib/commonjs/classes/HMSSimulcastLayerSettings.js.map +1 -1
- package/lib/commonjs/classes/HMSSimulcastLayerSettingsPolicy.js +1 -1
- package/lib/commonjs/classes/HMSSimulcastLayerSettingsPolicy.js.map +1 -1
- package/lib/commonjs/classes/HMSSimulcastSettings.js +1 -1
- package/lib/commonjs/classes/HMSSimulcastSettings.js.map +1 -1
- package/lib/commonjs/classes/HMSSimulcastSettingsPolicy.js +1 -1
- package/lib/commonjs/classes/HMSSimulcastSettingsPolicy.js.map +1 -1
- package/lib/commonjs/classes/HMSSpeaker.js +1 -1
- package/lib/commonjs/classes/HMSSpeaker.js.map +1 -1
- package/lib/commonjs/classes/HMSStreamingState.js.map +1 -1
- package/lib/commonjs/classes/HMSSubscribeDegradationPolicy.js +1 -1
- package/lib/commonjs/classes/HMSSubscribeDegradationPolicy.js.map +1 -1
- package/lib/commonjs/classes/HMSSubscribeSettings.js +1 -1
- package/lib/commonjs/classes/HMSSubscribeSettings.js.map +1 -1
- package/lib/commonjs/classes/HMSTrack.js +1 -1
- package/lib/commonjs/classes/HMSTrack.js.map +1 -1
- package/lib/commonjs/classes/HMSTrackSettings.js +1 -1
- package/lib/commonjs/classes/HMSTrackSettings.js.map +1 -1
- package/lib/commonjs/classes/HMSTrackSettingsInitState.js.map +1 -1
- package/lib/commonjs/classes/HMSTrackSource.js.map +1 -1
- package/lib/commonjs/classes/HMSTrackType.js.map +1 -1
- package/lib/commonjs/classes/HMSTrackUpdate.js.map +1 -1
- package/lib/commonjs/classes/HMSUpdateListenerActions.js.map +1 -1
- package/lib/commonjs/classes/HMSVideoCodec.js.map +1 -1
- package/lib/commonjs/classes/HMSVideoResolution.js +1 -1
- package/lib/commonjs/classes/HMSVideoResolution.js.map +1 -1
- package/lib/commonjs/classes/HMSVideoSettings.js +1 -1
- package/lib/commonjs/classes/HMSVideoSettings.js.map +1 -1
- package/lib/commonjs/classes/HMSVideoTrack.js +1 -1
- package/lib/commonjs/classes/HMSVideoTrack.js.map +1 -1
- package/lib/commonjs/classes/HMSVideoTrackSettings.js +1 -1
- package/lib/commonjs/classes/HMSVideoTrackSettings.js.map +1 -1
- package/lib/commonjs/classes/HMSVideoViewMode.js.map +1 -1
- package/lib/commonjs/classes/HmsView.js +1 -1
- package/lib/commonjs/classes/HmsView.js.map +1 -1
- package/lib/commonjs/classes/polls/DecodedPollLeaderboardResponse.js.map +1 -1
- package/lib/commonjs/classes/polls/HMSPoll.js.map +1 -1
- package/lib/commonjs/classes/polls/HMSPollCategory.js.map +1 -1
- package/lib/commonjs/classes/polls/HMSPollCreateParams.js.map +1 -1
- package/lib/commonjs/classes/polls/HMSPollLeaderboardEntry.js.map +1 -1
- package/lib/commonjs/classes/polls/HMSPollLeaderboardSummary.js.map +1 -1
- package/lib/commonjs/classes/polls/HMSPollQuestion.js.map +1 -1
- package/lib/commonjs/classes/polls/HMSPollQuestionAnswer.js.map +1 -1
- package/lib/commonjs/classes/polls/HMSPollQuestionCreateParams.js.map +1 -1
- package/lib/commonjs/classes/polls/HMSPollQuestionOption.js.map +1 -1
- package/lib/commonjs/classes/polls/HMSPollQuestionOptionCreateParams.js.map +1 -1
- package/lib/commonjs/classes/polls/HMSPollQuestionQuizOptionCreateParams.js.map +1 -1
- package/lib/commonjs/classes/polls/HMSPollQuestionResponse.js.map +1 -1
- package/lib/commonjs/classes/polls/HMSPollQuestionResponseCreateParams.js.map +1 -1
- package/lib/commonjs/classes/polls/HMSPollQuestionResponseResult.js.map +1 -1
- package/lib/commonjs/classes/polls/HMSPollQuestionResult.js.map +1 -1
- package/lib/commonjs/classes/polls/HMSPollQuestionType.js.map +1 -1
- package/lib/commonjs/classes/polls/HMSPollResponsePeerInfo.js.map +1 -1
- package/lib/commonjs/classes/polls/HMSPollResult.js.map +1 -1
- package/lib/commonjs/classes/polls/HMSPollState.js.map +1 -1
- package/lib/commonjs/classes/polls/HMSPollType.js.map +1 -1
- package/lib/commonjs/classes/polls/HMSPollUpdateType.js.map +1 -1
- package/lib/commonjs/classes/polls/HMSPollUserTrackingMode.js.map +1 -1
- package/lib/commonjs/classes/polls/PollLeaderboardResponse.js.map +1 -1
- package/lib/commonjs/components/HMSHLSPlayer/HMSHLSPlayer.js +1 -1
- package/lib/commonjs/components/HMSHLSPlayer/HMSHLSPlayer.js.map +1 -1
- package/lib/commonjs/components/HMSHLSPlayer/RCTHMSHLSPlayer.js.map +1 -1
- package/lib/commonjs/components/HMSHLSPlayer/hooks.js.map +1 -1
- package/lib/commonjs/components/HMSHLSPlayer/index.js.map +1 -1
- package/lib/commonjs/hooks/hmsviews.js.map +1 -1
- package/lib/commonjs/hooks/polls.js.map +1 -1
- package/lib/commonjs/hooks/useHMSPeerUpdates.js +1 -1
- package/lib/commonjs/hooks/useHMSPeerUpdates.js.map +1 -1
- package/lib/commonjs/index.js +24 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/modules/HMSManagerModule.js.map +1 -1
- package/lib/commonjs/stores/hls-player-playback-slice.js.map +1 -1
- package/lib/commonjs/stores/hls-player-stats-store.js.map +1 -1
- package/lib/commonjs/stores/hms-interactivity-store.js.map +1 -1
- package/lib/commonjs/stores/hms-polls-slice.js.map +1 -1
- package/lib/commonjs/stores/hms-store.js.map +1 -1
- package/lib/commonjs/stores/hmsviews-slice.js.map +1 -1
- package/lib/commonjs/stores/types.js.map +1 -1
- package/lib/commonjs/types.js.map +1 -1
- package/lib/commonjs/utils/emitter/EventEmitter.js +1 -1
- package/lib/commonjs/utils/emitter/EventEmitter.js.map +1 -1
- package/lib/commonjs/utils/emitter/_EmitterSubscription.js +1 -1
- package/lib/commonjs/utils/emitter/_EmitterSubscription.js.map +1 -1
- package/lib/commonjs/utils/emitter/_EventSubscription.js +1 -1
- package/lib/commonjs/utils/emitter/_EventSubscription.js.map +1 -1
- package/lib/commonjs/utils/emitter/_EventSubscriptionVendor.js +1 -1
- package/lib/commonjs/utils/emitter/_EventSubscriptionVendor.js.map +1 -1
- package/lib/commonjs/utils/index.js.map +1 -1
- package/lib/commonjs/utils/keyboard.js.map +1 -1
- package/lib/commonjs/utils/notification.js.map +1 -1
- package/lib/commonjs/utils/windowController.js.map +1 -1
- package/lib/module/classes/HMSAudioCodec.js.map +1 -1
- package/lib/module/classes/HMSAudioDevice.js.map +1 -1
- package/lib/module/classes/HMSAudioFilePlayerNode.js.map +1 -1
- package/lib/module/classes/HMSAudioMixerSource.js +1 -1
- package/lib/module/classes/HMSAudioMixerSource.js.map +1 -1
- package/lib/module/classes/HMSAudioMixingMode.js.map +1 -1
- package/lib/module/classes/HMSAudioMode.js.map +1 -1
- package/lib/module/classes/HMSAudioNode.js +1 -1
- package/lib/module/classes/HMSAudioNode.js.map +1 -1
- package/lib/module/classes/HMSAudioSettings.js +1 -1
- package/lib/module/classes/HMSAudioSettings.js.map +1 -1
- package/lib/module/classes/HMSAudioTrack.js.map +1 -1
- package/lib/module/classes/HMSAudioTrackSettings.js +10 -3
- package/lib/module/classes/HMSAudioTrackSettings.js.map +1 -1
- package/lib/module/classes/HMSBrowserRecordingState.js +1 -1
- package/lib/module/classes/HMSBrowserRecordingState.js.map +1 -1
- package/lib/module/classes/HMSCameraControl.js.map +1 -1
- package/lib/module/classes/HMSCameraFacing.js.map +1 -1
- package/lib/module/classes/HMSChangeTrackStateRequest.js +1 -1
- package/lib/module/classes/HMSChangeTrackStateRequest.js.map +1 -1
- package/lib/module/classes/HMSConfig.js +1 -1
- package/lib/module/classes/HMSConfig.js.map +1 -1
- package/lib/module/classes/HMSConstants.js.map +1 -1
- package/lib/module/classes/HMSEncoder.js +1 -1
- package/lib/module/classes/HMSEncoder.js.map +1 -1
- package/lib/module/classes/HMSEventEmitter.js.map +1 -1
- package/lib/module/classes/HMSException.js +1 -1
- package/lib/module/classes/HMSException.js.map +1 -1
- package/lib/module/classes/HMSHLSConfig.js +1 -1
- package/lib/module/classes/HMSHLSConfig.js.map +1 -1
- package/lib/module/classes/HMSHLSMeetingURLVariant.js +1 -1
- package/lib/module/classes/HMSHLSMeetingURLVariant.js.map +1 -1
- package/lib/module/classes/HMSHLSRecordingConfig.js +1 -1
- package/lib/module/classes/HMSHLSRecordingConfig.js.map +1 -1
- package/lib/module/classes/HMSHLSRecordingState.js +1 -1
- package/lib/module/classes/HMSHLSRecordingState.js.map +1 -1
- package/lib/module/classes/HMSHLSStreamingState.js +1 -1
- package/lib/module/classes/HMSHLSStreamingState.js.map +1 -1
- package/lib/module/classes/HMSHLSTimedMetadata.js.map +1 -1
- package/lib/module/classes/HMSHLSVariant.js +1 -1
- package/lib/module/classes/HMSHLSVariant.js.map +1 -1
- package/lib/module/classes/HMSHelper.js.map +1 -1
- package/lib/module/classes/HMSIOSAudioMode.js.map +1 -1
- package/lib/module/classes/HMSInteractivityCenter.js +1 -1
- package/lib/module/classes/HMSInteractivityCenter.js.map +1 -1
- package/lib/module/classes/HMSInteractivityEncoder.js.map +1 -1
- package/lib/module/classes/HMSLayer.js.map +1 -1
- package/lib/module/classes/HMSLocalAudioStats.js +1 -1
- package/lib/module/classes/HMSLocalAudioStats.js.map +1 -1
- package/lib/module/classes/HMSLocalAudioTrack.js +1 -1
- package/lib/module/classes/HMSLocalAudioTrack.js.map +1 -1
- package/lib/module/classes/HMSLocalPeer.js +1 -1
- package/lib/module/classes/HMSLocalPeer.js.map +1 -1
- package/lib/module/classes/HMSLocalVideoStats.js +1 -1
- package/lib/module/classes/HMSLocalVideoStats.js.map +1 -1
- package/lib/module/classes/HMSLocalVideoTrack.js +1 -1
- package/lib/module/classes/HMSLocalVideoTrack.js.map +1 -1
- package/lib/module/classes/HMSLogAlarmManager.js.map +1 -1
- package/lib/module/classes/HMSLogLevel.js.map +1 -1
- package/lib/module/classes/HMSLogSettings.js +1 -1
- package/lib/module/classes/HMSLogSettings.js.map +1 -1
- package/lib/module/classes/HMSLogger.js +1 -1
- package/lib/module/classes/HMSLogger.js.map +1 -1
- package/lib/module/classes/HMSMessage.js +1 -1
- package/lib/module/classes/HMSMessage.js.map +1 -1
- package/lib/module/classes/HMSMessageRecipient.js +1 -1
- package/lib/module/classes/HMSMessageRecipient.js.map +1 -1
- package/lib/module/classes/HMSMessageRecipientType.js.map +1 -1
- package/lib/module/classes/HMSMicNode.js.map +1 -1
- package/lib/module/classes/HMSNativeEventEmitter.js +1 -1
- package/lib/module/classes/HMSNativeEventEmitter.js.map +1 -1
- package/lib/module/classes/HMSNativeEventListener.js.map +1 -1
- package/lib/module/classes/HMSNetworkQuality.js +1 -1
- package/lib/module/classes/HMSNetworkQuality.js.map +1 -1
- package/lib/module/classes/HMSNoiseCancellationPlugin.js +121 -0
- package/lib/module/classes/HMSNoiseCancellationPlugin.js.map +1 -0
- package/lib/module/classes/HMSPIPConfig.js.map +1 -1
- package/lib/module/classes/HMSPIPListenerActions.js.map +1 -1
- package/lib/module/classes/HMSPeer.js +17 -1
- package/lib/module/classes/HMSPeer.js.map +1 -1
- package/lib/module/classes/HMSPeerListIterator.js +1 -1
- package/lib/module/classes/HMSPeerListIterator.js.map +1 -1
- package/lib/module/classes/HMSPeerListIteratorOptions.js.map +1 -1
- package/lib/module/classes/HMSPeerType.js +7 -0
- package/lib/module/classes/HMSPeerType.js.map +1 -0
- package/lib/module/classes/HMSPeerUpdate.js.map +1 -1
- package/lib/module/classes/HMSPeersCache.js +1 -1
- package/lib/module/classes/HMSPeersCache.js.map +1 -1
- package/lib/module/classes/HMSPermissions.js +1 -1
- package/lib/module/classes/HMSPermissions.js.map +1 -1
- package/lib/module/classes/HMSPollsListenerActions.js.map +1 -1
- package/lib/module/classes/HMSPublishSettings.js +1 -1
- package/lib/module/classes/HMSPublishSettings.js.map +1 -1
- package/lib/module/classes/HMSQualityLimitationReason.js.map +1 -1
- package/lib/module/classes/HMSQualityLimitationReasons.js +1 -1
- package/lib/module/classes/HMSQualityLimitationReasons.js.map +1 -1
- package/lib/module/classes/HMSRTCStats.js +1 -1
- package/lib/module/classes/HMSRTCStats.js.map +1 -1
- package/lib/module/classes/HMSRTCStatsReport.js +1 -1
- package/lib/module/classes/HMSRTCStatsReport.js.map +1 -1
- package/lib/module/classes/HMSRTMPConfig.js +1 -1
- package/lib/module/classes/HMSRTMPConfig.js.map +1 -1
- package/lib/module/classes/HMSRecordingState.js.map +1 -1
- package/lib/module/classes/HMSRemoteAudioStats.js +1 -1
- package/lib/module/classes/HMSRemoteAudioStats.js.map +1 -1
- package/lib/module/classes/HMSRemoteAudioTrack.js +1 -1
- package/lib/module/classes/HMSRemoteAudioTrack.js.map +1 -1
- package/lib/module/classes/HMSRemotePeer.js +1 -1
- package/lib/module/classes/HMSRemotePeer.js.map +1 -1
- package/lib/module/classes/HMSRemoteVideoStats.js +1 -1
- package/lib/module/classes/HMSRemoteVideoStats.js.map +1 -1
- package/lib/module/classes/HMSRemoteVideoTrack.js +1 -1
- package/lib/module/classes/HMSRemoteVideoTrack.js.map +1 -1
- package/lib/module/classes/HMSRole.js +1 -1
- package/lib/module/classes/HMSRole.js.map +1 -1
- package/lib/module/classes/HMSRoleChangeRequest.js +1 -1
- package/lib/module/classes/HMSRoleChangeRequest.js.map +1 -1
- package/lib/module/classes/HMSRoom.js +1 -1
- package/lib/module/classes/HMSRoom.js.map +1 -1
- package/lib/module/classes/HMSRoomCache.js +1 -1
- package/lib/module/classes/HMSRoomCache.js.map +1 -1
- package/lib/module/classes/HMSRoomUpdate.js.map +1 -1
- package/lib/module/classes/HMSRtmpStreamingState.js +1 -1
- package/lib/module/classes/HMSRtmpStreamingState.js.map +1 -1
- package/lib/module/classes/HMSRtmpVideoResolution.js +1 -1
- package/lib/module/classes/HMSRtmpVideoResolution.js.map +1 -1
- package/lib/module/classes/HMSSDK.js +21 -12
- package/lib/module/classes/HMSSDK.js.map +1 -1
- package/lib/module/classes/HMSScreenBroadcastAudioReceiverNode.js.map +1 -1
- package/lib/module/classes/HMSServerRecordingState.js +1 -1
- package/lib/module/classes/HMSServerRecordingState.js.map +1 -1
- package/lib/module/classes/HMSSessionStore.js +1 -1
- package/lib/module/classes/HMSSessionStore.js.map +1 -1
- package/lib/module/classes/HMSSimulcastLayerDefinition.js +1 -1
- package/lib/module/classes/HMSSimulcastLayerDefinition.js.map +1 -1
- package/lib/module/classes/HMSSimulcastLayerSettings.js +1 -1
- package/lib/module/classes/HMSSimulcastLayerSettings.js.map +1 -1
- package/lib/module/classes/HMSSimulcastLayerSettingsPolicy.js +1 -1
- package/lib/module/classes/HMSSimulcastLayerSettingsPolicy.js.map +1 -1
- package/lib/module/classes/HMSSimulcastSettings.js +1 -1
- package/lib/module/classes/HMSSimulcastSettings.js.map +1 -1
- package/lib/module/classes/HMSSimulcastSettingsPolicy.js +1 -1
- package/lib/module/classes/HMSSimulcastSettingsPolicy.js.map +1 -1
- package/lib/module/classes/HMSSpeaker.js +1 -1
- package/lib/module/classes/HMSSpeaker.js.map +1 -1
- package/lib/module/classes/HMSStreamingState.js.map +1 -1
- package/lib/module/classes/HMSSubscribeDegradationPolicy.js +1 -1
- package/lib/module/classes/HMSSubscribeDegradationPolicy.js.map +1 -1
- package/lib/module/classes/HMSSubscribeSettings.js +1 -1
- package/lib/module/classes/HMSSubscribeSettings.js.map +1 -1
- package/lib/module/classes/HMSTrack.js +1 -1
- package/lib/module/classes/HMSTrack.js.map +1 -1
- package/lib/module/classes/HMSTrackSettings.js +1 -1
- package/lib/module/classes/HMSTrackSettings.js.map +1 -1
- package/lib/module/classes/HMSTrackSettingsInitState.js.map +1 -1
- package/lib/module/classes/HMSTrackSource.js.map +1 -1
- package/lib/module/classes/HMSTrackType.js.map +1 -1
- package/lib/module/classes/HMSTrackUpdate.js.map +1 -1
- package/lib/module/classes/HMSUpdateListenerActions.js.map +1 -1
- package/lib/module/classes/HMSVideoCodec.js.map +1 -1
- package/lib/module/classes/HMSVideoResolution.js +1 -1
- package/lib/module/classes/HMSVideoResolution.js.map +1 -1
- package/lib/module/classes/HMSVideoSettings.js +1 -1
- package/lib/module/classes/HMSVideoSettings.js.map +1 -1
- package/lib/module/classes/HMSVideoTrack.js +1 -1
- package/lib/module/classes/HMSVideoTrack.js.map +1 -1
- package/lib/module/classes/HMSVideoTrackSettings.js +1 -1
- package/lib/module/classes/HMSVideoTrackSettings.js.map +1 -1
- package/lib/module/classes/HMSVideoViewMode.js.map +1 -1
- package/lib/module/classes/HmsView.js.map +1 -1
- package/lib/module/classes/polls/DecodedPollLeaderboardResponse.js.map +1 -1
- package/lib/module/classes/polls/HMSPoll.js.map +1 -1
- package/lib/module/classes/polls/HMSPollCategory.js.map +1 -1
- package/lib/module/classes/polls/HMSPollCreateParams.js.map +1 -1
- package/lib/module/classes/polls/HMSPollLeaderboardEntry.js.map +1 -1
- package/lib/module/classes/polls/HMSPollLeaderboardSummary.js.map +1 -1
- package/lib/module/classes/polls/HMSPollQuestion.js.map +1 -1
- package/lib/module/classes/polls/HMSPollQuestionAnswer.js.map +1 -1
- package/lib/module/classes/polls/HMSPollQuestionCreateParams.js.map +1 -1
- package/lib/module/classes/polls/HMSPollQuestionOption.js.map +1 -1
- package/lib/module/classes/polls/HMSPollQuestionOptionCreateParams.js.map +1 -1
- package/lib/module/classes/polls/HMSPollQuestionQuizOptionCreateParams.js.map +1 -1
- package/lib/module/classes/polls/HMSPollQuestionResponse.js.map +1 -1
- package/lib/module/classes/polls/HMSPollQuestionResponseCreateParams.js.map +1 -1
- package/lib/module/classes/polls/HMSPollQuestionResponseResult.js.map +1 -1
- package/lib/module/classes/polls/HMSPollQuestionResult.js.map +1 -1
- package/lib/module/classes/polls/HMSPollQuestionType.js.map +1 -1
- package/lib/module/classes/polls/HMSPollResponsePeerInfo.js.map +1 -1
- package/lib/module/classes/polls/HMSPollResult.js.map +1 -1
- package/lib/module/classes/polls/HMSPollState.js.map +1 -1
- package/lib/module/classes/polls/HMSPollType.js.map +1 -1
- package/lib/module/classes/polls/HMSPollUpdateType.js.map +1 -1
- package/lib/module/classes/polls/HMSPollUserTrackingMode.js.map +1 -1
- package/lib/module/classes/polls/PollLeaderboardResponse.js.map +1 -1
- package/lib/module/components/HMSHLSPlayer/HMSHLSPlayer.js.map +1 -1
- package/lib/module/components/HMSHLSPlayer/RCTHMSHLSPlayer.js.map +1 -1
- package/lib/module/components/HMSHLSPlayer/hooks.js.map +1 -1
- package/lib/module/components/HMSHLSPlayer/index.js.map +1 -1
- package/lib/module/hooks/hmsviews.js.map +1 -1
- package/lib/module/hooks/polls.js.map +1 -1
- package/lib/module/hooks/useHMSPeerUpdates.js.map +1 -1
- package/lib/module/index.js +2 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/modules/HMSManagerModule.js.map +1 -1
- package/lib/module/stores/hls-player-playback-slice.js.map +1 -1
- package/lib/module/stores/hls-player-stats-store.js.map +1 -1
- package/lib/module/stores/hms-interactivity-store.js.map +1 -1
- package/lib/module/stores/hms-polls-slice.js.map +1 -1
- package/lib/module/stores/hms-store.js.map +1 -1
- package/lib/module/stores/hmsviews-slice.js.map +1 -1
- package/lib/module/stores/types.js.map +1 -1
- package/lib/module/types.js.map +1 -1
- package/lib/module/utils/emitter/EventEmitter.js +1 -1
- package/lib/module/utils/emitter/EventEmitter.js.map +1 -1
- package/lib/module/utils/emitter/_EmitterSubscription.js +1 -1
- package/lib/module/utils/emitter/_EmitterSubscription.js.map +1 -1
- package/lib/module/utils/emitter/_EventSubscription.js +1 -1
- package/lib/module/utils/emitter/_EventSubscription.js.map +1 -1
- package/lib/module/utils/emitter/_EventSubscriptionVendor.js +1 -1
- package/lib/module/utils/emitter/_EventSubscriptionVendor.js.map +1 -1
- package/lib/module/utils/index.js.map +1 -1
- package/lib/module/utils/keyboard.js.map +1 -1
- package/lib/module/utils/notification.js.map +1 -1
- package/lib/module/utils/windowController.js.map +1 -1
- package/lib/typescript/classes/HMSAudioTrackSettings.d.ts +9 -0
- package/lib/typescript/classes/HMSNoiseCancellationPlugin.d.ts +56 -0
- package/lib/typescript/classes/HMSPeer.d.ts +4 -0
- package/lib/typescript/classes/HMSPeerType.d.ts +5 -0
- package/lib/typescript/classes/HMSPeersCache.d.ts +2 -0
- package/lib/typescript/classes/HMSSDK.d.ts +7 -2
- package/lib/typescript/index.d.ts +2 -0
- package/package.json +6 -2
- package/react-native-hms.podspec +1 -0
- package/sdk-versions.json +3 -2
- package/src/classes/HMSAudioTrackSettings.ts +11 -0
- package/src/classes/HMSNoiseCancellationPlugin.ts +130 -0
- package/src/classes/HMSPeer.ts +26 -0
- package/src/classes/HMSPeerType.ts +9 -0
- package/src/classes/HMSPeersCache.ts +2 -0
- package/src/classes/HMSSDK.tsx +16 -8
- package/src/index.ts +2 -0
- package/ios/Hmssdk.xcodeproj/project.xcworkspace/contents.xcworkspacedata +0 -7
- package/ios/Hmssdk.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
- package/ios/Hmssdk.xcodeproj/project.xcworkspace/xcuserdata/jatinnagar.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/ios/Hmssdk.xcodeproj/xcuserdata/jatinnagar.xcuserdatad/xcschemes/xcschememanagement.plist +0 -14
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.HMSHLSRecordingState = void 0;
|
|
7
7
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
8
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i :
|
|
8
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
9
9
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
10
10
|
class HMSHLSRecordingState {
|
|
11
11
|
constructor(params) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["HMSHLSRecordingState","constructor","params","_defineProperty","running","startedAt","error","state","exports"],"sources":["HMSHLSRecordingState.ts"],"sourcesContent":["import type { HMSException } from './HMSException';\nimport type { HMSRecordingState } from './HMSRecordingState';\n\nexport class HMSHLSRecordingState {\n running: boolean;\n error?: HMSException;\n startedAt?: Date;\n state: HMSRecordingState;\n constructor(params: {\n running: boolean;\n startedAt?: Date;\n error?: HMSException;\n state: HMSRecordingState;\n }) {\n this.running = params.running;\n this.startedAt = params.startedAt;\n this.error = params.error;\n this.state = params.state;\n }\n}\n"],"mappings":";;;;;;;;;AAGO,MAAMA,oBAAoB,CAAC;EAKhCC,WAAWA,CAACC,MAKX,EAAE;IAAAC,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IACD,IAAI,CAACC,OAAO,GAAGF,MAAM,CAACE,OAAO;IAC7B,IAAI,CAACC,SAAS,GAAGH,MAAM,CAACG,SAAS;IACjC,IAAI,CAACC,KAAK,GAAGJ,MAAM,CAACI,KAAK;IACzB,IAAI,CAACC,KAAK,GAAGL,MAAM,CAACK,KAAK;EAC3B;AACF;AAACC,OAAA,CAAAR,oBAAA,GAAAA,oBAAA"}
|
|
1
|
+
{"version":3,"names":["HMSHLSRecordingState","constructor","params","_defineProperty","running","startedAt","error","state","exports"],"sources":["HMSHLSRecordingState.ts"],"sourcesContent":["import type { HMSException } from './HMSException';\nimport type { HMSRecordingState } from './HMSRecordingState';\n\nexport class HMSHLSRecordingState {\n running: boolean;\n error?: HMSException;\n startedAt?: Date;\n state: HMSRecordingState;\n constructor(params: {\n running: boolean;\n startedAt?: Date;\n error?: HMSException;\n state: HMSRecordingState;\n }) {\n this.running = params.running;\n this.startedAt = params.startedAt;\n this.error = params.error;\n this.state = params.state;\n }\n}\n"],"mappings":";;;;;;;;;AAGO,MAAMA,oBAAoB,CAAC;EAKhCC,WAAWA,CAACC,MAKX,EAAE;IAAAC,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IACD,IAAI,CAACC,OAAO,GAAGF,MAAM,CAACE,OAAO;IAC7B,IAAI,CAACC,SAAS,GAAGH,MAAM,CAACG,SAAS;IACjC,IAAI,CAACC,KAAK,GAAGJ,MAAM,CAACI,KAAK;IACzB,IAAI,CAACC,KAAK,GAAGL,MAAM,CAACK,KAAK;EAC3B;AACF;AAACC,OAAA,CAAAR,oBAAA,GAAAA,oBAAA","ignoreList":[]}
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.HMSHLSStreamingState = void 0;
|
|
7
7
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
8
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i :
|
|
8
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
9
9
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
10
10
|
class HMSHLSStreamingState {
|
|
11
11
|
constructor(params) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["HMSHLSStreamingState","constructor","params","_defineProperty","running","startedAt","error","state","variants","exports"],"sources":["HMSHLSStreamingState.ts"],"sourcesContent":["import type { HMSHLSVariant } from './HMSHLSVariant';\nimport type { HMSException } from './HMSException';\nimport type { HMSStreamingState } from './HMSStreamingState';\n\nexport class HMSHLSStreamingState {\n running: boolean;\n startedAt?: Date;\n error?: HMSException;\n state: HMSStreamingState;\n variants?: Array<HMSHLSVariant>;\n\n constructor(params: {\n running: boolean;\n startedAt?: Date;\n error?: HMSException;\n state: HMSStreamingState;\n variants?: Array<HMSHLSVariant>;\n }) {\n this.running = params.running;\n this.startedAt = params.startedAt;\n this.error = params.error;\n this.state = params.state;\n this.variants = params.variants;\n }\n}\n"],"mappings":";;;;;;;;;AAIO,MAAMA,oBAAoB,CAAC;EAOhCC,WAAWA,CAACC,MAMX,EAAE;IAAAC,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IACD,IAAI,CAACC,OAAO,GAAGF,MAAM,CAACE,OAAO;IAC7B,IAAI,CAACC,SAAS,GAAGH,MAAM,CAACG,SAAS;IACjC,IAAI,CAACC,KAAK,GAAGJ,MAAM,CAACI,KAAK;IACzB,IAAI,CAACC,KAAK,GAAGL,MAAM,CAACK,KAAK;IACzB,IAAI,CAACC,QAAQ,GAAGN,MAAM,CAACM,QAAQ;EACjC;AACF;AAACC,OAAA,CAAAT,oBAAA,GAAAA,oBAAA"}
|
|
1
|
+
{"version":3,"names":["HMSHLSStreamingState","constructor","params","_defineProperty","running","startedAt","error","state","variants","exports"],"sources":["HMSHLSStreamingState.ts"],"sourcesContent":["import type { HMSHLSVariant } from './HMSHLSVariant';\nimport type { HMSException } from './HMSException';\nimport type { HMSStreamingState } from './HMSStreamingState';\n\nexport class HMSHLSStreamingState {\n running: boolean;\n startedAt?: Date;\n error?: HMSException;\n state: HMSStreamingState;\n variants?: Array<HMSHLSVariant>;\n\n constructor(params: {\n running: boolean;\n startedAt?: Date;\n error?: HMSException;\n state: HMSStreamingState;\n variants?: Array<HMSHLSVariant>;\n }) {\n this.running = params.running;\n this.startedAt = params.startedAt;\n this.error = params.error;\n this.state = params.state;\n this.variants = params.variants;\n }\n}\n"],"mappings":";;;;;;;;;AAIO,MAAMA,oBAAoB,CAAC;EAOhCC,WAAWA,CAACC,MAMX,EAAE;IAAAC,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IACD,IAAI,CAACC,OAAO,GAAGF,MAAM,CAACE,OAAO;IAC7B,IAAI,CAACC,SAAS,GAAGH,MAAM,CAACG,SAAS;IACjC,IAAI,CAACC,KAAK,GAAGJ,MAAM,CAACI,KAAK;IACzB,IAAI,CAACC,KAAK,GAAGL,MAAM,CAACK,KAAK;IACzB,IAAI,CAACC,QAAQ,GAAGN,MAAM,CAACM,QAAQ;EACjC;AACF;AAACC,OAAA,CAAAT,oBAAA,GAAAA,oBAAA","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["HMSHLSTimedMetadata.ts"],"sourcesContent":["export interface HMSHLSTimedMetadata {\n payload: string;\n duration: number;\n}\n"],"mappings":""}
|
|
1
|
+
{"version":3,"names":[],"sources":["HMSHLSTimedMetadata.ts"],"sourcesContent":["export interface HMSHLSTimedMetadata {\n payload: string;\n duration: number;\n}\n"],"mappings":"","ignoreList":[]}
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.HMSHLSVariant = void 0;
|
|
7
7
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
8
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i :
|
|
8
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
9
9
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
10
10
|
class HMSHLSVariant {
|
|
11
11
|
constructor(params) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["HMSHLSVariant","constructor","params","_defineProperty","hlsStreamUrl","meetingUrl","metadata","startedAt","exports"],"sources":["HMSHLSVariant.ts"],"sourcesContent":["export class HMSHLSVariant {\n hlsStreamUrl?: string;\n meetingUrl?: string;\n metadata?: string;\n startedAt?: Date;\n\n constructor(params: {\n hlsStreamUrl?: string;\n meetingUrl?: string;\n metadata?: string;\n startedAt?: Date;\n }) {\n this.hlsStreamUrl = params.hlsStreamUrl;\n this.meetingUrl = params.meetingUrl;\n this.metadata = params.metadata;\n this.startedAt = params.startedAt;\n }\n}\n"],"mappings":";;;;;;;;;AAAO,MAAMA,aAAa,CAAC;EAMzBC,WAAWA,CAACC,MAKX,EAAE;IAAAC,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IACD,IAAI,CAACC,YAAY,GAAGF,MAAM,CAACE,YAAY;IACvC,IAAI,CAACC,UAAU,GAAGH,MAAM,CAACG,UAAU;IACnC,IAAI,CAACC,QAAQ,GAAGJ,MAAM,CAACI,QAAQ;IAC/B,IAAI,CAACC,SAAS,GAAGL,MAAM,CAACK,SAAS;EACnC;AACF;AAACC,OAAA,CAAAR,aAAA,GAAAA,aAAA"}
|
|
1
|
+
{"version":3,"names":["HMSHLSVariant","constructor","params","_defineProperty","hlsStreamUrl","meetingUrl","metadata","startedAt","exports"],"sources":["HMSHLSVariant.ts"],"sourcesContent":["export class HMSHLSVariant {\n hlsStreamUrl?: string;\n meetingUrl?: string;\n metadata?: string;\n startedAt?: Date;\n\n constructor(params: {\n hlsStreamUrl?: string;\n meetingUrl?: string;\n metadata?: string;\n startedAt?: Date;\n }) {\n this.hlsStreamUrl = params.hlsStreamUrl;\n this.meetingUrl = params.meetingUrl;\n this.metadata = params.metadata;\n this.startedAt = params.startedAt;\n }\n}\n"],"mappings":";;;;;;;;;AAAO,MAAMA,aAAa,CAAC;EAMzBC,WAAWA,CAACC,MAKX,EAAE;IAAAC,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IACD,IAAI,CAACC,YAAY,GAAGF,MAAM,CAACE,YAAY;IACvC,IAAI,CAACC,UAAU,GAAGH,MAAM,CAACG,UAAU;IACnC,IAAI,CAACC,QAAQ,GAAGJ,MAAM,CAACI,QAAQ;IAC/B,IAAI,CAACC,SAAS,GAAGL,MAAM,CAACK,SAAS;EACnC;AACF;AAACC,OAAA,CAAAR,aAAA,GAAAA,aAAA","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["HMSHelper","getRoleNames","roles","names","map","item","name","push","exports"],"sources":["HMSHelper.ts"],"sourcesContent":["import type { HMSRole } from './HMSRole';\n\nexport class HMSHelper {\n static getRoleNames(roles: HMSRole[]) {\n let names: string[] = [];\n\n roles?.map((item: HMSRole) => {\n if (item?.name) {\n names.push(item?.name);\n }\n });\n\n return names;\n }\n}\n"],"mappings":";;;;;;AAEO,MAAMA,SAAS,CAAC;EACrB,OAAOC,YAAYA,CAACC,KAAgB,EAAE;IACpC,IAAIC,KAAe,GAAG,EAAE;IAExBD,KAAK,aAALA,KAAK,eAALA,KAAK,CAAEE,GAAG,CAAEC,IAAa,IAAK;MAC5B,IAAIA,IAAI,aAAJA,IAAI,eAAJA,IAAI,CAAEC,IAAI,EAAE;QACdH,KAAK,CAACI,IAAI,CAACF,IAAI,aAAJA,IAAI,uBAAJA,IAAI,CAAEC,IAAI,CAAC;MACxB;IACF,CAAC,CAAC;IAEF,OAAOH,KAAK;EACd;AACF;AAACK,OAAA,CAAAR,SAAA,GAAAA,SAAA"}
|
|
1
|
+
{"version":3,"names":["HMSHelper","getRoleNames","roles","names","map","item","name","push","exports"],"sources":["HMSHelper.ts"],"sourcesContent":["import type { HMSRole } from './HMSRole';\n\nexport class HMSHelper {\n static getRoleNames(roles: HMSRole[]) {\n let names: string[] = [];\n\n roles?.map((item: HMSRole) => {\n if (item?.name) {\n names.push(item?.name);\n }\n });\n\n return names;\n }\n}\n"],"mappings":";;;;;;AAEO,MAAMA,SAAS,CAAC;EACrB,OAAOC,YAAYA,CAACC,KAAgB,EAAE;IACpC,IAAIC,KAAe,GAAG,EAAE;IAExBD,KAAK,aAALA,KAAK,eAALA,KAAK,CAAEE,GAAG,CAAEC,IAAa,IAAK;MAC5B,IAAIA,IAAI,aAAJA,IAAI,eAAJA,IAAI,CAAEC,IAAI,EAAE;QACdH,KAAK,CAACI,IAAI,CAACF,IAAI,aAAJA,IAAI,uBAAJA,IAAI,CAAEC,IAAI,CAAC;MACxB;IACF,CAAC,CAAC;IAEF,OAAOH,KAAK;EACd;AACF;AAACK,OAAA,CAAAR,SAAA,GAAAA,SAAA","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["HMSIOSAudioMode","exports"],"sources":["HMSIOSAudioMode.ts"],"sourcesContent":["export enum HMSIOSAudioMode {\n VOICE = 'voice',\n MUSIC = 'music',\n}\n"],"mappings":";;;;;;IAAYA,eAAe,GAAAC,OAAA,CAAAD,eAAA,0BAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAA,OAAfA,eAAe;AAAA"}
|
|
1
|
+
{"version":3,"names":["HMSIOSAudioMode","exports"],"sources":["HMSIOSAudioMode.ts"],"sourcesContent":["export enum HMSIOSAudioMode {\n VOICE = 'voice',\n MUSIC = 'music',\n}\n"],"mappings":";;;;;;IAAYA,eAAe,GAAAC,OAAA,CAAAD,eAAA,0BAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAA,OAAfA,eAAe;AAAA","ignoreList":[]}
|
|
@@ -14,7 +14,7 @@ var _HMSInteractivityEncoder = require("./HMSInteractivityEncoder");
|
|
|
14
14
|
var _HMSHelper = require("./HMSHelper");
|
|
15
15
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
16
16
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
17
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i :
|
|
17
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
18
18
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
19
19
|
let pollUpdateSubscription = null;
|
|
20
20
|
function registerPollUpdateListener(listener) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_utils","require","_HMSManagerModule","_interopRequireDefault","_HMSConstants","_HMSLogger","_HMSPollsListenerActions","_HMSNativeEventListener","_HMSInteractivityEncoder","_HMSHelper","obj","__esModule","default","_defineProperty","key","value","_toPropertyKey","Object","defineProperty","enumerable","configurable","writable","t","i","_toPrimitive","String","r","e","Symbol","toPrimitive","call","TypeError","Number","pollUpdateSubscription","registerPollUpdateListener","listener","HMSNativeEventListener","addListener","HMSConstants","DEFAULT_SDK_ID","HMSPollsListenerActions","ON_POLL_UPDATE","unregisterPollUpdateListener","remove","HMSInteractivityCenter","constructor","EventEmitter","args","updatedPoll","update","logger","verbose","_eventEmitter","emit","HMSInteractivityEncoder","transformPoll","registerOnAllListenersRemoved","_onAllPollUpdateListenerRemoved","addPollUpdateListener","_pollUpdateListener","startPoll","pollParams","transformedPollParams","rolesThatCanVote","HMSHelper","getRoleNames","undefined","rolesThatCanViewResponses","data","id","JSON","stringify","HMSManager","quickStartPoll","add","pollQuestionResponseParams","addResponseOnPollQuestion","stop","pollId","stopPoll","fetchLeaderboard","count","startIndex","includeCurrentPeer","response","transformPollLeaderboardResponse","exports"],"sources":["HMSInteractivityCenter.ts"],"sourcesContent":["import { EventEmitter } from '../utils';\nimport HMSManager from '../modules/HMSManagerModule';\nimport { HMSConstants } from './HMSConstants';\nimport { logger } from './HMSLogger';\nimport type { HMSPoll } from './polls/HMSPoll';\nimport type { HMSPollCreateParams } from './polls/HMSPollCreateParams';\nimport type { HMSPollUpdateType } from './polls/HMSPollUpdateType';\nimport { HMSPollsListenerActions } from './HMSPollsListenerActions';\nimport HMSNativeEventListener from './HMSNativeEventListener';\nimport type { HMSEventSubscription } from './HMSNativeEventEmitter';\nimport { HMSInteractivityEncoder } from './HMSInteractivityEncoder';\nimport { HMSHelper } from './HMSHelper';\nimport type { PollLeaderboardResponse } from './polls/PollLeaderboardResponse';\nimport type { DecodedPollLeaderboardResponse } from './polls/DecodedPollLeaderboardResponse';\n\ntype PollUpdateListener = (data: {\n updatedPoll: HMSPoll;\n update: HMSPollUpdateType;\n}) => void;\n\ntype PollQuestionResponseCreateParams = {\n pollId: string;\n pollQuestionIndex: number;\n responses:\n | {\n text: string;\n duration?: number;\n }\n | {\n options: number[];\n duration?: number;\n };\n};\n\nlet pollUpdateSubscription: null | HMSEventSubscription = null;\n\nfunction registerPollUpdateListener(listener: PollUpdateListener) {\n if (pollUpdateSubscription !== null) {\n return;\n }\n pollUpdateSubscription = HMSNativeEventListener.addListener(\n HMSConstants.DEFAULT_SDK_ID,\n HMSPollsListenerActions.ON_POLL_UPDATE,\n listener\n );\n}\n\nfunction unregisterPollUpdateListener() {\n if (pollUpdateSubscription === null) {\n return;\n }\n pollUpdateSubscription.remove();\n pollUpdateSubscription = null;\n}\n\nexport class HMSInteractivityCenter {\n private _eventEmitter = new EventEmitter();\n\n private _pollUpdateListener = (...args: Parameters<PollUpdateListener>) => {\n const { updatedPoll, update } = args[0];\n logger?.verbose('#Listener ON_POLL_UPDATE', {\n update,\n updatedPoll,\n });\n this._eventEmitter.emit(\n HMSPollsListenerActions.ON_POLL_UPDATE,\n HMSInteractivityEncoder.transformPoll(updatedPoll),\n update\n );\n };\n\n private _onAllPollUpdateListenerRemoved = () => {\n unregisterPollUpdateListener();\n };\n\n constructor() {\n this._eventEmitter.registerOnAllListenersRemoved(\n this._onAllPollUpdateListenerRemoved\n );\n }\n\n /**\n * Adds a listener for poll updates\n * @param listener - Callback to be called when a poll is updated\n * @returns HMSEventSubscription\n */\n addPollUpdateListener(\n listener: (updatedPoll: HMSPoll, update: HMSPollUpdateType) => void\n ) {\n registerPollUpdateListener(this._pollUpdateListener);\n return this._eventEmitter.addListener(\n HMSPollsListenerActions.ON_POLL_UPDATE,\n listener,\n null\n );\n }\n\n /**\n * Starts a poll\n *\n * @param pollParams\n */\n async startPoll(pollParams: HMSPollCreateParams) {\n const transformedPollParams = {\n ...pollParams,\n rolesThatCanVote: pollParams.rolesThatCanVote\n ? HMSHelper.getRoleNames(pollParams.rolesThatCanVote)\n : undefined,\n rolesThatCanViewResponses: pollParams.rolesThatCanViewResponses\n ? HMSHelper.getRoleNames(pollParams.rolesThatCanViewResponses)\n : undefined,\n };\n\n const data = {\n ...transformedPollParams,\n id: HMSConstants.DEFAULT_SDK_ID,\n };\n logger?.verbose('#Function startPoll', JSON.stringify(data));\n return HMSManager.quickStartPoll(data);\n }\n\n async add(pollQuestionResponseParams: PollQuestionResponseCreateParams) {\n const data = {\n ...pollQuestionResponseParams,\n id: HMSConstants.DEFAULT_SDK_ID,\n };\n logger?.verbose('#Function add', JSON.stringify(data));\n return HMSManager.addResponseOnPollQuestion(data);\n }\n\n async stop(pollId: string) {\n const data = {\n id: HMSConstants.DEFAULT_SDK_ID,\n pollId,\n };\n logger?.verbose('#Function stop', JSON.stringify(data));\n return HMSManager.stopPoll(data);\n }\n\n /**\n * Fetches the leaderboard for a poll\n * @param pollId - The id of the poll\n * @param count - The number of entries to fetch\n * @param startIndex - The index to start fetching from\n * @param includeCurrentPeer - Whether to include the current peer in the fetched leaderboard entries\n * @returns Promise<PollLeaderboardResponse>\n */\n async fetchLeaderboard(\n pollId: string,\n count: number,\n startIndex: number,\n includeCurrentPeer: boolean\n ): Promise<PollLeaderboardResponse> {\n const data = {\n id: HMSConstants.DEFAULT_SDK_ID,\n pollId,\n count,\n startIndex,\n includeCurrentPeer,\n };\n logger?.verbose('#Function fetchLeaderboard', data);\n\n const response: DecodedPollLeaderboardResponse =\n await HMSManager.fetchLeaderboard(data);\n return HMSInteractivityEncoder.transformPollLeaderboardResponse(response);\n }\n}\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,iBAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,aAAA,GAAAH,OAAA;AACA,IAAAI,UAAA,GAAAJ,OAAA;AAIA,IA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;IACDjC,iBAAM,aAANA,iBAAM,eAANA,iBAAM,CAAEC,OAAO,CAAC,4BAA4B,EAAEiB,IAAI,CAAC;IAEnD,MAAMgB,QAAwC,GAC5C,MAAMZ,yBAAU,CAACQ,gBAAgB,CAACZ,IAAI,CAAC;IACzC,OAAOd,gDAAuB,CAAC+B,gCAAgC,CAACD,QAAQ,CAAC;EAC3E;AACF;AAACE,OAAA,CAAA1C,sBAAA,GAAAA,sBAAA"}
|
|
1
|
+
{"version":3,"names":["_utils","require","_HMSManagerModule","_interopRequireDefault","_HMSConstants","_HMSLogger","_HMSPollsListenerActions","_HMSNativeEventListener","_HMSInteractivityEncoder","_HMSHelper","obj","__esModule","default","_defineProperty","key","value","_toPropertyKey","Object","defineProperty","enumerable","configurable","writable","t","i","_toPrimitive","r","e","Symbol","toPrimitive","call","TypeError","String","Number","pollUpdateSubscription","registerPollUpdateListener","listener","HMSNativeEventListener","addListener","HMSConstants","DEFAULT_SDK_ID","HMSPollsListenerActions","ON_POLL_UPDATE","unregisterPollUpdateListener","remove","HMSInteractivityCenter","constructor","EventEmitter","args","updatedPoll","update","logger","verbose","_eventEmitter","emit","HMSInteractivityEncoder","transformPoll","registerOnAllListenersRemoved","_onAllPollUpdateListenerRemoved","addPollUpdateListener","_pollUpdateListener","startPoll","pollParams","transformedPollParams","rolesThatCanVote","HMSHelper","getRoleNames","undefined","rolesThatCanViewResponses","data","id","JSON","stringify","HMSManager","quickStartPoll","add","pollQuestionResponseParams","addResponseOnPollQuestion","stop","pollId","stopPoll","fetchLeaderboard","count","startIndex","includeCurrentPeer","response","transformPollLeaderboardResponse","exports"],"sources":["HMSInteractivityCenter.ts"],"sourcesContent":["import { EventEmitter } from '../utils';\nimport HMSManager from '../modules/HMSManagerModule';\nimport { HMSConstants } from './HMSConstants';\nimport { logger } from './HMSLogger';\nimport type { HMSPoll } from './polls/HMSPoll';\nimport type { HMSPollCreateParams } from './polls/HMSPollCreateParams';\nimport type { HMSPollUpdateType } from './polls/HMSPollUpdateType';\nimport { HMSPollsListenerActions } from './HMSPollsListenerActions';\nimport HMSNativeEventListener from './HMSNativeEventListener';\nimport type { HMSEventSubscription } from './HMSNativeEventEmitter';\nimport { HMSInteractivityEncoder } from './HMSInteractivityEncoder';\nimport { HMSHelper } from './HMSHelper';\nimport type { PollLeaderboardResponse } from './polls/PollLeaderboardResponse';\nimport type { DecodedPollLeaderboardResponse } from './polls/DecodedPollLeaderboardResponse';\n\ntype PollUpdateListener = (data: {\n updatedPoll: HMSPoll;\n update: HMSPollUpdateType;\n}) => void;\n\ntype PollQuestionResponseCreateParams = {\n pollId: string;\n pollQuestionIndex: number;\n responses:\n | {\n text: string;\n duration?: number;\n }\n | {\n options: number[];\n duration?: number;\n };\n};\n\nlet pollUpdateSubscription: null | HMSEventSubscription = null;\n\nfunction registerPollUpdateListener(listener: PollUpdateListener) {\n if (pollUpdateSubscription !== null) {\n return;\n }\n pollUpdateSubscription = HMSNativeEventListener.addListener(\n HMSConstants.DEFAULT_SDK_ID,\n HMSPollsListenerActions.ON_POLL_UPDATE,\n listener\n );\n}\n\nfunction unregisterPollUpdateListener() {\n if (pollUpdateSubscription === null) {\n return;\n }\n pollUpdateSubscription.remove();\n pollUpdateSubscription = null;\n}\n\nexport class HMSInteractivityCenter {\n private _eventEmitter = new EventEmitter();\n\n private _pollUpdateListener = (...args: Parameters<PollUpdateListener>) => {\n const { updatedPoll, update } = args[0];\n logger?.verbose('#Listener ON_POLL_UPDATE', {\n update,\n updatedPoll,\n });\n this._eventEmitter.emit(\n HMSPollsListenerActions.ON_POLL_UPDATE,\n HMSInteractivityEncoder.transformPoll(updatedPoll),\n update\n );\n };\n\n private _onAllPollUpdateListenerRemoved = () => {\n unregisterPollUpdateListener();\n };\n\n constructor() {\n this._eventEmitter.registerOnAllListenersRemoved(\n this._onAllPollUpdateListenerRemoved\n );\n }\n\n /**\n * Adds a listener for poll updates\n * @param listener - Callback to be called when a poll is updated\n * @returns HMSEventSubscription\n */\n addPollUpdateListener(\n listener: (updatedPoll: HMSPoll, update: HMSPollUpdateType) => void\n ) {\n registerPollUpdateListener(this._pollUpdateListener);\n return this._eventEmitter.addListener(\n HMSPollsListenerActions.ON_POLL_UPDATE,\n listener,\n null\n );\n }\n\n /**\n * Starts a poll\n *\n * @param pollParams\n */\n async startPoll(pollParams: HMSPollCreateParams) {\n const transformedPollParams = {\n ...pollParams,\n rolesThatCanVote: pollParams.rolesThatCanVote\n ? HMSHelper.getRoleNames(pollParams.rolesThatCanVote)\n : undefined,\n rolesThatCanViewResponses: pollParams.rolesThatCanViewResponses\n ? HMSHelper.getRoleNames(pollParams.rolesThatCanViewResponses)\n : undefined,\n };\n\n const data = {\n ...transformedPollParams,\n id: HMSConstants.DEFAULT_SDK_ID,\n };\n logger?.verbose('#Function startPoll', JSON.stringify(data));\n return HMSManager.quickStartPoll(data);\n }\n\n async add(pollQuestionResponseParams: PollQuestionResponseCreateParams) {\n const data = {\n ...pollQuestionResponseParams,\n id: HMSConstants.DEFAULT_SDK_ID,\n };\n logger?.verbose('#Function add', JSON.stringify(data));\n return HMSManager.addResponseOnPollQuestion(data);\n }\n\n async stop(pollId: string) {\n const data = {\n id: HMSConstants.DEFAULT_SDK_ID,\n pollId,\n };\n logger?.verbose('#Function stop', JSON.stringify(data));\n return HMSManager.stopPoll(data);\n }\n\n /**\n * Fetches the leaderboard for a poll\n * @param pollId - The id of the poll\n * @param count - The number of entries to fetch\n * @param startIndex - The index to start fetching from\n * @param includeCurrentPeer - Whether to include the current peer in the fetched leaderboard entries\n * @returns Promise<PollLeaderboardResponse>\n */\n async fetchLeaderboard(\n pollId: string,\n count: number,\n startIndex: number,\n includeCurrentPeer: boolean\n ): Promise<PollLeaderboardResponse> {\n const data = {\n id: HMSConstants.DEFAULT_SDK_ID,\n pollId,\n count,\n startIndex,\n includeCurrentPeer,\n };\n logger?.verbose('#Function fetchLeaderboard', data);\n\n const response: DecodedPollLeaderboardResponse =\n await HMSManager.fetchLeaderboard(data);\n return HMSInte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,gBAAgBA,CACpBF,MAAc,EACdG,KAAa,EACbC,UAAkB,EAClBC,kBAA2B,EACO;IAClC,MAAMf,IAAI,GAAG;MACXC,EAAE,EAAE/B,0BAAY,CAACC,cAAc;MAC/BuC,MAAM;MACNG,KAAK;MACLC,UAAU;MACVC;IACF,CAAC;IACDjC,iBAAM,aAANA,iBAAM,eAANA,iBAAM,CAAEC,OAAO,CAAC,4BAA4B,EAAEiB,IAAI,CAAC;IAEnD,MAAMgB,QAAwC,GAC5C,MAAMZ,yBAAU,CAACQ,gBAAgB,CAACZ,IAAI,CAAC;IACzC,OAAOd,gDAAuB,CAAC+B,gCAAgC,CAACD,QAAQ,CAAC;EAC3E;AACF;AAACE,OAAA,CAAA1C,sBAAA,GAAAA,sBAAA","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_HMSEncoder","require","HMSInteractivityEncoder","transformPoll","poll","startedAt","dateNum","parseInt","isNaN","undefined","Date","stoppedAt","createdBy","HMSEncoder","encodeHmsPeer","startedBy","stoppedBy","rolesThatCanVote","map","role","encodeHmsRole","rolesThatCanViewResponses","transformPollLeaderboardResponse","decodedPollLeaderboardResponse","summary","averageTime","entries","forEach","entry","duration","totalResponses","correctResponses","position","score","exports"],"sources":["HMSInteractivityEncoder.ts"],"sourcesContent":["import { HMSEncoder } from './HMSEncoder';\nimport type { DecodedPollLeaderboardResponse } from './polls/DecodedPollLeaderboardResponse';\nimport type { HMSPoll } from './polls/HMSPoll';\nimport type { PollLeaderboardResponse } from './polls/PollLeaderboardResponse';\n\nexport class HMSInteractivityEncoder {\n static transformPoll(poll: HMSPoll): HMSPoll {\n if (poll.startedAt) {\n const dateNum = parseInt(poll.startedAt as unknown as string);\n\n if (isNaN(dateNum)) {\n poll.startedAt = undefined;\n } else {\n poll.startedAt = new Date(dateNum);\n }\n }\n if (poll.stoppedAt) {\n const dateNum = parseInt(poll.stoppedAt as unknown as string);\n\n if (isNaN(dateNum)) {\n poll.stoppedAt = undefined;\n } else {\n poll.stoppedAt = new Date(dateNum);\n }\n }\n if (poll.createdBy) {\n poll.createdBy = HMSEncoder.encodeHmsPeer(poll.createdBy);\n }\n if (poll.startedBy) {\n poll.startedBy = HMSEncoder.encodeHmsPeer(poll.startedBy);\n }\n if (poll.stoppedBy) {\n poll.stoppedBy = HMSEncoder.encodeHmsPeer(poll.stoppedBy);\n }\n if (poll.rolesThatCanVote) {\n poll.rolesThatCanVote = poll.rolesThatCanVote.map((role) =>\n HMSEncoder.encodeHmsRole(role)\n );\n }\n if (poll.rolesThatCanViewResponses) {\n poll.rolesThatCanViewResponses = poll.rolesThatCanViewResponses.map(\n (role) => HMSEncoder.encodeHmsRole(role)\n );\n }\n\n // --- poll.questions: HMSPollQuestion[]\n // --- poll.result: HMSPollResult\n return poll;\n }\n\n static transformPollLeaderboardResponse(\n decodedPollLeaderboardResponse: DecodedPollLeaderboardResponse\n ): PollLeaderboardResponse {\n const summary = decodedPollLeaderboardResponse.summary;\n if (summary) {\n if (typeof summary.averageTime === 'string') {\n summary.averageTime = parseInt(summary.averageTime);\n }\n }\n\n const entries = decodedPollLeaderboardResponse.entries;\n if (entries) {\n entries.forEach((entry) => {\n if (typeof entry.duration === 'string') {\n entry.duration = parseInt(entry.duration);\n }\n if (typeof entry.totalResponses === 'string') {\n entry.totalResponses = parseInt(entry.totalResponses);\n }\n if (typeof entry.correctResponses === 'string') {\n entry.correctResponses = parseInt(entry.correctResponses);\n }\n if (typeof entry.position === 'string') {\n entry.position = parseInt(entry.position);\n }\n if (typeof entry.score === 'string') {\n entry.score = parseInt(entry.score);\n }\n });\n }\n\n return decodedPollLeaderboardResponse as PollLeaderboardResponse;\n }\n}\n"],"mappings":";;;;;;AAAA,IAAAA,WAAA,GAAAC,OAAA;AAKO,MAAMC,uBAAuB,CAAC;EACnC,OAAOC,aAAaA,CAACC,IAAa,EAAW;IAC3C,IAAIA,IAAI,CAACC,SAAS,EAAE;MAClB,MAAMC,OAAO,GAAGC,QAAQ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ivityEncoder","transformPoll","poll","startedAt","dateNum","parseInt","isNaN","undefined","Date","stoppedAt","createdBy","HMSEncoder","encodeHmsPeer","startedBy","stoppedBy","rolesThatCanVote","map","role","encodeHmsRole","rolesThatCanViewResponses","transformPollLeaderboardResponse","decodedPollLeaderboardResponse","summary","averageTime","entries","forEach","entry","duration","totalResponses","correctResponses","position","score","exports"],"sources":["HMSInteractivityEncoder.ts"],"sourcesContent":["import { HMSEncoder } from './HMSEncoder';\nimport type { DecodedPollLeaderboardResponse } from './polls/DecodedPollLeaderboardResponse';\nimport type { HMSPoll } from './polls/HMSPoll';\nimport type { PollLeaderboardResponse } from './polls/PollLeaderboardResponse';\n\nexport class HMSInteractivityEncoder {\n static transformPoll(poll: HMSPoll): HMSPoll {\n if (poll.startedAt) {\n const dateNum = parseInt(poll.startedAt as unknown as string);\n\n if (isNaN(dateNum)) {\n poll.startedAt = undefined;\n } else {\n poll.startedAt = new Date(dateNum);\n }\n }\n if (poll.stoppedAt) {\n const dateNum = parseInt(poll.stoppedAt as unknown as string);\n\n if (isNaN(dateNum)) {\n poll.stoppedAt = undefined;\n } else {\n poll.stoppedAt = new Date(dateNum);\n }\n }\n if (poll.createdBy) {\n poll.createdBy = HMSEncoder.encodeHmsPeer(poll.createdBy);\n }\n if (poll.startedBy) {\n poll.startedBy = HMSEncoder.encodeHmsPeer(poll.startedBy);\n }\n if (poll.stoppedBy) {\n poll.stoppedBy = HMSEncoder.encodeHmsPeer(poll.stoppedBy);\n }\n if (poll.rolesThatCanVote) {\n poll.rolesThatCanVote = poll.rolesThatCanVote.map((role) =>\n HMSEncoder.encodeHmsRole(role)\n );\n }\n if (poll.rolesThatCanViewResponses) {\n poll.rolesThatCanViewResponses = poll.rolesThatCanViewResponses.map(\n (role) => HMSEncoder.encodeHmsRole(role)\n );\n }\n\n // --- poll.questions: HMSPollQuestion[]\n // --- poll.result: HMSPollResult\n return poll;\n }\n\n static transformPollLeaderboardResponse(\n decodedPollLeaderboardResponse: DecodedPollLeaderboardResponse\n ): PollLeaderboardResponse {\n const summary = decodedPollLeaderboardResponse.summary;\n if (summary) {\n if (typeof summary.averageTime === 'string') {\n summary.averageTime = parseInt(summary.averageTime);\n }\n }\n\n const entries = decodedPollLeaderboardResponse.entries;\n if (entries) {\n entries.forEach((entry) => {\n if (typeof entry.duration === 'string') {\n entry.duration = parseInt(entry.duration);\n }\n if (typeof entry.totalResponses === 'string') {\n entry.totalResponses = parseInt(entry.totalResponses);\n }\n if (typeof entry.correctResponses === 'string') {\n entry.correctResponses = parseInt(entry.correctResponses);\n }\n if (typeof entry.position === 'string') {\n entry.position = parseInt(entry.position);\n }\n if (typeof entry.score === 'string') {\n entry.score = parseInt(entry.score);\n }\n });\n }\n\n return decodedPollLeaderboardResponse as PollLeaderboardResponse;\n }\n}\n"],"mappings":";;;;;;AAAA,IAAAA,WAAA,GAAAC,OAAA;AAKO,MAAMC,uBAAuB,CAAC;EACnC,OAAOC,aAAaA,CAACC,IAAa,EAAW;IAC3C,IAAIA,IAAI,CAACC,SAAS,EAAE;MAClB,MAAMC,OAAO,GAAGC,QAAQ,CAACH,IAAI,CAACC,SAA8B,CAAC;MAE7D,IAAIG,KAAK,CAACF,OAAO,CAAC,EAAE;QAClBF,IAAI,CAACC,SAAS,GAAGI,SAAS;MAC5B,CAAC,MAAM;QACLL,IAAI,CAACC,SAAS,GAAG,IAAIK,IAAI,CAACJ,OAAO,CAAC;MACpC;IACF;IACA,IAAIF,IAAI,CAACO,SAAS,EAAE;MAClB,MAAML,OAAO,GAAGC,QAAQ,CAACH,IAAI,CAACO,SAA8B,CAAC;MAE7D,IAAIH,KAAK,CAACF,OAAO,CAAC,EAAE;QAClBF,IAAI,CAACO,SAAS,GAAGF,SAAS;MAC5B,CAAC,MAAM;QACLL,IAAI,CAACO,SAAS,GAAG,IAAID,IAAI,CAACJ,OAAO,CAAC;MACpC;IACF;IACA,IAAIF,IAAI,CAACQ,SAAS,EAAE;MAClBR,IAAI,CAACQ,SAAS,GAAG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D,KAAK,CAACE,cAAc,KAAK,QAAQ,EAAE;UAC5CF,KAAK,CAACE,cAAc,GAAGvB,QAAQ,CAACqB,KAAK,CAACE,cAAc,CAAC;QACvD;QACA,IAAI,OAAOF,KAAK,CAACG,gBAAgB,KAAK,QAAQ,EAAE;UAC9CH,KAAK,CAACG,gBAAgB,GAAGxB,QAAQ,CAACqB,KAAK,CAACG,gBAAgB,CAAC;QAC3D;QACA,IAAI,OAAOH,KAAK,CAACI,QAAQ,KAAK,QAAQ,EAAE;UACtCJ,KAAK,CAACI,QAAQ,GAAGzB,QAAQ,CAACqB,KAAK,CAACI,QAAQ,CAAC;QAC3C;QACA,IAAI,OAAOJ,KAAK,CAACK,KAAK,KAAK,QAAQ,EAAE;UACnCL,KAAK,CAACK,KAAK,GAAG1B,QAAQ,CAACqB,KAAK,CAACK,KAAK,CAAC;QACrC;MACF,CAAC,CAAC;IACJ;IAEA,OAAOV,8BAA8B;EACvC;AACF;AAACW,OAAA,CAAAhC,uBAAA,GAAAA,uBAAA","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["HMSLayer","exports"],"sources":["HMSLayer.ts"],"sourcesContent":["export enum HMSLayer {\n LOW = 'LOW',\n MEDIUM = 'MEDIUM',\n HIGH = 'HIGH',\n}\n"],"mappings":";;;;;;IAAYA,QAAQ,GAAAC,OAAA,CAAAD,QAAA,0BAARA,QAAQ;EAARA,QAAQ;EAARA,QAAQ;EAARA,QAAQ;EAAA,OAARA,QAAQ;AAAA"}
|
|
1
|
+
{"version":3,"names":["HMSLayer","exports"],"sources":["HMSLayer.ts"],"sourcesContent":["export enum HMSLayer {\n LOW = 'LOW',\n MEDIUM = 'MEDIUM',\n HIGH = 'HIGH',\n}\n"],"mappings":";;;;;;IAAYA,QAAQ,GAAAC,OAAA,CAAAD,QAAA,0BAARA,QAAQ;EAARA,QAAQ;EAARA,QAAQ;EAARA,QAAQ;EAAA,OAARA,QAAQ;AAAA","ignoreList":[]}
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.HMSLocalAudioStats = void 0;
|
|
7
7
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
8
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i :
|
|
8
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
9
9
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
10
10
|
class HMSLocalAudioStats {
|
|
11
11
|
constructor(params) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["HMSLocalAudioStats","constructor","params","_defineProperty","bitrate","bytesSent","roundTripTime","exports"],"sources":["HMSLocalAudioStats.ts"],"sourcesContent":["export class HMSLocalAudioStats {\n bitrate?: number;\n bytesSent?: number;\n roundTripTime?: number;\n\n constructor(params: {\n bitrate?: number;\n bytesSent?: number;\n roundTripTime?: number;\n }) {\n this.bitrate = params.bitrate;\n this.bytesSent = params.bytesSent;\n this.roundTripTime = params.roundTripTime;\n }\n}\n"],"mappings":";;;;;;;;;AAAO,MAAMA,kBAAkB,CAAC;EAK9BC,WAAWA,CAACC,MAIX,EAAE;IAAAC,eAAA;IAAAA,eAAA;IAAAA,eAAA;IACD,IAAI,CAACC,OAAO,GAAGF,MAAM,CAACE,OAAO;IAC7B,IAAI,CAACC,SAAS,GAAGH,MAAM,CAACG,SAAS;IACjC,IAAI,CAACC,aAAa,GAAGJ,MAAM,CAACI,aAAa;EAC3C;AACF;AAACC,OAAA,CAAAP,kBAAA,GAAAA,kBAAA"}
|
|
1
|
+
{"version":3,"names":["HMSLocalAudioStats","constructor","params","_defineProperty","bitrate","bytesSent","roundTripTime","exports"],"sources":["HMSLocalAudioStats.ts"],"sourcesContent":["export class HMSLocalAudioStats {\n bitrate?: number;\n bytesSent?: number;\n roundTripTime?: number;\n\n constructor(params: {\n bitrate?: number;\n bytesSent?: number;\n roundTripTime?: number;\n }) {\n this.bitrate = params.bitrate;\n this.bytesSent = params.bytesSent;\n this.roundTripTime = params.roundTripTime;\n }\n}\n"],"mappings":";;;;;;;;;AAAO,MAAMA,kBAAkB,CAAC;EAK9BC,WAAWA,CAACC,MAIX,EAAE;IAAAC,eAAA;IAAAA,eAAA;IAAAA,eAAA;IACD,IAAI,CAACC,OAAO,GAAGF,MAAM,CAACE,OAAO;IAC7B,IAAI,CAACC,SAAS,GAAGH,MAAM,CAACG,SAAS;IACjC,IAAI,CAACC,aAAa,GAAGJ,MAAM,CAACI,aAAa;EAC3C;AACF;AAACC,OAAA,CAAAP,kBAAA,GAAAA,kBAAA","ignoreList":[]}
|
|
@@ -8,7 +8,7 @@ var _reactNative = require("react-native");
|
|
|
8
8
|
var _HMSAudioTrack = require("./HMSAudioTrack");
|
|
9
9
|
var _HMSLogger = require("./HMSLogger");
|
|
10
10
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
11
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i :
|
|
11
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
12
12
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
13
13
|
const {
|
|
14
14
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","_HMSAudioTrack","_HMSLogger","_defineProperty","obj","key","value","_toPropertyKey","Object","defineProperty","enumerable","configurable","writable","t","i","_toPrimitive","
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_HMSAudioTrack","_HMSLogger","_defineProperty","obj","key","value","_toPropertyKey","Object","defineProperty","enumerable","configurable","writable","t","i","_toPrimitive","r","e","Symbol","toPrimitive","call","TypeError","String","Number","HMSManager","NativeModules","HMSLocalAudioTrack","HMSAudioTrack","setMute","isMute","logger","getLogger","verbose","trackId","id","source","type","setLocalMute","constructor","params","Platform","OS","volume","getVolume","settings","exports"],"sources":["HMSLocalAudioTrack.ts"],"sourcesContent":["import { NativeModules, Platform } from 'react-native';\nimport { HMSAudioTrack } from './HMSAudioTrack';\nimport { getLogger } from './HMSLogger';\nimport type { HMSAudioTrackSettings } from './HMSAudioTrackSettings';\nimport type { HMSTrackType } from './HMSTrackType';\nimport type { HMSTrackSource } from './HMSTrackSource';\n\nconst {\n /**\n * @ignore\n */\n HMSManager,\n} = NativeModules;\n\nexport class HMSLocalAudioTrack extends HMSAudioTrack {\n settings?: HMSAudioTrackSettings;\n id: string;\n\n /**\n * Switches Audio of current user on/off depending upon the value of isMute\n *\n * @param {boolean} isMute\n * @memberof HMSLocalAudioTrack\n */\n setMute(isMute: boolean) {\n const logger = getLogger();\n logger?.verbose('#Function setMute', {\n trackId: this.trackId,\n id: this.id,\n source: this.source,\n type: this.type,\n isMute,\n });\n HMSManager.setLocalMute({ isMute, id: this.id });\n }\n\n getVolume = async () => {\n const logger = getLogger();\n logger?.verbose('#Function getVolume', {\n trackId: this.trackId,\n id: this.id,\n source: this.source,\n type: this.type,\n });\n if (Platform.OS === 'ios') {\n return 'This API not available for IOS';\n }\n const volume = await HMSManager.getVolume({\n trackId: this.trackId,\n id: this.id,\n });\n\n return volume;\n };\n\n constructor(params: {\n id: string;\n trackId: string;\n source?: HMSTrackSource;\n trackDescription?: string;\n isMute?: boolean;\n settings?: HMSAudioTrackSettings;\n type?: HMSTrackType;\n }) {\n super(params);\n this.id = params.id;\n this.settings = params.settings;\n }\n}\n"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,cAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAF,OAAA;AAAwC,SAAAG,gBAAAC,GAAA,EAAAC,GAAA,EAAAC,KAAA,IAAAD,GAAA,GAAAE,cAAA,CAAAF,GAAA,OAAAA,GAAA,IAAAD,GAAA,IAAAI,MAAA,CAAAC,cAAA,CAAAL,GAAA,EAAAC,GAAA,IAAAC,KAAA,EAAAA,KAAA,EAAAI,UAAA,QAAAC,YAAA,QAAAC,QAAA,oBAAAR,GAAA,CAAAC,GAAA,IAAAC,KAAA,WAAAF,GAAA;AAAA,SAAAG,eAAAM,CAAA,QAAAC,CAAA,GAAAC,YAAA,CAAAF,CAAA,uCAAAC,CAAA,GAAAA,CAAA,GAAAA,CAAA;AAAA,SAAAC,aAAAF,CAAA,EAAAG,CAAA,2BAAAH,CAAA,KAAAA,CAAA,SAAAA,CAAA,MAAAI,CAAA,GAAAJ,CAAA,CAAAK,MAAA,CAAAC,WAAA,kBAAAF,CAAA,QAAAH,CAAA,GAAAG,CAAA,CAAAG,IAAA,CAAAP,CAAA,EAAAG,CAAA,uCAAAF,CAAA,SAAAA,CAAA,YAAAO,SAAA,yEAAAL,CAAA,GAAAM,MAAA,GAAAC,MAAA,EAAAV,CAAA;AAKxC,MAAM;EACJ;AACF;AACA;EACEW;AACF,CAAC,GAAGC,0BAAa;AAEV,MAAMC,kBAAkB,SAASC,4BAAa,CAAC;EAIpD;AACF;AACA;AACA;AACA;AACA;EACEC,OAAOA,CAACC,MAAe,EAAE;IACvB,MAAMC,MAAM,GAAG,IAAAC,oBAAS,EAAC,CAAC;IAC1BD,MAAM,aAANA,MAAM,eAANA,MAAM,CAAEE,OAAO,CAAC,mBAAmB,EAAE;MACnCC,OAAO,EAAE,IAAI,CAACA,OAAO;MACrBC,EAAE,EAAE,IAAI,CAACA,EAAE;MACXC,MAAM,EAAE,IAAI,CAACA,MAAM;MACnBC,IAAI,EAAE,IAAI,CAACA,IAAI;MACfP;IACF,CAAC,CAAC;IACFL,UAAU,CAACa,YAAY,CAAC;MAAER,MAAM;MAAEK,EAAE,EAAE,IAAI,CAACA;IAAG,CAAC,CAAC;EAClD;EAqBAI,WAAWA,CAACC,MAQX,EAAE;IACD,KAAK,CAACA,MAAM,CAAC;IAACpC,eAAA;IAAAA,eAAA;IAAAA,eAAA,oBA5BJ,YAAY;MACtB,MAAM2B,MAAM,GAAG,IAAAC,oBAAS,EAAC,CAAC;MAC1BD,MAAM,aAANA,MAAM,eAANA,MAAM,CAAEE,OAAO,CAAC,qBAAqB,EAAE;QACrCC,OAAO,EAAE,IAAI,CAACA,OAAO;QACrBC,EAAE,EAAE,IAAI,CAACA,EAAE;QACXC,MAAM,EAAE,IAAI,CAACA,MAAM;QACnBC,IAAI,EAAE,IAAI,CAACA;MACb,CAAC,CAAC;MACF,IAAII,qBAAQ,CAACC,EAAE,KAAK,KAAK,EAAE;QACzB,OAAO,gCAAgC;MACzC;MACA,MAAMC,MAAM,GAAG,MAAMlB,UAAU,CAACmB,SAAS,CAAC;QACxCV,OAAO,EAAE,IAAI,CAACA,OAAO;QACrBC,EAAE,EAAE,IAAI,CAACA;MACX,CAAC,CAAC;MAEF,OAAOQ,MAAM;IACf,CAAC;IAYC,IAAI,CAACR,EAAE,GAAGK,MAAM,CAACL,EAAE;IACnB,IAAI,CAACU,QAAQ,GAAGL,MAAM,CAACK,QAAQ;EACjC;AACF;AAACC,OAAA,CAAAnB,kBAAA,GAAAA,kBAAA","ignoreList":[]}
|
|
@@ -8,7 +8,7 @@ var _HMSPeer = require("./HMSPeer");
|
|
|
8
8
|
var _HMSLocalAudioTrack = require("./HMSLocalAudioTrack");
|
|
9
9
|
var _HMSLocalVideoTrack = require("./HMSLocalVideoTrack");
|
|
10
10
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
11
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i :
|
|
11
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
12
12
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
13
13
|
class HMSLocalPeer extends _HMSPeer.HMSPeer {
|
|
14
14
|
constructor(params) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_HMSPeer","require","_HMSLocalAudioTrack","_HMSLocalVideoTrack","_defineProperty","obj","key","value","_toPropertyKey","Object","defineProperty","enumerable","configurable","writable","t","i","_toPrimitive","
|
|
1
|
+
{"version":3,"names":["_HMSPeer","require","_HMSLocalAudioTrack","_HMSLocalVideoTrack","_defineProperty","obj","key","value","_toPropertyKey","Object","defineProperty","enumerable","configurable","writable","t","i","_toPrimitive","r","e","Symbol","toPrimitive","call","TypeError","String","Number","HMSLocalPeer","HMSPeer","constructor","params","localAudio","localVideo","localAudioTrackData","HMSLocalAudioTrack","localVideoTrackData","HMSLocalVideoTrack","exports"],"sources":["HMSLocalPeer.ts"],"sourcesContent":["import { HMSPeer } from './HMSPeer';\nimport type { HMSVideoTrackSettings } from './HMSVideoTrackSettings';\nimport type { HMSAudioTrackSettings } from './HMSAudioTrackSettings';\nimport { HMSLocalAudioTrack } from './HMSLocalAudioTrack';\nimport { HMSLocalVideoTrack } from './HMSLocalVideoTrack';\nimport type { HMSTrackType } from './HMSTrackType';\nimport type { HMSTrackSource } from './HMSTrackSource';\n\nexport class HMSLocalPeer extends HMSPeer {\n private localAudio?: HMSLocalAudioTrack;\n private localVideo?: HMSLocalVideoTrack;\n\n localAudioTrack = () => {\n return this.localAudio;\n };\n localVideoTrack = () => {\n return this.localVideo;\n };\n\n constructor(params: {\n peerID: string;\n name: string;\n localAudioTrackData?: {\n id: string;\n trackId: string;\n source?: HMSTrackSource;\n trackDescription?: string;\n isMute?: boolean;\n settings?: HMSAudioTrackSettings;\n type: HMSTrackType;\n };\n localVideoTrackData?: {\n id: string;\n trackId: string;\n source?: HMSTrackSource;\n trackDescription?: string;\n isMute?: boolean;\n settings?: HMSVideoTrackSettings;\n type: HMSTrackType;\n };\n }) {\n super(params);\n if (params.localAudioTrackData) {\n this.localAudio = new HMSLocalAudioTrack(params.localAudioTrackData);\n }\n if (params.localVideoTrackData) {\n this.localVideo = new HMSLocalVideoTrack(params.localVideoTrackData);\n }\n }\n}\n"],"mappings":";;;;;;AAAA,IAAAA,QAAA,GAAAC,OAAA;AAGA,IAAAC,mBAAA,GAAAD,OAAA;AACA,IAAAE,mBAAA,GAAAF,OAAA;AAA0D,SAAAG,gBAAAC,GAAA,EAAAC,GAAA,EAAAC,KAAA,IAAAD,GAAA,GAAAE,cAAA,CAAAF,GAAA,OAAAA,GAAA,IAAAD,GAAA,IAAAI,MAAA,CAAAC,cAAA,CAAAL,GAAA,EAAAC,GAAA,IAAAC,KAAA,EAAAA,KAAA,EAAAI,UAAA,QAAAC,YAAA,QAAAC,QAAA,oBAAAR,GAAA,CAAAC,GAAA,IAAAC,KAAA,WAAAF,GAAA;AAAA,SAAAG,eAAAM,CAAA,QAAAC,CAAA,GAAAC,YAAA,CAAAF,CAAA,uCAAAC,CAAA,GAAAA,CAAA,GAAAA,CAAA;AAAA,SAAAC,aAAAF,CAAA,EAAAG,CAAA,2BAAAH,CAAA,KAAAA,CAAA,SAAAA,CAAA,MAAAI,CAAA,GAAAJ,CAAA,CAAAK,MAAA,CAAAC,WAAA,kBAAAF,CAAA,QAAAH,CAAA,GAAAG,CAAA,CAAAG,IAAA,CAAAP,CAAA,EAAAG,CAAA,uCAAAF,CAAA,SAAAA,CAAA,YAAAO,SAAA,yEAAAL,CAAA,GAAAM,MAAA,GAAAC,MAAA,EAAAV,CAAA;AAInD,MAAMW,YAAY,SAASC,gBAAO,CAAC;EAWxCC,WAAWA,CAACC,MAqBX,EAAE;IACD,KAAK,CAACA,MAAM,CAAC;IAACxB,eAAA;IAAAA,eAAA;IAAAA,eAAA,0BA7BE,MAAM;MACtB,OAAO,IAAI,CAACyB,UAAU;IACxB,CAAC;IAAAzB,eAAA,0BACiB,MAAM;MACtB,OAAO,IAAI,CAAC0B,UAAU;IACxB,CAAC;IAyBC,IAAIF,MAAM,CAACG,mBAAmB,EAAE;MAC9B,IAAI,CAACF,UAAU,GAAG,IAAIG,sCAAkB,CAACJ,MAAM,CAACG,mBAAmB,CAAC;IACtE;IACA,IAAIH,MAAM,CAACK,mBAAmB,EAAE;MAC9B,IAAI,CAACH,UAAU,GAAG,IAAII,sCAAkB,CAACN,MAAM,CAACK,mBAAmB,CAAC;IACtE;EACF;AACF;AAACE,OAAA,CAAAV,YAAA,GAAAA,YAAA","ignoreList":[]}
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.HMSLocalVideoStats = void 0;
|
|
7
7
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
8
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i :
|
|
8
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
9
9
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
10
10
|
class HMSLocalVideoStats {
|
|
11
11
|
constructor(params) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["HMSLocalVideoStats","constructor","params","_defineProperty","bitrate","bytesSent","roundTripTime","frameRate","resolution","qualityLimitationReasons","layer","exports"],"sources":["HMSLocalVideoStats.ts"],"sourcesContent":["import type { HMSLayer } from './HMSLayer';\nimport type { HMSQualityLimitationReasons } from './HMSQualityLimitationReasons';\nimport type { HMSVideoResolution } from './HMSVideoResolution';\n\nexport class HMSLocalVideoStats {\n // Outgoing bitrate of this track observed since previous report in Kb/s.\n bitrate?: number;\n\n // Total bytes sent by this track in the current session.\n bytesSent?: number;\n\n // Round trip time observed since previous report\n roundTripTime?: number;\n\n // Frame rate of video frames being sent (FPS)\n frameRate?: number;\n\n // Resolution of video frames being sent\n resolution?: HMSVideoResolution;\n\n // Reason for quality limitations\n qualityLimitationReasons?: HMSQualityLimitationReasons;\n\n /// Simulcast Layer\n layer?: HMSLayer;\n\n constructor(params: {\n bitrate?: number;\n bytesSent?: number;\n roundTripTime?: number;\n frameRate?: number;\n resolution?: HMSVideoResolution;\n qualityLimitationReasons?: HMSQualityLimitationReasons;\n layer?: HMSLayer;\n }) {\n this.bitrate = params.bitrate;\n this.bytesSent = params.bytesSent;\n this.roundTripTime = params.roundTripTime;\n this.frameRate = params.frameRate;\n this.resolution = params.resolution;\n this.qualityLimitationReasons = params.qualityLimitationReasons;\n this.layer = params.layer;\n }\n}\n"],"mappings":";;;;;;;;;AAIO,MAAMA,kBAAkB,CAAC;EAsB9BC,WAAWA,CAACC,MAQX,EAAE;IA7BH;IAAAC,eAAA;IAGA;IAAAA,eAAA;IAGA;IAAAA,eAAA;IAGA;IAAAA,eAAA;IAGA;IAAAA,eAAA;IAGA;IAAAA,eAAA;IAGA;IAAAA,eAAA;IAYE,IAAI,CAACC,OAAO,GAAGF,MAAM,CAACE,OAAO;IAC7B,IAAI,CAACC,SAAS,GAAGH,MAAM,CAACG,SAAS;IACjC,IAAI,CAACC,aAAa,GAAGJ,MAAM,CAACI,aAAa;IACzC,IAAI,CAACC,SAAS,GAAGL,MAAM,CAACK,SAAS;IACjC,IAAI,CAACC,UAAU,GAAGN,MAAM,CAACM,UAAU;IACnC,IAAI,CAACC,wBAAwB,GAAGP,MAAM,CAACO,wBAAwB;IAC/D,IAAI,CAACC,KAAK,GAAGR,MAAM,CAACQ,KAAK;EAC3B;AACF;AAACC,OAAA,CAAAX,kBAAA,GAAAA,kBAAA"}
|
|
1
|
+
{"version":3,"names":["HMSLocalVideoStats","constructor","params","_defineProperty","bitrate","bytesSent","roundTripTime","frameRate","resolution","qualityLimitationReasons","layer","exports"],"sources":["HMSLocalVideoStats.ts"],"sourcesContent":["import type { HMSLayer } from './HMSLayer';\nimport type { HMSQualityLimitationReasons } from './HMSQualityLimitationReasons';\nimport type { HMSVideoResolution } from './HMSVideoResolution';\n\nexport class HMSLocalVideoStats {\n // Outgoing bitrate of this track observed since previous report in Kb/s.\n bitrate?: number;\n\n // Total bytes sent by this track in the current session.\n bytesSent?: number;\n\n // Round trip time observed since previous report\n roundTripTime?: number;\n\n // Frame rate of video frames being sent (FPS)\n frameRate?: number;\n\n // Resolution of video frames being sent\n resolution?: HMSVideoResolution;\n\n // Reason for quality limitations\n qualityLimitationReasons?: HMSQualityLimitationReasons;\n\n /// Simulcast Layer\n layer?: HMSLayer;\n\n constructor(params: {\n bitrate?: number;\n bytesSent?: number;\n roundTripTime?: number;\n frameRate?: number;\n resolution?: HMSVideoResolution;\n qualityLimitationReasons?: HMSQualityLimitationReasons;\n layer?: HMSLayer;\n }) {\n this.bitrate = params.bitrate;\n this.bytesSent = params.bytesSent;\n this.roundTripTime = params.roundTripTime;\n this.frameRate = params.frameRate;\n this.resolution = params.resolution;\n this.qualityLimitationReasons = params.qualityLimitationReasons;\n this.layer = params.layer;\n }\n}\n"],"mappings":";;;;;;;;;AAIO,MAAMA,kBAAkB,CAAC;EAsB9BC,WAAWA,CAACC,MAQX,EAAE;IA7BH;IAAAC,eAAA;IAGA;IAAAA,eAAA;IAGA;IAAAA,eAAA;IAGA;IAAAA,eAAA;IAGA;IAAAA,eAAA;IAGA;IAAAA,eAAA;IAGA;IAAAA,eAAA;IAYE,IAAI,CAACC,OAAO,GAAGF,MAAM,CAACE,OAAO;IAC7B,IAAI,CAACC,SAAS,GAAGH,MAAM,CAACG,SAAS;IACjC,IAAI,CAACC,aAAa,GAAGJ,MAAM,CAACI,aAAa;IACzC,IAAI,CAACC,SAAS,GAAGL,MAAM,CAACK,SAAS;IACjC,IAAI,CAACC,UAAU,GAAGN,MAAM,CAACM,UAAU;IACnC,IAAI,CAACC,wBAAwB,GAAGP,MAAM,CAACO,wBAAwB;IAC/D,IAAI,CAACC,KAAK,GAAGR,MAAM,CAACQ,KAAK;EAC3B;AACF;AAACC,OAAA,CAAAX,kBAAA,GAAAA,kBAAA","ignoreList":[]}
|
|
@@ -8,7 +8,7 @@ var _reactNative = require("react-native");
|
|
|
8
8
|
var _HMSVideoTrack = require("./HMSVideoTrack");
|
|
9
9
|
var _HMSLogger = require("./HMSLogger");
|
|
10
10
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
11
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i :
|
|
11
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
12
12
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
13
13
|
const {
|
|
14
14
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","_HMSVideoTrack","_HMSLogger","_defineProperty","obj","key","value","_toPropertyKey","Object","defineProperty","enumerable","configurable","writable","t","i","_toPrimitive","
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_HMSVideoTrack","_HMSLogger","_defineProperty","obj","key","value","_toPropertyKey","Object","defineProperty","enumerable","configurable","writable","t","i","_toPrimitive","r","e","Symbol","toPrimitive","call","TypeError","String","Number","HMSManager","NativeModules","HMSLocalVideoTrack","HMSVideoTrack","setMute","isMute","logger","getLogger","verbose","trackId","source","type","id","setLocalVideoMute","constructor","params","switchCamera","settings","exports"],"sources":["HMSLocalVideoTrack.ts"],"sourcesContent":["import { NativeModules } from 'react-native';\nimport { HMSVideoTrack } from './HMSVideoTrack';\nimport { getLogger } from './HMSLogger';\nimport type { HMSVideoTrackSettings } from './HMSVideoTrackSettings';\nimport type { HMSTrackType } from './HMSTrackType';\nimport type { HMSTrackSource } from './HMSTrackSource';\n\nconst {\n /**\n * @ignore\n */\n HMSManager,\n} = NativeModules;\n\nexport class HMSLocalVideoTrack extends HMSVideoTrack {\n settings?: HMSVideoTrackSettings;\n id: string;\n\n /**\n * switches camera between front/back\n *\n * @memberof HMSSDK\n */\n switchCamera = () => {\n const logger = getLogger();\n logger?.verbose('#Function switchCamera', {\n trackId: this.trackId,\n source: this.source,\n type: this.type,\n id: this.id,\n });\n HMSManager.switchCamera({ id: this.id });\n };\n\n /**\n * Switches local video feed on/off depending upon the value of isMute\n *\n * @param {boolean} isMute\n * @memberof HMSLocalVideoTrack\n */\n setMute(isMute: boolean) {\n const logger = getLogger();\n logger?.verbose('#Function setMute', {\n trackId: this.trackId,\n source: this.source,\n type: this.type,\n id: this.id,\n });\n HMSManager.setLocalVideoMute({ isMute, id: this.id });\n }\n\n constructor(params: {\n id: string;\n trackId: string;\n source?: HMSTrackSource;\n trackDescription?: string;\n isMute?: boolean;\n settings?: HMSVideoTrackSettings;\n type?: HMSTrackType;\n }) {\n super(params);\n this.settings = params.settings;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,CAACA,IAAI;MACfC,EAAE,EAAE,IAAI,CAACA;IACX,CAAC,CAAC;IACFZ,UAAU,CAACa,iBAAiB,CAAC;MAAER,MAAM;MAAEO,EAAE,EAAE,IAAI,CAACA;IAAG,CAAC,CAAC;EACvD;EAEAE,WAAWA,CAACC,MAQX,EAAE;IACD,KAAK,CAACA,MAAM,CAAC;IAACpC,eAAA;IAAAA,eAAA;IA1ChB;AACF;AACA;AACA;AACA;IAJEA,eAAA,uBAKe,MAAM;MACnB,MAAM2B,MAAM,GAAG,IAAAC,oBAAS,EAAC,CAAC;MAC1BD,MAAM,aAANA,MAAM,eAANA,MAAM,CAAEE,OAAO,CAAC,wBAAwB,EAAE;QACxCC,OAAO,EAAE,IAAI,CAACA,OAAO;QACrBC,MAAM,EAAE,IAAI,CAACA,MAAM;QACnBC,IAAI,EAAE,IAAI,CAACA,IAAI;QACfC,EAAE,EAAE,IAAI,CAACA;MACX,CAAC,CAAC;MACFZ,UAAU,CAACgB,YAAY,CAAC;QAAEJ,EAAE,EAAE,IAAI,CAACA;MAAG,CAAC,CAAC;IAC1C,CAAC;IA6BC,IAAI,CAACK,QAAQ,GAAGF,MAAM,CAACE,QAAQ;IAC/B,IAAI,CAACL,EAAE,GAAGG,MAAM,CAACH,EAAE;EACrB;AACF;AAACM,OAAA,CAAAhB,kBAAA,GAAAA,kBAAA","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["HMSLogAlarmManager","exports"],"sources":["HMSLogAlarmManager.ts"],"sourcesContent":["export enum HMSLogAlarmManager {\n DEFAULT_DIR_SIZE = 'DEFAULT_DIR_SIZE',\n DEFAULT_LOGS_FILE_NAME = 'DEFAULT_LOGS_FILE_NAME',\n MAX_DIR_SIZE = 'MAX_DIR_SIZE',\n}\n"],"mappings":";;;;;;IAAYA,kBAAkB,GAAAC,OAAA,CAAAD,kBAAA,0BAAlBA,kBAAkB;EAAlBA,kBAAkB;EAAlBA,kBAAkB;EAAlBA,kBAAkB;EAAA,OAAlBA,kBAAkB;AAAA"}
|
|
1
|
+
{"version":3,"names":["HMSLogAlarmManager","exports"],"sources":["HMSLogAlarmManager.ts"],"sourcesContent":["export enum HMSLogAlarmManager {\n DEFAULT_DIR_SIZE = 'DEFAULT_DIR_SIZE',\n DEFAULT_LOGS_FILE_NAME = 'DEFAULT_LOGS_FILE_NAME',\n MAX_DIR_SIZE = 'MAX_DIR_SIZE',\n}\n"],"mappings":";;;;;;IAAYA,kBAAkB,GAAAC,OAAA,CAAAD,kBAAA,0BAAlBA,kBAAkB;EAAlBA,kBAAkB;EAAlBA,kBAAkB;EAAlBA,kBAAkB;EAAA,OAAlBA,kBAAkB;AAAA","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["HMSLogLevel","exports"],"sources":["HMSLogLevel.ts"],"sourcesContent":["export enum HMSLogLevel {\n VERBOSE = 'VERBOSE',\n WARNING = 'WARNING',\n ERROR = 'ERROR',\n}\n"],"mappings":";;;;;;IAAYA,WAAW,GAAAC,OAAA,CAAAD,WAAA,0BAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAA,OAAXA,WAAW;AAAA"}
|
|
1
|
+
{"version":3,"names":["HMSLogLevel","exports"],"sources":["HMSLogLevel.ts"],"sourcesContent":["export enum HMSLogLevel {\n VERBOSE = 'VERBOSE',\n WARNING = 'WARNING',\n ERROR = 'ERROR',\n}\n"],"mappings":";;;;;;IAAYA,WAAW,GAAAC,OAAA,CAAAD,WAAA,0BAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAA,OAAXA,WAAW;AAAA","ignoreList":[]}
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.HMSLogSettings = void 0;
|
|
7
7
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
8
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i :
|
|
8
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
9
9
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
10
10
|
class HMSLogSettings {
|
|
11
11
|
constructor(params) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["HMSLogSettings","constructor","params","_defineProperty","level","isLogStorageEnabled","maxDirSizeInBytes","exports"],"sources":["HMSLogSettings.ts"],"sourcesContent":["import type { HMSLogAlarmManager } from './HMSLogAlarmManager';\nimport type { HMSLogLevel } from './HMSLogLevel';\n\nexport class HMSLogSettings {\n level: HMSLogLevel;\n isLogStorageEnabled: boolean;\n maxDirSizeInBytes: HMSLogAlarmManager;\n\n constructor(params: {\n level: HMSLogLevel;\n isLogStorageEnabled: boolean;\n maxDirSizeInBytes: HMSLogAlarmManager;\n }) {\n this.level = params.level;\n this.isLogStorageEnabled = params.isLogStorageEnabled;\n this.maxDirSizeInBytes = params.maxDirSizeInBytes;\n }\n}\n"],"mappings":";;;;;;;;;AAGO,MAAMA,cAAc,CAAC;EAK1BC,WAAWA,CAACC,MAIX,EAAE;IAAAC,eAAA;IAAAA,eAAA;IAAAA,eAAA;IACD,IAAI,CAACC,KAAK,GAAGF,MAAM,CAACE,KAAK;IACzB,IAAI,CAACC,mBAAmB,GAAGH,MAAM,CAACG,mBAAmB;IACrD,IAAI,CAACC,iBAAiB,GAAGJ,MAAM,CAACI,iBAAiB;EACnD;AACF;AAACC,OAAA,CAAAP,cAAA,GAAAA,cAAA"}
|
|
1
|
+
{"version":3,"names":["HMSLogSettings","constructor","params","_defineProperty","level","isLogStorageEnabled","maxDirSizeInBytes","exports"],"sources":["HMSLogSettings.ts"],"sourcesContent":["import type { HMSLogAlarmManager } from './HMSLogAlarmManager';\nimport type { HMSLogLevel } from './HMSLogLevel';\n\nexport class HMSLogSettings {\n level: HMSLogLevel;\n isLogStorageEnabled: boolean;\n maxDirSizeInBytes: HMSLogAlarmManager;\n\n constructor(params: {\n level: HMSLogLevel;\n isLogStorageEnabled: boolean;\n maxDirSizeInBytes: HMSLogAlarmManager;\n }) {\n this.level = params.level;\n this.isLogStorageEnabled = params.isLogStorageEnabled;\n this.maxDirSizeInBytes = params.maxDirSizeInBytes;\n }\n}\n"],"mappings":";;;;;;;;;AAGO,MAAMA,cAAc,CAAC;EAK1BC,WAAWA,CAACC,MAIX,EAAE;IAAAC,eAAA;IAAAA,eAAA;IAAAA,eAAA;IACD,IAAI,CAACC,KAAK,GAAGF,MAAM,CAACE,KAAK;IACzB,IAAI,CAACC,mBAAmB,GAAGH,MAAM,CAACG,mBAAmB;IACrD,IAAI,CAACC,iBAAiB,GAAGJ,MAAM,CAACI,iBAAiB;EACnD;AACF;AAACC,OAAA,CAAAP,cAAA,GAAAA,cAAA","ignoreList":[]}
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.setLogger = exports.logger = exports.getLogger = exports.HMSLogger = void 0;
|
|
7
7
|
var _HMSLogLevel = require("./HMSLogLevel");
|
|
8
8
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
9
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i :
|
|
9
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
10
10
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
11
11
|
let logger = exports.logger = void 0;
|
|
12
12
|
const getLogger = () => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_HMSLogLevel","require","_defineProperty","obj","key","value","_toPropertyKey","Object","defineProperty","enumerable","configurable","writable","t","i","_toPrimitive","
|
|
1
|
+
{"version":3,"names":["_HMSLogLevel","require","_defineProperty","obj","key","value","_toPropertyKey","Object","defineProperty","enumerable","configurable","writable","t","i","_toPrimitive","r","e","Symbol","toPrimitive","call","TypeError","String","Number","logger","exports","getLogger","setLogger","id","hmsLogger","verbose","HMSLogger","constructor","params","_verbose","_warning","warning","_error","error","message","data","timestamp","getTimestamp","console","log","onLog","warn","setLogListener","callback","updateLogLevel","level","HMSLogLevel","VERBOSE","WARNING","ERROR","d","Date","hh","getHours","toString","padStart","mm","getMinutes","ss","getSeconds","millis","getMilliseconds"],"sources":["HMSLogger.ts"],"sourcesContent":["import { HMSLogLevel } from './HMSLogLevel';\n\nexport let logger: HMSLogger | undefined;\n\nexport const getLogger = () => {\n return logger;\n};\n\nexport const setLogger = (id: string, hmsLogger?: HMSLogger) => {\n logger = hmsLogger;\n hmsLogger?.verbose('#Function setLogger', { id });\n};\n\nexport class HMSLogger {\n private _verbose: boolean = false;\n private _warning: boolean = false;\n private _error: boolean = false;\n private onLog?: Function;\n\n constructor(params?: { verbose: boolean; warning: boolean; error: boolean }) {\n if (params) {\n this._verbose = params.verbose;\n this._warning = params.warning;\n this._error = params.error;\n }\n }\n\n verbose(message: string, data: any) {\n if (this._verbose) {\n const timestamp = this.getTimestamp();\n console.log(timestamp, message, data);\n if (this.onLog) {\n this?.onLog({ timestamp, message, data });\n }\n }\n }\n\n warn(message: string, data: any) {\n if (this._warning) {\n const timestamp = this.getTimestamp();\n console.warn(timestamp, message, data);\n if (this.onLog) {\n this?.onLog({ timestamp, message, data });\n }\n }\n }\n\n error(message: string, data: any) {\n if (this._error) {\n const timestamp = this.getTimestamp();\n console.error(timestamp, message, data);\n if (this.onLog) {\n this?.onLog({ timestamp, message, data });\n }\n }\n }\n\n setLogListener(callback: Function) {\n this.onLog = callback;\n }\n\n updateLogLevel(level: HMSLogLevel, value: boolean) {\n switch (level) {\n case HMSLogLevel.VERBOSE: {\n this._verbose = value;\n return;\n }\n case HMSLogLevel.WARNING: {\n this._warning = value;\n return;\n }\n case HMSLogLevel.ERROR: {\n this._error = value;\n return;\n }\n default: {\n return;\n }\n }\n }\n\n getTimestamp(): string {\n const d = new Date();\n\n const hh = d.getHours().toString().padStart(2, '0');\n const mm = d.getMinutes().toString().padStart(2, '0');\n const ss = d.getSeconds().toString().padStart(2, '0');\n const millis = d.getMilliseconds().toString().padStart(3, '0');\n\n return `${hh}:${mm}:${ss}:${millis}`;\n }\n}\n"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAA4C,SAAAC,gBAAAC,GAAA,EAAAC,GAAA,EAAAC,KAAA,IAAAD,GAAA,GAAAE,cAAA,CAAAF,GAAA,OAAAA,GAAA,IAAAD,GAAA,IAAAI,MAAA,CAAAC,cAAA,CAAAL,GAAA,EAAAC,GAAA,IAAAC,KAAA,EAAAA,KAAA,EAAAI,UAAA,QAAAC,YAAA,QAAAC,QAAA,oBAAAR,GAAA,CAAAC,GAAA,IAAAC,KAAA,WAAAF,GAAA;AAAA,SAAAG,eAAAM,CAAA,QAAAC,CAAA,GAAAC,YAAA,CAAAF,CAAA,uCAAAC,CAAA,GAAAA,CAAA,GAAAA,CAAA;AAAA,SAAAC,aAAAF,CAAA,EAAAG,CAAA,2BAAAH,CAAA,KAAAA,CAAA,SAAAA,CAAA,MAAAI,CAAA,GAAAJ,CAAA,CAAAK,MAAA,CAAAC,WAAA,kBAAAF,CAAA,QAAAH,CAAA,GAAAG,CAAA,CAAAG,IAAA,CAAAP,CAAA,EAAAG,CAAA,uCA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AIC,IAAI,CAAC,CAAC;IAEpB,MAAMC,EAAE,GAAGF,CAAC,CAACG,QAAQ,CAAC,CAAC,CAACC,QAAQ,CAAC,CAAC,CAACC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC;IACnD,MAAMC,EAAE,GAAGN,CAAC,CAACO,UAAU,CAAC,CAAC,CAACH,QAAQ,CAAC,CAAC,CAACC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC;IACrD,MAAMG,EAAE,GAAGR,CAAC,CAACS,UAAU,CAAC,CAAC,CAACL,QAAQ,CAAC,CAAC,CAACC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC;IACrD,MAAMK,MAAM,GAAGV,CAAC,CAACW,eAAe,CAAC,CAAC,CAACP,QAAQ,CAAC,CAAC,CAACC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC;IAE9D,OAAQ,GAAEH,EAAG,IAAGI,EAAG,IAAGE,EAAG,IAAGE,MAAO,EAAC;EACtC;AACF;AAACxC,OAAA,CAAAM,SAAA,GAAAA,SAAA","ignoreList":[]}
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.HMSMessage = void 0;
|
|
7
7
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
8
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i :
|
|
8
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
9
9
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
10
10
|
class HMSMessage {
|
|
11
11
|
constructor(params) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["HMSMessage","constructor","params","_defineProperty","message","messageId","type","time","sender","recipient","exports"],"sources":["HMSMessage.ts"],"sourcesContent":["import type { HMSMessageRecipient } from './HMSMessageRecipient';\nimport type { HMSPeer } from './HMSPeer';\n\nexport class HMSMessage {\n public message: string;\n public messageId: string;\n public type: string;\n public time: Date;\n public sender?: HMSPeer;\n public recipient: HMSMessageRecipient;\n\n constructor(params: {\n message: string;\n messageId: string;\n type: string;\n time: Date;\n sender?: HMSPeer;\n recipient: HMSMessageRecipient;\n }) {\n this.message = params.message;\n this.messageId = params.messageId;\n this.type = params.type;\n this.time = params.time;\n this.sender = params.sender;\n this.recipient = params.recipient;\n }\n}\n"],"mappings":";;;;;;;;;AAGO,MAAMA,UAAU,CAAC;EAQtBC,WAAWA,CAACC,MAOX,EAAE;IAAAC,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IACD,IAAI,CAACC,OAAO,GAAGF,MAAM,CAACE,OAAO;IAC7B,IAAI,CAACC,SAAS,GAAGH,MAAM,CAACG,SAAS;IACjC,IAAI,CAACC,IAAI,GAAGJ,MAAM,CAACI,IAAI;IACvB,IAAI,CAACC,IAAI,GAAGL,MAAM,CAACK,IAAI;IACvB,IAAI,CAACC,MAAM,GAAGN,MAAM,CAACM,MAAM;IAC3B,IAAI,CAACC,SAAS,GAAGP,MAAM,CAACO,SAAS;EACnC;AACF;AAACC,OAAA,CAAAV,UAAA,GAAAA,UAAA"}
|
|
1
|
+
{"version":3,"names":["HMSMessage","constructor","params","_defineProperty","message","messageId","type","time","sender","recipient","exports"],"sources":["HMSMessage.ts"],"sourcesContent":["import type { HMSMessageRecipient } from './HMSMessageRecipient';\nimport type { HMSPeer } from './HMSPeer';\n\nexport class HMSMessage {\n public message: string;\n public messageId: string;\n public type: string;\n public time: Date;\n public sender?: HMSPeer;\n public recipient: HMSMessageRecipient;\n\n constructor(params: {\n message: string;\n messageId: string;\n type: string;\n time: Date;\n sender?: HMSPeer;\n recipient: HMSMessageRecipient;\n }) {\n this.message = params.message;\n this.messageId = params.messageId;\n this.type = params.type;\n this.time = params.time;\n this.sender = params.sender;\n this.recipient = params.recipient;\n }\n}\n"],"mappings":";;;;;;;;;AAGO,MAAMA,UAAU,CAAC;EAQtBC,WAAWA,CAACC,MAOX,EAAE;IAAAC,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IACD,IAAI,CAACC,OAAO,GAAGF,MAAM,CAACE,OAAO;IAC7B,IAAI,CAACC,SAAS,GAAGH,MAAM,CAACG,SAAS;IACjC,IAAI,CAACC,IAAI,GAAGJ,MAAM,CAACI,IAAI;IACvB,IAAI,CAACC,IAAI,GAAGL,MAAM,CAACK,IAAI;IACvB,IAAI,CAACC,MAAM,GAAGN,MAAM,CAACM,MAAM;IAC3B,IAAI,CAACC,SAAS,GAAGP,MAAM,CAACO,SAAS;EACnC;AACF;AAACC,OAAA,CAAAV,UAAA,GAAAA,UAAA","ignoreList":[]}
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.HMSMessageRecipient = void 0;
|
|
7
7
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
8
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i :
|
|
8
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
9
9
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
10
10
|
class HMSMessageRecipient {
|
|
11
11
|
constructor(params) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["HMSMessageRecipient","constructor","params","_defineProperty","recipientType","recipientPeer","recipientRoles","exports"],"sources":["HMSMessageRecipient.ts"],"sourcesContent":["import type { HMSMessageRecipientType } from './HMSMessageRecipientType';\nimport type { HMSPeer } from './HMSPeer';\nimport type { HMSRole } from './HMSRole';\n\nexport class HMSMessageRecipient {\n public recipientType: HMSMessageRecipientType;\n public recipientPeer?: HMSPeer;\n public recipientRoles: HMSRole[];\n\n constructor(params: {\n recipientType: HMSMessageRecipientType;\n recipientPeer?: HMSPeer;\n recipientRoles?: HMSRole[];\n }) {\n this.recipientType = params.recipientType;\n this.recipientPeer = params.recipientPeer;\n this.recipientRoles = params.recipientRoles || [];\n }\n}\n"],"mappings":";;;;;;;;;AAIO,MAAMA,mBAAmB,CAAC;EAK/BC,WAAWA,CAACC,MAIX,EAAE;IAAAC,eAAA;IAAAA,eAAA;IAAAA,eAAA;IACD,IAAI,CAACC,aAAa,GAAGF,MAAM,CAACE,aAAa;IACzC,IAAI,CAACC,aAAa,GAAGH,MAAM,CAACG,aAAa;IACzC,IAAI,CAACC,cAAc,GAAGJ,MAAM,CAACI,cAAc,IAAI,EAAE;EACnD;AACF;AAACC,OAAA,CAAAP,mBAAA,GAAAA,mBAAA"}
|
|
1
|
+
{"version":3,"names":["HMSMessageRecipient","constructor","params","_defineProperty","recipientType","recipientPeer","recipientRoles","exports"],"sources":["HMSMessageRecipient.ts"],"sourcesContent":["import type { HMSMessageRecipientType } from './HMSMessageRecipientType';\nimport type { HMSPeer } from './HMSPeer';\nimport type { HMSRole } from './HMSRole';\n\nexport class HMSMessageRecipient {\n public recipientType: HMSMessageRecipientType;\n public recipientPeer?: HMSPeer;\n public recipientRoles: HMSRole[];\n\n constructor(params: {\n recipientType: HMSMessageRecipientType;\n recipientPeer?: HMSPeer;\n recipientRoles?: HMSRole[];\n }) {\n this.recipientType = params.recipientType;\n this.recipientPeer = params.recipientPeer;\n this.recipientRoles = params.recipientRoles || [];\n }\n}\n"],"mappings":";;;;;;;;;AAIO,MAAMA,mBAAmB,CAAC;EAK/BC,WAAWA,CAACC,MAIX,EAAE;IAAAC,eAAA;IAAAA,eAAA;IAAAA,eAAA;IACD,IAAI,CAACC,aAAa,GAAGF,MAAM,CAACE,aAAa;IACzC,IAAI,CAACC,aAAa,GAAGH,MAAM,CAACG,aAAa;IACzC,IAAI,CAACC,cAAc,GAAGJ,MAAM,CAACI,cAAc,IAAI,EAAE;EACnD;AACF;AAACC,OAAA,CAAAP,mBAAA,GAAAA,mBAAA","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["HMSMessageRecipientType","exports"],"sources":["HMSMessageRecipientType.ts"],"sourcesContent":["export enum HMSMessageRecipientType {\n BROADCAST = 'BROADCAST',\n PEER = 'PEER',\n ROLES = 'ROLES',\n}\n"],"mappings":";;;;;;IAAYA,uBAAuB,GAAAC,OAAA,CAAAD,uBAAA,0BAAvBA,uBAAuB;EAAvBA,uBAAuB;EAAvBA,uBAAuB;EAAvBA,uBAAuB;EAAA,OAAvBA,uBAAuB;AAAA"}
|
|
1
|
+
{"version":3,"names":["HMSMessageRecipientType","exports"],"sources":["HMSMessageRecipientType.ts"],"sourcesContent":["export enum HMSMessageRecipientType {\n BROADCAST = 'BROADCAST',\n PEER = 'PEER',\n ROLES = 'ROLES',\n}\n"],"mappings":";;;;;;IAAYA,uBAAuB,GAAAC,OAAA,CAAAD,uBAAA,0BAAvBA,uBAAuB;EAAvBA,uBAAuB;EAAvBA,uBAAuB;EAAvBA,uBAAuB;EAAA,OAAvBA,uBAAuB;AAAA","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","_HMSAudioNode","HMSManager","NativeModules","HMSMicNode","HMSAudioNode","constructor","setVolume","volume","setAudioShareVolume","id","sdkId","audioNode","name","exports"],"sources":["HMSMicNode.ts"],"sourcesContent":["import { NativeModules } from 'react-native';\nimport { HMSAudioNode } from './HMSAudioNode';\n\nconst {\n /**\n * @ignore\n */\n HMSManager,\n} = NativeModules;\n\nexport class HMSMicNode extends HMSAudioNode {\n constructor() {\n super('mic_node');\n }\n\n setVolume(volume: number) {\n return HMSManager.setAudioShareVolume({\n id: this.sdkId,\n audioNode: this.name,\n volume,\n });\n }\n}\n"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,aAAA,GAAAD,OAAA;AAEA,MAAM;EACJ;AACF;AACA;EACEE;AACF,CAAC,GAAGC,0BAAa;AAEV,MAAMC,UAAU,SAASC,0BAAY,CAAC;EAC3CC,WAAWA,CAAA,EAAG;IACZ,KAAK,CAAC,UAAU,CAAC;EACnB;EAEAC,SAASA,CAACC,MAAc,EAAE;IACxB,OAAON,UAAU,CAACO,mBAAmB,CAAC;MACpCC,EAAE,EAAE,IAAI,CAACC,KAAK;MACdC,SAAS,EAAE,IAAI,CAACC,IAAI;MACpBL;IACF,CAAC,CAAC;EACJ;AACF;AAACM,OAAA,CAAAV,UAAA,GAAAA,UAAA"}
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_HMSAudioNode","HMSManager","NativeModules","HMSMicNode","HMSAudioNode","constructor","setVolume","volume","setAudioShareVolume","id","sdkId","audioNode","name","exports"],"sources":["HMSMicNode.ts"],"sourcesContent":["import { NativeModules } from 'react-native';\nimport { HMSAudioNode } from './HMSAudioNode';\n\nconst {\n /**\n * @ignore\n */\n HMSManager,\n} = NativeModules;\n\nexport class HMSMicNode extends HMSAudioNode {\n constructor() {\n super('mic_node');\n }\n\n setVolume(volume: number) {\n return HMSManager.setAudioShareVolume({\n id: this.sdkId,\n audioNode: this.name,\n volume,\n });\n }\n}\n"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,aAAA,GAAAD,OAAA;AAEA,MAAM;EACJ;AACF;AACA;EACEE;AACF,CAAC,GAAGC,0BAAa;AAEV,MAAMC,UAAU,SAASC,0BAAY,CAAC;EAC3CC,WAAWA,CAAA,EAAG;IACZ,KAAK,CAAC,UAAU,CAAC;EACnB;EAEAC,SAASA,CAACC,MAAc,EAAE;IACxB,OAAON,UAAU,CAACO,mBAAmB,CAAC;MACpCC,EAAE,EAAE,IAAI,CAACC,KAAK;MACdC,SAAS,EAAE,IAAI,CAACC,IAAI;MACpBL;IACF,CAAC,CAAC;EACJ;AACF;AAACM,OAAA,CAAAV,UAAA,GAAAA,UAAA","ignoreList":[]}
|
|
@@ -7,7 +7,7 @@ exports.HMSNativeEventEmitter = void 0;
|
|
|
7
7
|
var _reactNative = require("react-native");
|
|
8
8
|
var _HMSLogger = require("./HMSLogger");
|
|
9
9
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
10
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i :
|
|
10
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
11
11
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
12
12
|
class HMSNativeEventEmitter {
|
|
13
13
|
constructor(nativeModule) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","_HMSLogger","_defineProperty","obj","key","value","_toPropertyKey","Object","defineProperty","enumerable","configurable","writable","t","i","_toPrimitive","
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_HMSLogger","_defineProperty","obj","key","value","_toPropertyKey","Object","defineProperty","enumerable","configurable","writable","t","i","_toPrimitive","r","e","Symbol","toPrimitive","call","TypeError","String","Number","HMSNativeEventEmitter","constructor","nativeModule","_nativeModule","_nativeEventEmitter","NativeEventEmitter","listenerCount","eventType","listeners","count","length","logger","verbose","addListener","id","listener","enableHMSEventType","subscription","remove","getOwnPropertyNames","includes","removeListener","disableHMSEventType","removeAllListeners","enableEvent","disableEvent","exports"],"sources":["HMSNativeEventEmitter.ts"],"sourcesContent":["import { NativeEventEmitter } from 'react-native';\nimport type { EventSubscription } from 'react-native';\nimport { logger } from './HMSLogger';\n\nexport type HMSEventSubscription = {\n remove(): void;\n};\n\nexport class HMSNativeEventEmitter {\n private _nativeEventEmitter: NativeEventEmitter;\n private _nativeModule: any;\n\n constructor(nativeModule: any) {\n this._nativeModule = nativeModule;\n this._nativeEventEmitter = new NativeEventEmitter(nativeModule);\n }\n\n listenerCount(eventType: string): number {\n // For RN version < v0.64, listenerCount method is not available\n // @ts-ignore - typescript is giving error because we are running it with RN types version >= 0.64\n if (typeof this._nativeEventEmitter.listeners === 'function') {\n // @ts-ignore - typescript is giving error because we are running it with RN types version >= 0.64\n const count = this._nativeEventEmitter.listeners(eventType).length;\n\n logger?.verbose('#Function HMSNativeEventEmitter.listenerCount', {\n eventType,\n count,\n });\n return count;\n }\n\n // For RN version >= v0.64\n const count = this._nativeEventEmitter.listenerCount(eventType);\n\n logger?.verbose('#Function HMSNativeEventEmitter.listenerCount', {\n eventType,\n count,\n });\n return count;\n }\n\n addListener(\n id: string,\n eventType: string,\n listener: (...args: any[]) => any\n ): HMSEventSubscription {\n logger?.verbose('#Function HMSNativeEventEmitter.addListener', {\n id,\n eventType,\n listener,\n });\n\n // enable `eventType` on `HMSSDK`, if no listeners were added before\n // if some listeners were added before, then `eventType` on `HMSSDK` should already be enabled\n if (this.listenerCount(eventType) <= 0) {\n this.enableHMSEventType(id, eventType);\n }\n\n let subscription: EventSubscription | null =\n this._nativeEventEmitter.addListener(eventType, listener);\n\n return {\n remove: () => {\n if (\n subscription &&\n Object.getOwnPropertyNames(subscription).includes('remove') &&\n typeof subscription.remove === 'function'\n ) {\n subscription.remove();\n subscription = null;\n } else {\n this._nativeEventEmitter.removeListener(eventType, listener);\n }\n\n // disable `eventType` on `HMSSDK`, if all listeners has been removed\n if (this.listenerCount(eventType) <= 0) {\n this.disableHMSEventType(id, eventType);\n }\n },\n };\n }\n\n removeAllListeners(id: string, eventType: string) {\n logger?.verbose('#Function HMSNativeEventEmitter.removeAllListeners', {\n id,\n eventType,\n });\n\n // disable `eventType` on `HMSSDK`\n this.disableHMSEventType(id, eventType);\n\n return this._nativeEventEmitter.removeAllListeners(eventType);\n }\n\n private enableHMSEventType(id: string, eventType: string) {\n logger?.verbose('#Function HMSNativeEventEmitter.enableHMSEventType', {\n id,\n eventType,\n });\n this._nativeModule.enableEvent({ id, eventType });\n }\n\n private disableHMSEventType(id: string, eventType: string) {\n logger?.verbose('#Function HMSNativeEventEmitter.disableHMSEventType', {\n id,\n eventType,\n });\n this._nativeModule.disableEvent({ id, eventType });\n }\n}\n"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAEA,IAAAC,UAAA,GAAAD,OAAA;AAAqC,SAAAE,gBAAAC,GAAA,EAAAC,GAAA,EAAAC,KAAA,IAAAD,GAAA,GAAAE,cAAA,CAAAF,GAAA,OAAAA,GAAA,IAAAD,GAAA,IAAAI,MAAA,CAAAC,cAAA,CAAAL,GAAA,EAAAC,GAAA,IAAAC,KAAA,EAAAA,KAAA,EAAAI,UAAA,QAAAC,YAAA,QAAAC,QAAA,oBAAAR,GAAA,CAAAC,GAAA,IAAAC,KAAA,WAAAF,GAAA;AAAA,SAAAG,eAAAM,CAAA,QAAAC,CAAA,GAAAC,YAAA,CAAAF,CAAA,uCAAAC,CAAA,GAAAA,CAAA,GAAAA,CAAA;AAAA,SAAAC,aAAAF,CAAA,EAAAG,CAAA,2BAAAH,CAAA,KAAAA,CAAA,SAAAA,CAAA,MAAAI,CAAA,GAAAJ,CAAA,CAAAK,MAAA,CAAAC,WAAA,kBA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,iBAAM,aAANA,iBAAM,eAANA,iBAAM,CAAEC,OAAO,CAAC,qDAAqD,EAAE;MACrEE,EAAE;MACFP;IACF,CAAC,CAAC;IACF,IAAI,CAACJ,aAAa,CAACsB,YAAY,CAAC;MAAEX,EAAE;MAAEP;IAAU,CAAC,CAAC;EACpD;AACF;AAACmB,OAAA,CAAA1B,qBAAA,GAAAA,qBAAA","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_HMSManagerModule","_interopRequireDefault","require","_HMSNativeEventEmitter","obj","__esModule","default","HMSNativeEventListener","HMSNativeEventEmitter","HMSManager","_default","exports"],"sources":["HMSNativeEventListener.ts"],"sourcesContent":["import HMSManager from '../modules/HMSManagerModule';\nimport { HMSNativeEventEmitter } from './HMSNativeEventEmitter';\n\nexport type { HMSEventSubscription as HMSNativeEventSubscription } from './HMSNativeEventEmitter';\n\nconst HMSNativeEventListener = new HMSNativeEventEmitter(HMSManager);\n\nexport default HMSNativeEventListener;\n"],"mappings":";;;;;;AAAA,IAAAA,iBAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,sBAAA,GAAAD,OAAA;AAAgE,SAAAD,uBAAAG,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAIhE,MAAMG,sBAAsB,GAAG,IAAIC,4CAAqB,CAACC,yBAAU,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAL,OAAA,GAEtDC,sBAAsB"}
|
|
1
|
+
{"version":3,"names":["_HMSManagerModule","_interopRequireDefault","require","_HMSNativeEventEmitter","obj","__esModule","default","HMSNativeEventListener","HMSNativeEventEmitter","HMSManager","_default","exports"],"sources":["HMSNativeEventListener.ts"],"sourcesContent":["import HMSManager from '../modules/HMSManagerModule';\nimport { HMSNativeEventEmitter } from './HMSNativeEventEmitter';\n\nexport type { HMSEventSubscription as HMSNativeEventSubscription } from './HMSNativeEventEmitter';\n\nconst HMSNativeEventListener = new HMSNativeEventEmitter(HMSManager);\n\nexport default HMSNativeEventListener;\n"],"mappings":";;;;;;AAAA,IAAAA,iBAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,sBAAA,GAAAD,OAAA;AAAgE,SAAAD,uBAAAG,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAIhE,MAAMG,sBAAsB,GAAG,IAAIC,4CAAqB,CAACC,yBAAU,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAL,OAAA,GAEtDC,sBAAsB","ignoreList":[]}
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.HMSNetworkQuality = void 0;
|
|
7
7
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
8
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i :
|
|
8
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
9
9
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
10
10
|
class HMSNetworkQuality {
|
|
11
11
|
constructor(params) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["HMSNetworkQuality","constructor","params","_defineProperty","downlinkQuality","exports"],"sources":["HMSNetworkQuality.ts"],"sourcesContent":["export class HMSNetworkQuality {\n downlinkQuality: number;\n\n constructor(params: { downlinkQuality: number }) {\n this.downlinkQuality = params.downlinkQuality;\n }\n}\n"],"mappings":";;;;;;;;;AAAO,MAAMA,iBAAiB,CAAC;EAG7BC,WAAWA,CAACC,MAAmC,EAAE;IAAAC,eAAA;IAC/C,IAAI,CAACC,eAAe,GAAGF,MAAM,CAACE,eAAe;EAC/C;AACF;AAACC,OAAA,CAAAL,iBAAA,GAAAA,iBAAA"}
|
|
1
|
+
{"version":3,"names":["HMSNetworkQuality","constructor","params","_defineProperty","downlinkQuality","exports"],"sources":["HMSNetworkQuality.ts"],"sourcesContent":["export class HMSNetworkQuality {\n downlinkQuality: number;\n\n constructor(params: { downlinkQuality: number }) {\n this.downlinkQuality = params.downlinkQuality;\n }\n}\n"],"mappings":";;;;;;;;;AAAO,MAAMA,iBAAiB,CAAC;EAG7BC,WAAWA,CAACC,MAAmC,EAAE;IAAAC,eAAA;IAC/C,IAAI,CAACC,eAAe,GAAGF,MAAM,CAACE,eAAe;EAC/C;AACF;AAACC,OAAA,CAAAL,iBAAA,GAAAA,iBAAA","ignoreList":[]}
|