@100mslive/react-native-hms 2.0.0-alpha.0 → 2.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -15
- package/android/build.gradle +95 -48
- package/android/src/main/java/com/reactnativehmssdk/HMSAudioshareActivity.kt +8 -10
- package/android/src/main/java/com/reactnativehmssdk/HMSDecoder.kt +177 -3
- package/android/src/main/java/com/reactnativehmssdk/HMSHLSPlayer.kt +149 -29
- package/android/src/main/java/com/reactnativehmssdk/HMSHLSPlayerManagerImpl.kt +185 -0
- package/android/src/main/java/com/reactnativehmssdk/HMSHelper.kt +80 -20
- package/android/src/main/java/com/reactnativehmssdk/{HMSManager.kt → HMSManagerImpl.kt} +517 -145
- package/android/src/main/java/com/reactnativehmssdk/HMSRNSDK.kt +503 -312
- package/android/src/main/java/com/reactnativehmssdk/HMSReactNativeEvent.kt +29 -0
- package/android/src/main/java/com/reactnativehmssdk/HMSSDKViewManagerImpl.kt +119 -0
- package/android/src/main/java/com/reactnativehmssdk/HMSView.kt +64 -12
- package/android/src/main/java/com/reactnativehmssdk/HmsScreenshareActivity.kt +9 -9
- package/android/src/main/java/com/reactnativehmssdk/HmssdkPackage.kt +44 -8
- package/android/src/main/java/com/reactnativehmssdk/Interactivity/HMSInteractivityDecoder.kt +435 -0
- package/android/src/main/java/com/reactnativehmssdk/Interactivity/HMSInteractivityHelper.kt +353 -0
- package/android/src/main/java/com/reactnativehmssdk/Interactivity/HMSRNInteractivityCenter.kt +245 -0
- package/android/src/main/java/com/reactnativehmssdk/PipActionReceiver.kt +13 -3
- package/android/src/newarch/java/com/reactnativehmssdk/HMSHLSPlayerManager.kt +128 -0
- package/android/src/newarch/java/com/reactnativehmssdk/HMSManager.kt +332 -0
- package/android/src/newarch/java/com/reactnativehmssdk/HMSSDKViewManager.kt +102 -0
- package/android/src/oldarch/java/com/reactnativehmssdk/HMSHLSPlayerManager.kt +61 -0
- package/android/src/oldarch/java/com/reactnativehmssdk/HMSManager.kt +351 -0
- package/android/src/oldarch/java/com/reactnativehmssdk/HMSSDKViewManager.kt +87 -0
- package/ios/HMSConstants.swift +4 -0
- package/ios/HMSDecoder.swift +154 -18
- package/ios/HMSHLSPlayerComponentView.mm +325 -0
- package/ios/HMSHLSPlayerManager.m +16 -0
- package/ios/HMSHLSPlayerManager.swift +236 -70
- package/ios/HMSHelper.swift +126 -14
- package/ios/HMSInteractivityDecoder.swift +314 -0
- package/ios/HMSInteractivityHelper.swift +169 -0
- package/ios/HMSManager.m +203 -10
- package/ios/HMSManager.mm +365 -0
- package/ios/HMSManager.swift +431 -87
- package/ios/HMSRNInteractivityCenter.swift +161 -0
- package/ios/HMSRNSDK.swift +961 -134
- package/ios/HMSView.m +9 -0
- package/ios/HMSView.swift +45 -16
- package/ios/HMSViewComponentView.mm +229 -0
- package/ios/PIPMode/HMSPipModel.swift +18 -0
- package/ios/PIPMode/HMSPipView.swift +36 -0
- package/ios/PIPMode/HMSSampleBufferSwiftUIView.swift +45 -0
- package/lib/commonjs/classes/HMSAudioCodec.js +1 -2
- package/lib/commonjs/classes/HMSAudioCodec.js.map +1 -1
- package/lib/commonjs/classes/HMSAudioDevice.js +10 -2
- package/lib/commonjs/classes/HMSAudioDevice.js.map +1 -1
- package/lib/commonjs/classes/HMSAudioFilePlayerNode.js.map +1 -1
- package/lib/commonjs/classes/HMSAudioMixerSource.js +3 -3
- package/lib/commonjs/classes/HMSAudioMixerSource.js.map +1 -1
- package/lib/commonjs/classes/HMSAudioMixingMode.js +12 -2
- package/lib/commonjs/classes/HMSAudioMixingMode.js.map +1 -1
- package/lib/commonjs/classes/HMSAudioMode.js +1 -2
- package/lib/commonjs/classes/HMSAudioMode.js.map +1 -1
- package/lib/commonjs/classes/HMSAudioNode.js +3 -3
- package/lib/commonjs/classes/HMSAudioNode.js.map +1 -1
- package/lib/commonjs/classes/HMSAudioSettings.js +3 -3
- package/lib/commonjs/classes/HMSAudioSettings.js.map +1 -1
- package/lib/commonjs/classes/HMSAudioTrack.js +9 -0
- package/lib/commonjs/classes/HMSAudioTrack.js.map +1 -1
- package/lib/commonjs/classes/HMSAudioTrackSettings.js +12 -5
- package/lib/commonjs/classes/HMSAudioTrackSettings.js.map +1 -1
- package/lib/commonjs/classes/HMSBrowserRecordingState.js +5 -3
- package/lib/commonjs/classes/HMSBrowserRecordingState.js.map +1 -1
- package/lib/commonjs/classes/HMSCameraControl.js +3 -4
- package/lib/commonjs/classes/HMSCameraControl.js.map +1 -1
- package/lib/commonjs/classes/HMSCameraFacing.js +10 -2
- package/lib/commonjs/classes/HMSCameraFacing.js.map +1 -1
- package/lib/commonjs/classes/HMSChangeTrackStateRequest.js +3 -3
- package/lib/commonjs/classes/HMSChangeTrackStateRequest.js.map +1 -1
- package/lib/commonjs/classes/HMSConfig.js +30 -3
- package/lib/commonjs/classes/HMSConfig.js.map +1 -1
- package/lib/commonjs/classes/HMSConstants.js +1 -2
- package/lib/commonjs/classes/HMSConstants.js.map +1 -1
- package/lib/commonjs/classes/HMSEncoder.js +57 -14
- package/lib/commonjs/classes/HMSEncoder.js.map +1 -1
- package/lib/commonjs/classes/HMSEventEmitter.js +1 -2
- package/lib/commonjs/classes/HMSEventEmitter.js.map +1 -1
- package/lib/commonjs/classes/HMSException.js +21 -3
- package/lib/commonjs/classes/HMSException.js.map +1 -1
- package/lib/commonjs/classes/HMSHLSConfig.js +3 -3
- package/lib/commonjs/classes/HMSHLSConfig.js.map +1 -1
- package/lib/commonjs/classes/HMSHLSMeetingURLVariant.js +3 -3
- package/lib/commonjs/classes/HMSHLSMeetingURLVariant.js.map +1 -1
- package/lib/commonjs/classes/HMSHLSPlaylistType.js +12 -0
- package/lib/commonjs/classes/HMSHLSPlaylistType.js.map +1 -0
- package/lib/commonjs/classes/HMSHLSRecordingConfig.js +3 -3
- package/lib/commonjs/classes/HMSHLSRecordingConfig.js.map +1 -1
- package/lib/commonjs/classes/HMSHLSRecordingState.js +7 -7
- package/lib/commonjs/classes/HMSHLSRecordingState.js.map +1 -1
- package/lib/commonjs/classes/HMSHLSStreamingState.js +9 -3
- package/lib/commonjs/classes/HMSHLSStreamingState.js.map +1 -1
- package/lib/commonjs/classes/HMSHLSTimedMetadata.js +2 -0
- package/lib/commonjs/classes/HMSHLSTimedMetadata.js.map +1 -0
- package/lib/commonjs/classes/HMSHLSVariant.js +5 -3
- package/lib/commonjs/classes/HMSHLSVariant.js.map +1 -1
- package/lib/commonjs/classes/HMSHelper.js.map +1 -1
- package/lib/commonjs/classes/HMSIOSAudioMode.js +16 -2
- package/lib/commonjs/classes/HMSIOSAudioMode.js.map +1 -1
- package/lib/commonjs/classes/HMSInteractivityCenter.js +174 -0
- package/lib/commonjs/classes/HMSInteractivityCenter.js.map +1 -0
- package/lib/commonjs/classes/HMSInteractivityEncoder.js +83 -0
- package/lib/commonjs/classes/HMSInteractivityEncoder.js.map +1 -0
- package/lib/commonjs/classes/HMSLayer.js +1 -2
- package/lib/commonjs/classes/HMSLayer.js.map +1 -1
- package/lib/commonjs/classes/HMSLocalAudioStats.js +3 -3
- package/lib/commonjs/classes/HMSLocalAudioStats.js.map +1 -1
- package/lib/commonjs/classes/HMSLocalAudioTrack.js +3 -3
- package/lib/commonjs/classes/HMSLocalAudioTrack.js.map +1 -1
- package/lib/commonjs/classes/HMSLocalPeer.js +3 -3
- package/lib/commonjs/classes/HMSLocalPeer.js.map +1 -1
- package/lib/commonjs/classes/HMSLocalVideoStats.js +3 -3
- package/lib/commonjs/classes/HMSLocalVideoStats.js.map +1 -1
- package/lib/commonjs/classes/HMSLocalVideoTrack.js +3 -3
- package/lib/commonjs/classes/HMSLocalVideoTrack.js.map +1 -1
- package/lib/commonjs/classes/HMSLogAlarmManager.js +13 -2
- package/lib/commonjs/classes/HMSLogAlarmManager.js.map +1 -1
- package/lib/commonjs/classes/HMSLogLevel.js +13 -2
- package/lib/commonjs/classes/HMSLogLevel.js.map +1 -1
- package/lib/commonjs/classes/HMSLogSettings.js +17 -3
- package/lib/commonjs/classes/HMSLogSettings.js.map +1 -1
- package/lib/commonjs/classes/HMSLogger.js +4 -5
- package/lib/commonjs/classes/HMSLogger.js.map +1 -1
- package/lib/commonjs/classes/HMSMessage.js +3 -3
- package/lib/commonjs/classes/HMSMessage.js.map +1 -1
- package/lib/commonjs/classes/HMSMessageRecipient.js +3 -3
- package/lib/commonjs/classes/HMSMessageRecipient.js.map +1 -1
- package/lib/commonjs/classes/HMSMessageRecipientType.js +1 -2
- package/lib/commonjs/classes/HMSMessageRecipientType.js.map +1 -1
- package/lib/commonjs/classes/HMSMicNode.js.map +1 -1
- package/lib/commonjs/classes/HMSNativeEventEmitter.js +4 -6
- package/lib/commonjs/classes/HMSNativeEventEmitter.js.map +1 -1
- package/lib/commonjs/classes/HMSNativeEventListener.js +3 -4
- package/lib/commonjs/classes/HMSNativeEventListener.js.map +1 -1
- package/lib/commonjs/classes/HMSNetworkQuality.js +14 -3
- package/lib/commonjs/classes/HMSNetworkQuality.js.map +1 -1
- package/lib/commonjs/classes/HMSNoiseCancellationPlugin.js +158 -0
- package/lib/commonjs/classes/HMSNoiseCancellationPlugin.js.map +1 -0
- package/lib/commonjs/classes/HMSPIPConfig.js +6 -0
- package/lib/commonjs/classes/HMSPIPConfig.js.map +1 -0
- package/lib/commonjs/classes/HMSPIPListenerActions.js +10 -2
- package/lib/commonjs/classes/HMSPIPListenerActions.js.map +1 -1
- package/lib/commonjs/classes/HMSPeer.js +186 -5
- package/lib/commonjs/classes/HMSPeer.js.map +1 -1
- package/lib/commonjs/classes/HMSPeerListIterator.js +25 -7
- package/lib/commonjs/classes/HMSPeerListIterator.js.map +1 -1
- package/lib/commonjs/classes/HMSPeerListIteratorOptions.js.map +1 -1
- package/lib/commonjs/classes/HMSPeerType.js +24 -0
- package/lib/commonjs/classes/HMSPeerType.js.map +1 -0
- package/lib/commonjs/classes/HMSPeerUpdate.js +2 -4
- package/lib/commonjs/classes/HMSPeerUpdate.js.map +1 -1
- package/lib/commonjs/classes/HMSPeersCache.js +6 -7
- package/lib/commonjs/classes/HMSPeersCache.js.map +1 -1
- package/lib/commonjs/classes/HMSPermissions.js +11 -3
- package/lib/commonjs/classes/HMSPermissions.js.map +1 -1
- package/lib/commonjs/classes/HMSPollsListenerActions.js +11 -0
- package/lib/commonjs/classes/HMSPollsListenerActions.js.map +1 -0
- package/lib/commonjs/classes/HMSPublishSettings.js +3 -3
- package/lib/commonjs/classes/HMSPublishSettings.js.map +1 -1
- package/lib/commonjs/classes/HMSQualityLimitationReason.js +1 -2
- package/lib/commonjs/classes/HMSQualityLimitationReason.js.map +1 -1
- package/lib/commonjs/classes/HMSQualityLimitationReasons.js +3 -3
- package/lib/commonjs/classes/HMSQualityLimitationReasons.js.map +1 -1
- package/lib/commonjs/classes/HMSRTCStats.js +3 -3
- package/lib/commonjs/classes/HMSRTCStats.js.map +1 -1
- package/lib/commonjs/classes/HMSRTCStatsReport.js +3 -3
- package/lib/commonjs/classes/HMSRTCStatsReport.js.map +1 -1
- package/lib/commonjs/classes/HMSRTMPConfig.js +17 -3
- package/lib/commonjs/classes/HMSRTMPConfig.js.map +1 -1
- package/lib/commonjs/classes/HMSRecordingState.js +17 -0
- package/lib/commonjs/classes/HMSRecordingState.js.map +1 -0
- package/lib/commonjs/classes/HMSRemoteAudioStats.js +3 -3
- package/lib/commonjs/classes/HMSRemoteAudioStats.js.map +1 -1
- package/lib/commonjs/classes/HMSRemoteAudioTrack.js +3 -3
- package/lib/commonjs/classes/HMSRemoteAudioTrack.js.map +1 -1
- package/lib/commonjs/classes/HMSRemotePeer.js +3 -3
- package/lib/commonjs/classes/HMSRemotePeer.js.map +1 -1
- package/lib/commonjs/classes/HMSRemoteVideoStats.js +3 -3
- package/lib/commonjs/classes/HMSRemoteVideoStats.js.map +1 -1
- package/lib/commonjs/classes/HMSRemoteVideoTrack.js +3 -3
- package/lib/commonjs/classes/HMSRemoteVideoTrack.js.map +1 -1
- package/lib/commonjs/classes/HMSRole.js +20 -3
- package/lib/commonjs/classes/HMSRole.js.map +1 -1
- package/lib/commonjs/classes/HMSRoleChangeRequest.js +3 -3
- package/lib/commonjs/classes/HMSRoleChangeRequest.js.map +1 -1
- package/lib/commonjs/classes/HMSRoom.js +17 -4
- package/lib/commonjs/classes/HMSRoom.js.map +1 -1
- package/lib/commonjs/classes/HMSRoomCache.js +13 -7
- package/lib/commonjs/classes/HMSRoomCache.js.map +1 -1
- package/lib/commonjs/classes/HMSRoomUpdate.js +2 -2
- package/lib/commonjs/classes/HMSRoomUpdate.js.map +1 -1
- package/lib/commonjs/classes/HMSRtmpStreamingState.js +5 -5
- package/lib/commonjs/classes/HMSRtmpStreamingState.js.map +1 -1
- package/lib/commonjs/classes/HMSRtmpVideoResolution.js +16 -3
- package/lib/commonjs/classes/HMSRtmpVideoResolution.js.map +1 -1
- package/lib/commonjs/classes/HMSSDK.js +1313 -327
- package/lib/commonjs/classes/HMSSDK.js.map +1 -1
- package/lib/commonjs/classes/HMSScreenBroadcastAudioReceiverNode.js.map +1 -1
- package/lib/commonjs/classes/HMSServerRecordingState.js +5 -3
- package/lib/commonjs/classes/HMSServerRecordingState.js.map +1 -1
- package/lib/commonjs/classes/HMSSessionStore.js +20 -23
- package/lib/commonjs/classes/HMSSessionStore.js.map +1 -1
- package/lib/commonjs/classes/HMSSimulcastLayerDefinition.js +3 -3
- package/lib/commonjs/classes/HMSSimulcastLayerDefinition.js.map +1 -1
- package/lib/commonjs/classes/HMSSimulcastLayerSettings.js +3 -3
- package/lib/commonjs/classes/HMSSimulcastLayerSettings.js.map +1 -1
- package/lib/commonjs/classes/HMSSimulcastLayerSettingsPolicy.js +3 -3
- package/lib/commonjs/classes/HMSSimulcastLayerSettingsPolicy.js.map +1 -1
- package/lib/commonjs/classes/HMSSimulcastSettings.js +3 -3
- package/lib/commonjs/classes/HMSSimulcastSettings.js.map +1 -1
- package/lib/commonjs/classes/HMSSimulcastSettingsPolicy.js +3 -3
- package/lib/commonjs/classes/HMSSimulcastSettingsPolicy.js.map +1 -1
- package/lib/commonjs/classes/HMSSpeaker.js +3 -3
- package/lib/commonjs/classes/HMSSpeaker.js.map +1 -1
- package/lib/commonjs/classes/HMSStreamingState.js +15 -0
- package/lib/commonjs/classes/HMSStreamingState.js.map +1 -0
- package/lib/commonjs/classes/HMSSubscribeDegradationPolicy.js +3 -3
- package/lib/commonjs/classes/HMSSubscribeDegradationPolicy.js.map +1 -1
- package/lib/commonjs/classes/HMSSubscribeSettings.js +3 -3
- package/lib/commonjs/classes/HMSSubscribeSettings.js.map +1 -1
- package/lib/commonjs/classes/HMSTrack.js +16 -3
- package/lib/commonjs/classes/HMSTrack.js.map +1 -1
- package/lib/commonjs/classes/HMSTrackSettings.js +13 -3
- package/lib/commonjs/classes/HMSTrackSettings.js.map +1 -1
- package/lib/commonjs/classes/HMSTrackSettingsInitState.js +10 -2
- package/lib/commonjs/classes/HMSTrackSettingsInitState.js.map +1 -1
- package/lib/commonjs/classes/HMSTrackSource.js +11 -2
- package/lib/commonjs/classes/HMSTrackSource.js.map +1 -1
- package/lib/commonjs/classes/HMSTrackType.js +8 -2
- package/lib/commonjs/classes/HMSTrackType.js.map +1 -1
- package/lib/commonjs/classes/HMSTrackUpdate.js +1 -2
- package/lib/commonjs/classes/HMSTrackUpdate.js.map +1 -1
- package/lib/commonjs/classes/HMSUpdateListenerActions.js +44 -5
- package/lib/commonjs/classes/HMSUpdateListenerActions.js.map +1 -1
- package/lib/commonjs/classes/HMSVideoCodec.js +1 -2
- package/lib/commonjs/classes/HMSVideoCodec.js.map +1 -1
- package/lib/commonjs/classes/HMSVideoResolution.js +3 -3
- package/lib/commonjs/classes/HMSVideoResolution.js.map +1 -1
- package/lib/commonjs/classes/HMSVideoSettings.js +3 -3
- package/lib/commonjs/classes/HMSVideoSettings.js.map +1 -1
- package/lib/commonjs/classes/HMSVideoTrack.js +20 -3
- package/lib/commonjs/classes/HMSVideoTrack.js.map +1 -1
- package/lib/commonjs/classes/HMSVideoTrackSettings.js +18 -7
- package/lib/commonjs/classes/HMSVideoTrackSettings.js.map +1 -1
- package/lib/commonjs/classes/HMSVideoViewMode.js +1 -2
- package/lib/commonjs/classes/HMSVideoViewMode.js.map +1 -1
- package/lib/commonjs/classes/HmsView.js +77 -28
- package/lib/commonjs/classes/HmsView.js.map +1 -1
- package/lib/commonjs/classes/polls/DecodedPollLeaderboardResponse.js +6 -0
- package/lib/commonjs/classes/polls/DecodedPollLeaderboardResponse.js.map +1 -0
- package/lib/commonjs/classes/polls/HMSPoll.js +6 -0
- package/lib/commonjs/classes/polls/HMSPoll.js.map +1 -0
- package/lib/commonjs/classes/polls/HMSPollCategory.js +12 -0
- package/lib/commonjs/classes/polls/HMSPollCategory.js.map +1 -0
- package/lib/commonjs/classes/polls/HMSPollCreateParams.js +6 -0
- package/lib/commonjs/classes/polls/HMSPollCreateParams.js.map +1 -0
- package/lib/commonjs/classes/polls/HMSPollLeaderboardEntry.js +6 -0
- package/lib/commonjs/classes/polls/HMSPollLeaderboardEntry.js.map +1 -0
- package/lib/commonjs/classes/polls/HMSPollLeaderboardSummary.js +2 -0
- package/lib/commonjs/classes/polls/HMSPollLeaderboardSummary.js.map +1 -0
- package/lib/commonjs/classes/polls/HMSPollQuestion.js +6 -0
- package/lib/commonjs/classes/polls/HMSPollQuestion.js.map +1 -0
- package/lib/commonjs/classes/polls/HMSPollQuestionAnswer.js +2 -0
- package/lib/commonjs/classes/polls/HMSPollQuestionAnswer.js.map +1 -0
- package/lib/commonjs/classes/polls/HMSPollQuestionCreateParams.js +6 -0
- package/lib/commonjs/classes/polls/HMSPollQuestionCreateParams.js.map +1 -0
- package/lib/commonjs/classes/polls/HMSPollQuestionOption.js +2 -0
- package/lib/commonjs/classes/polls/HMSPollQuestionOption.js.map +1 -0
- package/lib/commonjs/classes/polls/HMSPollQuestionOptionCreateParams.js +6 -0
- package/lib/commonjs/classes/polls/HMSPollQuestionOptionCreateParams.js.map +1 -0
- package/lib/commonjs/classes/polls/HMSPollQuestionQuizOptionCreateParams.js +6 -0
- package/lib/commonjs/classes/polls/HMSPollQuestionQuizOptionCreateParams.js.map +1 -0
- package/lib/commonjs/classes/polls/HMSPollQuestionResponse.js +6 -0
- package/lib/commonjs/classes/polls/HMSPollQuestionResponse.js.map +1 -0
- package/lib/commonjs/classes/polls/HMSPollQuestionResponseCreateParams.js +6 -0
- package/lib/commonjs/classes/polls/HMSPollQuestionResponseCreateParams.js.map +1 -0
- package/lib/commonjs/classes/polls/HMSPollQuestionResponseResult.js +2 -0
- package/lib/commonjs/classes/polls/HMSPollQuestionResponseResult.js.map +1 -0
- package/lib/commonjs/classes/polls/HMSPollQuestionResult.js +2 -0
- package/lib/commonjs/classes/polls/HMSPollQuestionResult.js.map +1 -0
- package/lib/commonjs/classes/polls/HMSPollQuestionType.js +14 -0
- package/lib/commonjs/classes/polls/HMSPollQuestionType.js.map +1 -0
- package/lib/commonjs/classes/polls/HMSPollResponsePeerInfo.js +2 -0
- package/lib/commonjs/classes/polls/HMSPollResponsePeerInfo.js.map +1 -0
- package/lib/commonjs/classes/polls/HMSPollResult.js +6 -0
- package/lib/commonjs/classes/polls/HMSPollResult.js.map +1 -0
- package/lib/commonjs/classes/polls/HMSPollState.js +13 -0
- package/lib/commonjs/classes/polls/HMSPollState.js.map +1 -0
- package/lib/commonjs/classes/polls/HMSPollType.js +12 -0
- package/lib/commonjs/classes/polls/HMSPollType.js.map +1 -0
- package/lib/commonjs/classes/polls/HMSPollUpdateType.js +13 -0
- package/lib/commonjs/classes/polls/HMSPollUpdateType.js.map +1 -0
- package/lib/commonjs/classes/polls/HMSPollUserTrackingMode.js +13 -0
- package/lib/commonjs/classes/polls/HMSPollUserTrackingMode.js.map +1 -0
- package/lib/commonjs/classes/polls/PollLeaderboardResponse.js +6 -0
- package/lib/commonjs/classes/polls/PollLeaderboardResponse.js.map +1 -0
- package/lib/commonjs/classes/transcriptions/HMSTranscript.js +6 -0
- package/lib/commonjs/classes/transcriptions/HMSTranscript.js.map +1 -0
- package/lib/commonjs/classes/transcriptions/OnTranscriptionError.js +2 -0
- package/lib/commonjs/classes/transcriptions/OnTranscriptionError.js.map +1 -0
- package/lib/commonjs/classes/transcriptions/TranscriptionState.js +14 -0
- package/lib/commonjs/classes/transcriptions/TranscriptionState.js.map +1 -0
- package/lib/commonjs/classes/transcriptions/Transcriptions.js +6 -0
- package/lib/commonjs/classes/transcriptions/Transcriptions.js.map +1 -0
- package/lib/commonjs/classes/transcriptions/TranscriptionsMode.js +12 -0
- package/lib/commonjs/classes/transcriptions/TranscriptionsMode.js.map +1 -0
- package/lib/commonjs/classes/transcriptions/index.js +61 -0
- package/lib/commonjs/classes/transcriptions/index.js.map +1 -0
- package/lib/commonjs/classes/whiteboard/HMSWhiteboard.js +6 -0
- package/lib/commonjs/classes/whiteboard/HMSWhiteboard.js.map +1 -0
- package/lib/commonjs/classes/whiteboard/HMSWhiteboardListenerActions.js +11 -0
- package/lib/commonjs/classes/whiteboard/HMSWhiteboardListenerActions.js.map +1 -0
- package/lib/commonjs/classes/whiteboard/HMSWhiteboardState.js +12 -0
- package/lib/commonjs/classes/whiteboard/HMSWhiteboardState.js.map +1 -0
- package/lib/commonjs/classes/whiteboard/HMSWhiteboardUpdateType.js +12 -0
- package/lib/commonjs/classes/whiteboard/HMSWhiteboardUpdateType.js.map +1 -0
- package/lib/commonjs/classes/whiteboard/index.js +39 -0
- package/lib/commonjs/classes/whiteboard/index.js.map +1 -0
- package/lib/commonjs/classes/whiteboard/registerCallbacks.js +26 -0
- package/lib/commonjs/classes/whiteboard/registerCallbacks.js.map +1 -0
- package/lib/commonjs/components/HMSHLSPlayer/HMSHLSPlayer.js +155 -49
- package/lib/commonjs/components/HMSHLSPlayer/HMSHLSPlayer.js.map +1 -1
- package/lib/commonjs/components/HMSHLSPlayer/RCTHMSHLSPlayer.js +5 -6
- package/lib/commonjs/components/HMSHLSPlayer/RCTHMSHLSPlayer.js.map +1 -1
- package/lib/commonjs/components/HMSHLSPlayer/hooks.js +26 -16
- package/lib/commonjs/components/HMSHLSPlayer/hooks.js.map +1 -1
- package/lib/commonjs/components/HMSHLSPlayer/index.js +22 -1
- package/lib/commonjs/components/HMSHLSPlayer/index.js.map +1 -1
- package/lib/commonjs/hooks/hmsviews.js +17 -0
- package/lib/commonjs/hooks/hmsviews.js.map +1 -0
- package/lib/commonjs/hooks/polls.js +17 -0
- package/lib/commonjs/hooks/polls.js.map +1 -0
- package/lib/commonjs/hooks/useHMSPeerUpdates.js +3 -5
- package/lib/commonjs/hooks/useHMSPeerUpdates.js.map +1 -1
- package/lib/commonjs/index.js +233 -6
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/modules/HMSManagerModule.js +10 -0
- package/lib/commonjs/modules/HMSManagerModule.js.map +1 -0
- package/lib/commonjs/specs/HMSHLSPlayerNativeComponent.js +75 -0
- package/lib/commonjs/specs/HMSHLSPlayerNativeComponent.js.map +1 -0
- package/lib/commonjs/specs/HMSViewNativeComponent.js +55 -0
- package/lib/commonjs/specs/HMSViewNativeComponent.js.map +1 -0
- package/lib/commonjs/specs/NativeHMSManager.js +38 -0
- package/lib/commonjs/specs/NativeHMSManager.js.map +1 -0
- package/lib/commonjs/stores/hls-player-playback-slice.js +10 -0
- package/lib/commonjs/stores/hls-player-playback-slice.js.map +1 -1
- package/lib/commonjs/stores/hls-player-stats-store.js +28 -17
- package/lib/commonjs/stores/hls-player-stats-store.js.map +1 -1
- package/lib/commonjs/stores/hms-interactivity-store.js +21 -0
- package/lib/commonjs/stores/hms-interactivity-store.js.map +1 -0
- package/lib/commonjs/stores/hms-polls-slice.js +19 -0
- package/lib/commonjs/stores/hms-polls-slice.js.map +1 -0
- package/lib/commonjs/stores/hms-store.js +5 -6
- package/lib/commonjs/stores/hms-store.js.map +1 -1
- package/lib/commonjs/stores/hmsviews-slice.js +19 -0
- package/lib/commonjs/stores/hmsviews-slice.js.map +1 -0
- package/lib/commonjs/stores/types.js.map +1 -1
- package/lib/commonjs/types.js +4 -7
- package/lib/commonjs/types.js.map +1 -1
- package/lib/commonjs/utils/emitter/EventEmitter.js +23 -7
- package/lib/commonjs/utils/emitter/EventEmitter.js.map +1 -1
- package/lib/commonjs/utils/emitter/_EmitterSubscription.js +3 -3
- package/lib/commonjs/utils/emitter/_EmitterSubscription.js.map +1 -1
- package/lib/commonjs/utils/emitter/_EventSubscription.js +3 -3
- package/lib/commonjs/utils/emitter/_EventSubscription.js.map +1 -1
- package/lib/commonjs/utils/emitter/_EventSubscriptionVendor.js +3 -4
- 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 +46 -0
- package/lib/commonjs/utils/keyboard.js.map +1 -0
- package/lib/commonjs/utils/notification.js +13 -0
- package/lib/commonjs/utils/notification.js.map +1 -0
- package/lib/commonjs/utils/windowController.js +30 -0
- package/lib/commonjs/utils/windowController.js.map +1 -0
- package/lib/module/classes/HMSAudioCodec.js.map +1 -1
- package/lib/module/classes/HMSAudioDevice.js +9 -0
- package/lib/module/classes/HMSAudioDevice.js.map +1 -1
- package/lib/module/classes/HMSAudioFilePlayerNode.js.map +1 -1
- package/lib/module/classes/HMSAudioMixerSource.js +3 -3
- package/lib/module/classes/HMSAudioMixerSource.js.map +1 -1
- package/lib/module/classes/HMSAudioMixingMode.js +11 -0
- package/lib/module/classes/HMSAudioMixingMode.js.map +1 -1
- package/lib/module/classes/HMSAudioMode.js.map +1 -1
- package/lib/module/classes/HMSAudioNode.js +3 -3
- package/lib/module/classes/HMSAudioNode.js.map +1 -1
- package/lib/module/classes/HMSAudioSettings.js +3 -3
- package/lib/module/classes/HMSAudioSettings.js.map +1 -1
- package/lib/module/classes/HMSAudioTrack.js +9 -0
- package/lib/module/classes/HMSAudioTrack.js.map +1 -1
- package/lib/module/classes/HMSAudioTrackSettings.js +12 -5
- package/lib/module/classes/HMSAudioTrackSettings.js.map +1 -1
- package/lib/module/classes/HMSBrowserRecordingState.js +5 -3
- package/lib/module/classes/HMSBrowserRecordingState.js.map +1 -1
- package/lib/module/classes/HMSCameraControl.js +2 -3
- package/lib/module/classes/HMSCameraControl.js.map +1 -1
- package/lib/module/classes/HMSCameraFacing.js +9 -0
- package/lib/module/classes/HMSCameraFacing.js.map +1 -1
- package/lib/module/classes/HMSChangeTrackStateRequest.js +3 -3
- package/lib/module/classes/HMSChangeTrackStateRequest.js.map +1 -1
- package/lib/module/classes/HMSConfig.js +30 -3
- package/lib/module/classes/HMSConfig.js.map +1 -1
- package/lib/module/classes/HMSConstants.js.map +1 -1
- package/lib/module/classes/HMSEncoder.js +56 -13
- package/lib/module/classes/HMSEncoder.js.map +1 -1
- package/lib/module/classes/HMSEventEmitter.js.map +1 -1
- package/lib/module/classes/HMSException.js +21 -3
- package/lib/module/classes/HMSException.js.map +1 -1
- package/lib/module/classes/HMSHLSConfig.js +3 -3
- package/lib/module/classes/HMSHLSConfig.js.map +1 -1
- package/lib/module/classes/HMSHLSMeetingURLVariant.js +3 -3
- package/lib/module/classes/HMSHLSMeetingURLVariant.js.map +1 -1
- package/lib/module/classes/HMSHLSPlaylistType.js +6 -0
- package/lib/module/classes/HMSHLSPlaylistType.js.map +1 -0
- package/lib/module/classes/HMSHLSRecordingConfig.js +3 -3
- package/lib/module/classes/HMSHLSRecordingConfig.js.map +1 -1
- package/lib/module/classes/HMSHLSRecordingState.js +7 -7
- package/lib/module/classes/HMSHLSRecordingState.js.map +1 -1
- package/lib/module/classes/HMSHLSStreamingState.js +9 -3
- package/lib/module/classes/HMSHLSStreamingState.js.map +1 -1
- package/lib/module/classes/HMSHLSTimedMetadata.js +2 -0
- package/lib/module/classes/HMSHLSTimedMetadata.js.map +1 -0
- package/lib/module/classes/HMSHLSVariant.js +5 -3
- package/lib/module/classes/HMSHLSVariant.js.map +1 -1
- package/lib/module/classes/HMSHelper.js.map +1 -1
- package/lib/module/classes/HMSIOSAudioMode.js +15 -0
- package/lib/module/classes/HMSIOSAudioMode.js.map +1 -1
- package/lib/module/classes/HMSInteractivityCenter.js +166 -0
- package/lib/module/classes/HMSInteractivityCenter.js.map +1 -0
- package/lib/module/classes/HMSInteractivityEncoder.js +76 -0
- package/lib/module/classes/HMSInteractivityEncoder.js.map +1 -0
- package/lib/module/classes/HMSLayer.js.map +1 -1
- package/lib/module/classes/HMSLocalAudioStats.js +3 -3
- package/lib/module/classes/HMSLocalAudioStats.js.map +1 -1
- package/lib/module/classes/HMSLocalAudioTrack.js +3 -3
- package/lib/module/classes/HMSLocalAudioTrack.js.map +1 -1
- package/lib/module/classes/HMSLocalPeer.js +3 -3
- package/lib/module/classes/HMSLocalPeer.js.map +1 -1
- package/lib/module/classes/HMSLocalVideoStats.js +3 -3
- package/lib/module/classes/HMSLocalVideoStats.js.map +1 -1
- package/lib/module/classes/HMSLocalVideoTrack.js +3 -3
- package/lib/module/classes/HMSLocalVideoTrack.js.map +1 -1
- package/lib/module/classes/HMSLogAlarmManager.js +12 -0
- package/lib/module/classes/HMSLogAlarmManager.js.map +1 -1
- package/lib/module/classes/HMSLogLevel.js +12 -0
- package/lib/module/classes/HMSLogLevel.js.map +1 -1
- package/lib/module/classes/HMSLogSettings.js +17 -3
- package/lib/module/classes/HMSLogSettings.js.map +1 -1
- package/lib/module/classes/HMSLogger.js +3 -3
- package/lib/module/classes/HMSLogger.js.map +1 -1
- package/lib/module/classes/HMSMessage.js +3 -3
- package/lib/module/classes/HMSMessage.js.map +1 -1
- package/lib/module/classes/HMSMessageRecipient.js +3 -3
- 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 +4 -6
- package/lib/module/classes/HMSNativeEventEmitter.js.map +1 -1
- package/lib/module/classes/HMSNativeEventListener.js +1 -1
- package/lib/module/classes/HMSNativeEventListener.js.map +1 -1
- package/lib/module/classes/HMSNetworkQuality.js +14 -3
- package/lib/module/classes/HMSNetworkQuality.js.map +1 -1
- package/lib/module/classes/HMSNoiseCancellationPlugin.js +152 -0
- package/lib/module/classes/HMSNoiseCancellationPlugin.js.map +1 -0
- package/lib/module/classes/HMSPIPConfig.js +2 -0
- package/lib/module/classes/HMSPIPConfig.js.map +1 -0
- package/lib/module/classes/HMSPIPListenerActions.js +9 -0
- package/lib/module/classes/HMSPIPListenerActions.js.map +1 -1
- package/lib/module/classes/HMSPeer.js +187 -5
- package/lib/module/classes/HMSPeer.js.map +1 -1
- package/lib/module/classes/HMSPeerListIterator.js +24 -6
- package/lib/module/classes/HMSPeerListIterator.js.map +1 -1
- package/lib/module/classes/HMSPeerListIteratorOptions.js.map +1 -1
- package/lib/module/classes/HMSPeerType.js +18 -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 +4 -4
- package/lib/module/classes/HMSPeersCache.js.map +1 -1
- package/lib/module/classes/HMSPermissions.js +11 -3
- package/lib/module/classes/HMSPermissions.js.map +1 -1
- package/lib/module/classes/HMSPollsListenerActions.js +5 -0
- package/lib/module/classes/HMSPollsListenerActions.js.map +1 -0
- package/lib/module/classes/HMSPublishSettings.js +3 -3
- package/lib/module/classes/HMSPublishSettings.js.map +1 -1
- package/lib/module/classes/HMSQualityLimitationReason.js.map +1 -1
- package/lib/module/classes/HMSQualityLimitationReasons.js +3 -3
- package/lib/module/classes/HMSQualityLimitationReasons.js.map +1 -1
- package/lib/module/classes/HMSRTCStats.js +3 -3
- package/lib/module/classes/HMSRTCStats.js.map +1 -1
- package/lib/module/classes/HMSRTCStatsReport.js +3 -3
- package/lib/module/classes/HMSRTCStatsReport.js.map +1 -1
- package/lib/module/classes/HMSRTMPConfig.js +17 -3
- package/lib/module/classes/HMSRTMPConfig.js.map +1 -1
- package/lib/module/classes/HMSRecordingState.js +11 -0
- package/lib/module/classes/HMSRecordingState.js.map +1 -0
- package/lib/module/classes/HMSRemoteAudioStats.js +3 -3
- package/lib/module/classes/HMSRemoteAudioStats.js.map +1 -1
- package/lib/module/classes/HMSRemoteAudioTrack.js +3 -3
- package/lib/module/classes/HMSRemoteAudioTrack.js.map +1 -1
- package/lib/module/classes/HMSRemotePeer.js +3 -3
- package/lib/module/classes/HMSRemotePeer.js.map +1 -1
- package/lib/module/classes/HMSRemoteVideoStats.js +3 -3
- package/lib/module/classes/HMSRemoteVideoStats.js.map +1 -1
- package/lib/module/classes/HMSRemoteVideoTrack.js +3 -3
- package/lib/module/classes/HMSRemoteVideoTrack.js.map +1 -1
- package/lib/module/classes/HMSRole.js +20 -3
- package/lib/module/classes/HMSRole.js.map +1 -1
- package/lib/module/classes/HMSRoleChangeRequest.js +3 -3
- package/lib/module/classes/HMSRoleChangeRequest.js.map +1 -1
- package/lib/module/classes/HMSRoom.js +17 -4
- package/lib/module/classes/HMSRoom.js.map +1 -1
- package/lib/module/classes/HMSRoomCache.js +11 -4
- package/lib/module/classes/HMSRoomCache.js.map +1 -1
- package/lib/module/classes/HMSRoomUpdate.js +1 -0
- package/lib/module/classes/HMSRoomUpdate.js.map +1 -1
- package/lib/module/classes/HMSRtmpStreamingState.js +5 -5
- package/lib/module/classes/HMSRtmpStreamingState.js.map +1 -1
- package/lib/module/classes/HMSRtmpVideoResolution.js +16 -3
- package/lib/module/classes/HMSRtmpVideoResolution.js.map +1 -1
- package/lib/module/classes/HMSSDK.js +1314 -328
- package/lib/module/classes/HMSSDK.js.map +1 -1
- package/lib/module/classes/HMSScreenBroadcastAudioReceiverNode.js.map +1 -1
- package/lib/module/classes/HMSServerRecordingState.js +5 -3
- package/lib/module/classes/HMSServerRecordingState.js.map +1 -1
- package/lib/module/classes/HMSSessionStore.js +19 -22
- package/lib/module/classes/HMSSessionStore.js.map +1 -1
- package/lib/module/classes/HMSSimulcastLayerDefinition.js +3 -3
- package/lib/module/classes/HMSSimulcastLayerDefinition.js.map +1 -1
- package/lib/module/classes/HMSSimulcastLayerSettings.js +3 -3
- package/lib/module/classes/HMSSimulcastLayerSettings.js.map +1 -1
- package/lib/module/classes/HMSSimulcastLayerSettingsPolicy.js +3 -3
- package/lib/module/classes/HMSSimulcastLayerSettingsPolicy.js.map +1 -1
- package/lib/module/classes/HMSSimulcastSettings.js +3 -3
- package/lib/module/classes/HMSSimulcastSettings.js.map +1 -1
- package/lib/module/classes/HMSSimulcastSettingsPolicy.js +3 -3
- package/lib/module/classes/HMSSimulcastSettingsPolicy.js.map +1 -1
- package/lib/module/classes/HMSSpeaker.js +3 -3
- package/lib/module/classes/HMSSpeaker.js.map +1 -1
- package/lib/module/classes/HMSStreamingState.js +9 -0
- package/lib/module/classes/HMSStreamingState.js.map +1 -0
- package/lib/module/classes/HMSSubscribeDegradationPolicy.js +3 -3
- package/lib/module/classes/HMSSubscribeDegradationPolicy.js.map +1 -1
- package/lib/module/classes/HMSSubscribeSettings.js +3 -3
- package/lib/module/classes/HMSSubscribeSettings.js.map +1 -1
- package/lib/module/classes/HMSTrack.js +16 -3
- package/lib/module/classes/HMSTrack.js.map +1 -1
- package/lib/module/classes/HMSTrackSettings.js +13 -3
- package/lib/module/classes/HMSTrackSettings.js.map +1 -1
- package/lib/module/classes/HMSTrackSettingsInitState.js +9 -0
- package/lib/module/classes/HMSTrackSettingsInitState.js.map +1 -1
- package/lib/module/classes/HMSTrackSource.js +10 -0
- package/lib/module/classes/HMSTrackSource.js.map +1 -1
- package/lib/module/classes/HMSTrackType.js +7 -0
- package/lib/module/classes/HMSTrackType.js.map +1 -1
- package/lib/module/classes/HMSTrackUpdate.js.map +1 -1
- package/lib/module/classes/HMSUpdateListenerActions.js +43 -3
- package/lib/module/classes/HMSUpdateListenerActions.js.map +1 -1
- package/lib/module/classes/HMSVideoCodec.js.map +1 -1
- package/lib/module/classes/HMSVideoResolution.js +3 -3
- package/lib/module/classes/HMSVideoResolution.js.map +1 -1
- package/lib/module/classes/HMSVideoSettings.js +3 -3
- package/lib/module/classes/HMSVideoSettings.js.map +1 -1
- package/lib/module/classes/HMSVideoTrack.js +20 -3
- package/lib/module/classes/HMSVideoTrack.js.map +1 -1
- package/lib/module/classes/HMSVideoTrackSettings.js +18 -7
- package/lib/module/classes/HMSVideoTrackSettings.js.map +1 -1
- package/lib/module/classes/HMSVideoViewMode.js.map +1 -1
- package/lib/module/classes/HmsView.js +77 -25
- package/lib/module/classes/HmsView.js.map +1 -1
- package/lib/module/classes/polls/DecodedPollLeaderboardResponse.js +2 -0
- package/lib/module/classes/polls/DecodedPollLeaderboardResponse.js.map +1 -0
- package/lib/module/classes/polls/HMSPoll.js +2 -0
- package/lib/module/classes/polls/HMSPoll.js.map +1 -0
- package/lib/module/classes/polls/HMSPollCategory.js +6 -0
- package/lib/module/classes/polls/HMSPollCategory.js.map +1 -0
- package/lib/module/classes/polls/HMSPollCreateParams.js +2 -0
- package/lib/module/classes/polls/HMSPollCreateParams.js.map +1 -0
- package/lib/module/classes/polls/HMSPollLeaderboardEntry.js +2 -0
- package/lib/module/classes/polls/HMSPollLeaderboardEntry.js.map +1 -0
- package/lib/module/classes/polls/HMSPollLeaderboardSummary.js +2 -0
- package/lib/module/classes/polls/HMSPollLeaderboardSummary.js.map +1 -0
- package/lib/module/classes/polls/HMSPollQuestion.js +2 -0
- package/lib/module/classes/polls/HMSPollQuestion.js.map +1 -0
- package/lib/module/classes/polls/HMSPollQuestionAnswer.js +2 -0
- package/lib/module/classes/polls/HMSPollQuestionAnswer.js.map +1 -0
- package/lib/module/classes/polls/HMSPollQuestionCreateParams.js +2 -0
- package/lib/module/classes/polls/HMSPollQuestionCreateParams.js.map +1 -0
- package/lib/module/classes/polls/HMSPollQuestionOption.js +2 -0
- package/lib/module/classes/polls/HMSPollQuestionOption.js.map +1 -0
- package/lib/module/classes/polls/HMSPollQuestionOptionCreateParams.js +2 -0
- package/lib/module/classes/polls/HMSPollQuestionOptionCreateParams.js.map +1 -0
- package/lib/module/classes/polls/HMSPollQuestionQuizOptionCreateParams.js +2 -0
- package/lib/module/classes/polls/HMSPollQuestionQuizOptionCreateParams.js.map +1 -0
- package/lib/module/classes/polls/HMSPollQuestionResponse.js +2 -0
- package/lib/module/classes/polls/HMSPollQuestionResponse.js.map +1 -0
- package/lib/module/classes/polls/HMSPollQuestionResponseCreateParams.js +2 -0
- package/lib/module/classes/polls/HMSPollQuestionResponseCreateParams.js.map +1 -0
- package/lib/module/classes/polls/HMSPollQuestionResponseResult.js +2 -0
- package/lib/module/classes/polls/HMSPollQuestionResponseResult.js.map +1 -0
- package/lib/module/classes/polls/HMSPollQuestionResult.js +2 -0
- package/lib/module/classes/polls/HMSPollQuestionResult.js.map +1 -0
- package/lib/module/classes/polls/HMSPollQuestionType.js +8 -0
- package/lib/module/classes/polls/HMSPollQuestionType.js.map +1 -0
- package/lib/module/classes/polls/HMSPollResponsePeerInfo.js +2 -0
- package/lib/module/classes/polls/HMSPollResponsePeerInfo.js.map +1 -0
- package/lib/module/classes/polls/HMSPollResult.js +2 -0
- package/lib/module/classes/polls/HMSPollResult.js.map +1 -0
- package/lib/module/classes/polls/HMSPollState.js +7 -0
- package/lib/module/classes/polls/HMSPollState.js.map +1 -0
- package/lib/module/classes/polls/HMSPollType.js +6 -0
- package/lib/module/classes/polls/HMSPollType.js.map +1 -0
- package/lib/module/classes/polls/HMSPollUpdateType.js +7 -0
- package/lib/module/classes/polls/HMSPollUpdateType.js.map +1 -0
- package/lib/module/classes/polls/HMSPollUserTrackingMode.js +7 -0
- package/lib/module/classes/polls/HMSPollUserTrackingMode.js.map +1 -0
- package/lib/module/classes/polls/PollLeaderboardResponse.js +2 -0
- package/lib/module/classes/polls/PollLeaderboardResponse.js.map +1 -0
- package/lib/module/classes/transcriptions/HMSTranscript.js +2 -0
- package/lib/module/classes/transcriptions/HMSTranscript.js.map +1 -0
- package/lib/module/classes/transcriptions/OnTranscriptionError.js +2 -0
- package/lib/module/classes/transcriptions/OnTranscriptionError.js.map +1 -0
- package/lib/module/classes/transcriptions/TranscriptionState.js +8 -0
- package/lib/module/classes/transcriptions/TranscriptionState.js.map +1 -0
- package/lib/module/classes/transcriptions/Transcriptions.js +2 -0
- package/lib/module/classes/transcriptions/Transcriptions.js.map +1 -0
- package/lib/module/classes/transcriptions/TranscriptionsMode.js +6 -0
- package/lib/module/classes/transcriptions/TranscriptionsMode.js.map +1 -0
- package/lib/module/classes/transcriptions/index.js +6 -0
- package/lib/module/classes/transcriptions/index.js.map +1 -0
- package/lib/module/classes/whiteboard/HMSWhiteboard.js +2 -0
- package/lib/module/classes/whiteboard/HMSWhiteboard.js.map +1 -0
- package/lib/module/classes/whiteboard/HMSWhiteboardListenerActions.js +5 -0
- package/lib/module/classes/whiteboard/HMSWhiteboardListenerActions.js.map +1 -0
- package/lib/module/classes/whiteboard/HMSWhiteboardState.js +6 -0
- package/lib/module/classes/whiteboard/HMSWhiteboardState.js.map +1 -0
- package/lib/module/classes/whiteboard/HMSWhiteboardUpdateType.js +6 -0
- package/lib/module/classes/whiteboard/HMSWhiteboardUpdateType.js.map +1 -0
- package/lib/module/classes/whiteboard/index.js +4 -0
- package/lib/module/classes/whiteboard/index.js.map +1 -0
- package/lib/module/classes/whiteboard/registerCallbacks.js +18 -0
- package/lib/module/classes/whiteboard/registerCallbacks.js.map +1 -0
- package/lib/module/components/HMSHLSPlayer/HMSHLSPlayer.js +157 -49
- package/lib/module/components/HMSHLSPlayer/HMSHLSPlayer.js.map +1 -1
- package/lib/module/components/HMSHLSPlayer/RCTHMSHLSPlayer.js +3 -3
- package/lib/module/components/HMSHLSPlayer/RCTHMSHLSPlayer.js.map +1 -1
- package/lib/module/components/HMSHLSPlayer/hooks.js +16 -4
- package/lib/module/components/HMSHLSPlayer/hooks.js.map +1 -1
- package/lib/module/components/HMSHLSPlayer/index.js +1 -1
- package/lib/module/components/HMSHLSPlayer/index.js.map +1 -1
- package/lib/module/hooks/hmsviews.js +12 -0
- package/lib/module/hooks/hmsviews.js.map +1 -0
- package/lib/module/hooks/polls.js +12 -0
- package/lib/module/hooks/polls.js.map +1 -0
- package/lib/module/hooks/useHMSPeerUpdates.js +1 -2
- package/lib/module/hooks/useHMSPeerUpdates.js.map +1 -1
- package/lib/module/index.js +29 -2
- package/lib/module/index.js.map +1 -1
- package/lib/module/modules/HMSManagerModule.js +3 -0
- package/lib/module/modules/HMSManagerModule.js.map +1 -0
- package/lib/module/specs/HMSHLSPlayerNativeComponent.js +69 -0
- package/lib/module/specs/HMSHLSPlayerNativeComponent.js.map +1 -0
- package/lib/module/specs/HMSViewNativeComponent.js +49 -0
- package/lib/module/specs/HMSViewNativeComponent.js.map +1 -0
- package/lib/module/specs/NativeHMSManager.js +33 -0
- package/lib/module/specs/NativeHMSManager.js.map +1 -0
- package/lib/module/stores/hls-player-playback-slice.js +10 -0
- package/lib/module/stores/hls-player-playback-slice.js.map +1 -1
- package/lib/module/stores/hls-player-stats-store.js +27 -15
- package/lib/module/stores/hls-player-stats-store.js.map +1 -1
- package/lib/module/stores/hms-interactivity-store.js +15 -0
- package/lib/module/stores/hms-interactivity-store.js.map +1 -0
- package/lib/module/stores/hms-polls-slice.js +12 -0
- package/lib/module/stores/hms-polls-slice.js.map +1 -0
- package/lib/module/stores/hms-store.js +5 -5
- package/lib/module/stores/hms-store.js.map +1 -1
- package/lib/module/stores/hmsviews-slice.js +12 -0
- package/lib/module/stores/hmsviews-slice.js.map +1 -0
- package/lib/module/stores/types.js.map +1 -1
- package/lib/module/types.js +3 -1
- package/lib/module/types.js.map +1 -1
- package/lib/module/utils/emitter/EventEmitter.js +23 -7
- package/lib/module/utils/emitter/EventEmitter.js.map +1 -1
- package/lib/module/utils/emitter/_EmitterSubscription.js +3 -3
- package/lib/module/utils/emitter/_EmitterSubscription.js.map +1 -1
- package/lib/module/utils/emitter/_EventSubscription.js +3 -3
- package/lib/module/utils/emitter/_EventSubscription.js.map +1 -1
- package/lib/module/utils/emitter/_EventSubscriptionVendor.js +3 -4
- 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 +38 -0
- package/lib/module/utils/keyboard.js.map +1 -0
- package/lib/module/utils/notification.js +5 -0
- package/lib/module/utils/notification.js.map +1 -0
- package/lib/module/utils/windowController.js +22 -0
- package/lib/module/utils/windowController.js.map +1 -0
- package/lib/typescript/classes/HMSAudioDevice.d.ts +14 -0
- package/lib/typescript/classes/HMSAudioMixingMode.d.ts +11 -0
- package/lib/typescript/classes/HMSAudioTrack.d.ts +9 -0
- package/lib/typescript/classes/HMSAudioTrackSettings.d.ts +9 -0
- package/lib/typescript/classes/HMSBrowserRecordingState.d.ts +3 -0
- package/lib/typescript/classes/HMSCameraFacing.d.ts +11 -0
- package/lib/typescript/classes/HMSConfig.d.ts +27 -0
- package/lib/typescript/classes/HMSEncoder.d.ts +5 -0
- package/lib/typescript/classes/HMSException.d.ts +18 -0
- package/lib/typescript/classes/HMSHLSPlaylistType.d.ts +4 -0
- package/lib/typescript/classes/HMSHLSRecordingState.d.ts +6 -4
- package/lib/typescript/classes/HMSHLSStreamingState.d.ts +8 -0
- package/lib/typescript/classes/HMSHLSTimedMetadata.d.ts +16 -0
- package/lib/typescript/classes/HMSHLSVariant.d.ts +3 -0
- package/lib/typescript/classes/HMSIOSAudioMode.d.ts +15 -0
- package/lib/typescript/classes/HMSInteractivityCenter.d.ts +62 -0
- package/lib/typescript/classes/HMSInteractivityEncoder.d.ts +9 -0
- package/lib/typescript/classes/HMSLogAlarmManager.d.ts +12 -0
- package/lib/typescript/classes/HMSLogLevel.d.ts +12 -0
- package/lib/typescript/classes/HMSLogSettings.d.ts +14 -0
- package/lib/typescript/classes/HMSNetworkQuality.d.ts +11 -0
- package/lib/typescript/classes/HMSNoiseCancellationPlugin.d.ts +87 -0
- package/lib/typescript/classes/HMSPIPConfig.d.ts +47 -0
- package/lib/typescript/classes/HMSPIPListenerActions.d.ts +17 -0
- package/lib/typescript/classes/HMSPeer.d.ts +144 -1
- package/lib/typescript/classes/HMSPeerListIterator.d.ts +3 -1
- package/lib/typescript/classes/HMSPeerListIteratorOptions.d.ts +19 -0
- package/lib/typescript/classes/HMSPeerType.d.ts +16 -0
- package/lib/typescript/classes/HMSPeersCache.d.ts +2 -0
- package/lib/typescript/classes/HMSPermissions.d.ts +18 -0
- package/lib/typescript/classes/HMSPollsListenerActions.d.ts +3 -0
- package/lib/typescript/classes/HMSRTMPConfig.d.ts +14 -0
- package/lib/typescript/classes/HMSRecordingState.d.ts +9 -0
- package/lib/typescript/classes/HMSRole.d.ts +17 -0
- package/lib/typescript/classes/HMSRoom.d.ts +3 -0
- package/lib/typescript/classes/HMSRoomUpdate.d.ts +2 -1
- package/lib/typescript/classes/HMSRtmpStreamingState.d.ts +3 -2
- package/lib/typescript/classes/HMSRtmpVideoResolution.d.ts +13 -0
- package/lib/typescript/classes/HMSSDK.d.ts +1123 -249
- package/lib/typescript/classes/HMSServerRecordingState.d.ts +3 -0
- package/lib/typescript/classes/HMSSessionStore.d.ts +23 -22
- package/lib/typescript/classes/HMSStreamingState.d.ts +7 -0
- package/lib/typescript/classes/HMSTrack.d.ts +13 -0
- package/lib/typescript/classes/HMSTrackSettings.d.ts +10 -0
- package/lib/typescript/classes/HMSTrackSettingsInitState.d.ts +11 -0
- package/lib/typescript/classes/HMSTrackSource.d.ts +10 -0
- package/lib/typescript/classes/HMSTrackType.d.ts +7 -0
- package/lib/typescript/classes/HMSUpdateListenerActions.d.ts +290 -3
- package/lib/typescript/classes/HMSVideoTrack.d.ts +17 -0
- package/lib/typescript/classes/HMSVideoTrackSettings.d.ts +23 -2
- package/lib/typescript/classes/HmsView.d.ts +16 -0
- package/lib/typescript/classes/polls/DecodedPollLeaderboardResponse.d.ts +37 -0
- package/lib/typescript/classes/polls/HMSPoll.d.ts +73 -0
- package/lib/typescript/classes/polls/HMSPollCategory.d.ts +10 -0
- package/lib/typescript/classes/polls/HMSPollCreateParams.d.ts +6 -0
- package/lib/typescript/classes/polls/HMSPollLeaderboardEntry.d.ts +9 -0
- package/lib/typescript/classes/polls/HMSPollLeaderboardSummary.d.ts +7 -0
- package/lib/typescript/classes/polls/HMSPollQuestion.d.ts +61 -0
- package/lib/typescript/classes/polls/HMSPollQuestionAnswer.d.ts +17 -0
- package/lib/typescript/classes/polls/HMSPollQuestionCreateParams.d.ts +25 -0
- package/lib/typescript/classes/polls/HMSPollQuestionOption.d.ts +21 -0
- package/lib/typescript/classes/polls/HMSPollQuestionOptionCreateParams.d.ts +3 -0
- package/lib/typescript/classes/polls/HMSPollQuestionQuizOptionCreateParams.d.ts +4 -0
- package/lib/typescript/classes/polls/HMSPollQuestionResponse.d.ts +47 -0
- package/lib/typescript/classes/polls/HMSPollQuestionResponseCreateParams.d.ts +2 -0
- package/lib/typescript/classes/polls/HMSPollQuestionResponseResult.d.ts +17 -0
- package/lib/typescript/classes/polls/HMSPollQuestionResult.d.ts +29 -0
- package/lib/typescript/classes/polls/HMSPollQuestionType.d.ts +18 -0
- package/lib/typescript/classes/polls/HMSPollResponsePeerInfo.d.ts +21 -0
- package/lib/typescript/classes/polls/HMSPollResult.d.ts +22 -0
- package/lib/typescript/classes/polls/HMSPollState.d.ts +14 -0
- package/lib/typescript/classes/polls/HMSPollType.d.ts +4 -0
- package/lib/typescript/classes/polls/HMSPollUpdateType.d.ts +5 -0
- package/lib/typescript/classes/polls/HMSPollUserTrackingMode.d.ts +14 -0
- package/lib/typescript/classes/polls/PollLeaderboardResponse.d.ts +7 -0
- package/lib/typescript/classes/transcriptions/HMSTranscript.d.ts +8 -0
- package/lib/typescript/classes/transcriptions/OnTranscriptionError.d.ts +4 -0
- package/lib/typescript/classes/transcriptions/TranscriptionState.d.ts +6 -0
- package/lib/typescript/classes/transcriptions/Transcriptions.d.ts +12 -0
- package/lib/typescript/classes/transcriptions/TranscriptionsMode.d.ts +4 -0
- package/lib/typescript/classes/transcriptions/index.d.ts +5 -0
- package/lib/typescript/classes/whiteboard/HMSWhiteboard.d.ts +10 -0
- package/lib/typescript/classes/whiteboard/HMSWhiteboardListenerActions.d.ts +3 -0
- package/lib/typescript/classes/whiteboard/HMSWhiteboardState.d.ts +4 -0
- package/lib/typescript/classes/whiteboard/HMSWhiteboardUpdateType.d.ts +4 -0
- package/lib/typescript/classes/whiteboard/index.d.ts +3 -0
- package/lib/typescript/classes/whiteboard/registerCallbacks.d.ts +8 -0
- package/lib/typescript/components/HMSHLSPlayer/HMSHLSPlayer.d.ts +6 -0
- package/lib/typescript/components/HMSHLSPlayer/RCTHMSHLSPlayer.d.ts +11 -9
- package/lib/typescript/components/HMSHLSPlayer/hooks.d.ts +5 -0
- package/lib/typescript/components/HMSHLSPlayer/index.d.ts +1 -1
- package/lib/typescript/hooks/hmsviews.d.ts +3 -0
- package/lib/typescript/hooks/polls.d.ts +3 -0
- package/lib/typescript/index.d.ts +29 -2
- package/lib/typescript/specs/HMSHLSPlayerNativeComponent.d.ts +115 -0
- package/lib/typescript/specs/HMSViewNativeComponent.d.ts +97 -0
- package/lib/typescript/specs/NativeHMSManager.d.ts +147 -0
- package/lib/typescript/stores/hls-player-stats-store.d.ts +4 -3
- package/lib/typescript/stores/hms-interactivity-store.d.ts +9 -0
- package/lib/typescript/stores/hms-polls-slice.d.ts +5 -0
- package/lib/typescript/stores/hms-store.d.ts +4 -3
- package/lib/typescript/stores/hmsviews-slice.d.ts +5 -0
- package/lib/typescript/stores/types.d.ts +27 -3
- package/lib/typescript/types.d.ts +18 -5
- package/lib/typescript/utils/emitter/EventEmitter.d.ts +7 -0
- package/lib/typescript/utils/keyboard.d.ts +16 -0
- package/lib/typescript/utils/notification.d.ts +5 -0
- package/lib/typescript/utils/windowController.d.ts +10 -0
- package/package.json +49 -7
- package/react-native-hms.podspec +56 -2
- package/sdk-versions.json +4 -3
- package/src/classes/HMSAudioDevice.ts +18 -0
- package/src/classes/HMSAudioMixingMode.ts +11 -0
- package/src/classes/HMSAudioTrack.ts +9 -0
- package/src/classes/HMSAudioTrackSettings.ts +11 -0
- package/src/classes/HMSBrowserRecordingState.ts +4 -0
- package/src/classes/HMSCameraControl.ts +1 -1
- package/src/classes/HMSCameraFacing.ts +11 -0
- package/src/classes/HMSConfig.ts +27 -0
- package/src/classes/HMSEncoder.ts +57 -4
- package/src/classes/HMSException.ts +18 -0
- package/src/classes/HMSHLSPlaylistType.ts +4 -0
- package/src/classes/HMSHLSRecordingState.ts +9 -7
- package/src/classes/HMSHLSStreamingState.ts +15 -1
- package/src/classes/HMSHLSTimedMetadata.ts +16 -0
- package/src/classes/HMSHLSVariant.ts +5 -0
- package/src/classes/HMSIOSAudioMode.ts +15 -0
- package/src/classes/HMSInteractivityCenter.ts +246 -0
- package/src/classes/HMSInteractivityEncoder.ts +92 -0
- package/src/classes/HMSLogAlarmManager.ts +12 -0
- package/src/classes/HMSLogLevel.ts +12 -0
- package/src/classes/HMSLogSettings.ts +14 -0
- package/src/classes/HMSNativeEventEmitter.ts +1 -7
- package/src/classes/HMSNativeEventListener.ts +1 -1
- package/src/classes/HMSNetworkQuality.ts +11 -0
- package/src/classes/HMSNoiseCancellationPlugin.ts +162 -0
- package/src/classes/HMSPIPConfig.ts +54 -0
- package/src/classes/HMSPIPListenerActions.ts +18 -0
- package/src/classes/HMSPeer.ts +193 -3
- package/src/classes/HMSPeerListIterator.ts +29 -7
- package/src/classes/HMSPeerListIteratorOptions.ts +21 -0
- package/src/classes/HMSPeerType.ts +20 -0
- package/src/classes/HMSPeersCache.ts +3 -1
- package/src/classes/HMSPermissions.ts +25 -0
- package/src/classes/HMSPollsListenerActions.ts +3 -0
- package/src/classes/HMSRTMPConfig.ts +14 -0
- package/src/classes/HMSRecordingState.ts +9 -0
- package/src/classes/HMSRole.ts +17 -0
- package/src/classes/HMSRoom.ts +27 -0
- package/src/classes/HMSRoomCache.ts +10 -1
- package/src/classes/HMSRoomUpdate.ts +1 -0
- package/src/classes/HMSRtmpStreamingState.ts +4 -3
- package/src/classes/HMSRtmpVideoResolution.ts +13 -0
- package/src/classes/HMSSDK.tsx +1379 -345
- package/src/classes/HMSServerRecordingState.ts +4 -0
- package/src/classes/HMSSessionStore.ts +34 -45
- package/src/classes/HMSStreamingState.ts +7 -0
- package/src/classes/HMSTrack.ts +13 -0
- package/src/classes/HMSTrackSettings.ts +10 -0
- package/src/classes/HMSTrackSettingsInitState.ts +11 -0
- package/src/classes/HMSTrackSource.ts +10 -0
- package/src/classes/HMSTrackType.ts +7 -0
- package/src/classes/HMSUpdateListenerActions.ts +313 -3
- package/src/classes/HMSVideoTrack.ts +17 -0
- package/src/classes/HMSVideoTrackSettings.ts +27 -2
- package/src/classes/HmsView.tsx +92 -57
- package/src/classes/polls/DecodedPollLeaderboardResponse.ts +43 -0
- package/src/classes/polls/HMSPoll.ts +99 -0
- package/src/classes/polls/HMSPollCategory.ts +11 -0
- package/src/classes/polls/HMSPollCreateParams.ts +19 -0
- package/src/classes/polls/HMSPollLeaderboardEntry.ts +10 -0
- package/src/classes/polls/HMSPollLeaderboardSummary.ts +7 -0
- package/src/classes/polls/HMSPollQuestion.ts +92 -0
- package/src/classes/polls/HMSPollQuestionAnswer.ts +29 -0
- package/src/classes/polls/HMSPollQuestionCreateParams.ts +36 -0
- package/src/classes/polls/HMSPollQuestionOption.ts +24 -0
- package/src/classes/polls/HMSPollQuestionOptionCreateParams.ts +8 -0
- package/src/classes/polls/HMSPollQuestionQuizOptionCreateParams.ts +6 -0
- package/src/classes/polls/HMSPollQuestionResponse.ts +72 -0
- package/src/classes/polls/HMSPollQuestionResponseCreateParams.ts +6 -0
- package/src/classes/polls/HMSPollQuestionResponseResult.ts +19 -0
- package/src/classes/polls/HMSPollQuestionResult.ts +41 -0
- package/src/classes/polls/HMSPollQuestionType.ts +21 -0
- package/src/classes/polls/HMSPollResponsePeerInfo.ts +24 -0
- package/src/classes/polls/HMSPollResult.ts +26 -0
- package/src/classes/polls/HMSPollState.ts +16 -0
- package/src/classes/polls/HMSPollType.ts +4 -0
- package/src/classes/polls/HMSPollUpdateType.ts +5 -0
- package/src/classes/polls/HMSPollUserTrackingMode.ts +16 -0
- package/src/classes/polls/PollLeaderboardResponse.ts +8 -0
- package/src/classes/transcriptions/HMSTranscript.ts +13 -0
- package/src/classes/transcriptions/OnTranscriptionError.ts +5 -0
- package/src/classes/transcriptions/TranscriptionState.ts +6 -0
- package/src/classes/transcriptions/Transcriptions.ts +19 -0
- package/src/classes/transcriptions/TranscriptionsMode.ts +4 -0
- package/src/classes/transcriptions/index.ts +5 -0
- package/src/classes/whiteboard/HMSWhiteboard.tsx +16 -0
- package/src/classes/whiteboard/HMSWhiteboardListenerActions.ts +3 -0
- package/src/classes/whiteboard/HMSWhiteboardState.tsx +4 -0
- package/src/classes/whiteboard/HMSWhiteboardUpdateType.tsx +4 -0
- package/src/classes/whiteboard/index.ts +3 -0
- package/src/classes/whiteboard/registerCallbacks.ts +34 -0
- package/src/components/HMSHLSPlayer/HMSHLSPlayer.tsx +176 -92
- package/src/components/HMSHLSPlayer/RCTHMSHLSPlayer.ts +20 -13
- package/src/components/HMSHLSPlayer/hooks.ts +22 -4
- package/src/components/HMSHLSPlayer/index.ts +3 -0
- package/src/hooks/hmsviews.ts +15 -0
- package/src/hooks/polls.ts +14 -0
- package/src/index.ts +38 -3
- package/src/modules/HMSManagerModule.ts +5 -0
- package/src/specs/HMSHLSPlayerNativeComponent.ts +203 -0
- package/src/specs/HMSViewNativeComponent.ts +119 -0
- package/src/specs/NativeHMSManager.ts +307 -0
- package/src/stores/hls-player-playback-slice.ts +11 -0
- package/src/stores/hls-player-stats-store.ts +28 -18
- package/src/stores/hms-interactivity-store.ts +18 -0
- package/src/stores/hms-polls-slice.ts +20 -0
- package/src/stores/hms-store.ts +2 -0
- package/src/stores/hmsviews-slice.ts +20 -0
- package/src/stores/types.ts +50 -4
- package/src/types.ts +28 -3
- package/src/utils/emitter/EventEmitter.ts +26 -0
- package/src/utils/keyboard.ts +37 -0
- package/src/utils/notification.ts +10 -0
- package/src/utils/windowController.ts +23 -0
- package/android/.gradle/6.7.1/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/6.7.1/fileChanges/last-build.bin +0 -0
- package/android/.gradle/6.7.1/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/6.7.1/gc.properties +0 -0
- package/android/.gradle/6.9/executionHistory/executionHistory.bin +0 -0
- package/android/.gradle/6.9/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/6.9/fileChanges/last-build.bin +0 -0
- package/android/.gradle/6.9/fileHashes/fileHashes.bin +0 -0
- package/android/.gradle/6.9/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/6.9/fileHashes/resourceHashesCache.bin +0 -0
- package/android/.gradle/6.9/gc.properties +0 -0
- package/android/.gradle/6.9/javaCompile/classAnalysis.bin +0 -0
- package/android/.gradle/6.9/javaCompile/jarAnalysis.bin +0 -0
- package/android/.gradle/6.9/javaCompile/javaCompile.lock +0 -0
- package/android/.gradle/6.9/javaCompile/taskHistory.bin +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +0 -2
- package/android/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
- package/android/.gradle/checksums/checksums.lock +0 -0
- package/android/.gradle/checksums/md5-checksums.bin +0 -0
- package/android/.gradle/checksums/sha1-checksums.bin +0 -0
- package/android/.gradle/configuration-cache/gc.properties +0 -0
- package/android/.gradle/vcs-1/gc.properties +0 -0
- package/android/.idea/compiler.xml +0 -6
- package/android/.idea/gradle.xml +0 -18
- package/android/.idea/jarRepositories.xml +0 -45
- package/android/.idea/misc.xml +0 -10
- package/android/.idea/vcs.xml +0 -6
- package/android/local.properties +0 -8
- package/android/src/main/java/com/reactnativehmssdk/HMSHLSPlayerManager.kt +0 -114
- package/android/src/main/java/com/reactnativehmssdk/HMSSDKViewManager.kt +0 -115
- 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
- package/lib/commonjs/classes/HMSManagerModule.js +0 -18
- package/lib/commonjs/classes/HMSManagerModule.js.map +0 -1
- package/lib/module/classes/HMSManagerModule.js +0 -11
- package/lib/module/classes/HMSManagerModule.js.map +0 -1
- package/src/classes/HMSManagerModule.ts +0 -18
- /package/lib/typescript/{classes → modules}/HMSManagerModule.d.ts +0 -0
|
@@ -4,10 +4,16 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.HMSTrackType = void 0;
|
|
7
|
-
|
|
7
|
+
/**
|
|
8
|
+
* Enum for HMS Track Types.
|
|
9
|
+
*
|
|
10
|
+
* This enumeration defines the types of tracks that can be handled within the HMS (100ms) system, specifically distinguishing between audio and video tracks.
|
|
11
|
+
* - `AUDIO`: Represents an audio track, typically containing sound or voice data.
|
|
12
|
+
* - `VIDEO`: Represents a video track, typically containing visual data from a camera or other video sources.
|
|
13
|
+
*/
|
|
14
|
+
let HMSTrackType = exports.HMSTrackType = /*#__PURE__*/function (HMSTrackType) {
|
|
8
15
|
HMSTrackType["AUDIO"] = "AUDIO";
|
|
9
16
|
HMSTrackType["VIDEO"] = "VIDEO";
|
|
10
17
|
return HMSTrackType;
|
|
11
18
|
}({});
|
|
12
|
-
exports.HMSTrackType = HMSTrackType;
|
|
13
19
|
//# sourceMappingURL=HMSTrackType.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["HMSTrackType","exports"],"sources":["HMSTrackType.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"names":["HMSTrackType","exports"],"sources":["HMSTrackType.ts"],"sourcesContent":["/**\n * Enum for HMS Track Types.\n *\n * This enumeration defines the types of tracks that can be handled within the HMS (100ms) system, specifically distinguishing between audio and video tracks.\n * - `AUDIO`: Represents an audio track, typically containing sound or voice data.\n * - `VIDEO`: Represents a video track, typically containing visual data from a camera or other video sources.\n */\nexport enum HMSTrackType {\n AUDIO = 'AUDIO',\n VIDEO = 'VIDEO',\n}\n"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AANA,IAOYA,YAAY,GAAAC,OAAA,CAAAD,YAAA,0BAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAA,OAAZA,YAAY;AAAA","ignoreList":[]}
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.HMSTrackUpdate = void 0;
|
|
7
|
-
let HMSTrackUpdate = /*#__PURE__*/function (HMSTrackUpdate) {
|
|
7
|
+
let HMSTrackUpdate = exports.HMSTrackUpdate = /*#__PURE__*/function (HMSTrackUpdate) {
|
|
8
8
|
HMSTrackUpdate["TRACK_ADDED"] = "TRACK_ADDED";
|
|
9
9
|
HMSTrackUpdate["TRACK_REMOVED"] = "TRACK_REMOVED";
|
|
10
10
|
HMSTrackUpdate["TRACK_MUTED"] = "TRACK_MUTED";
|
|
@@ -14,5 +14,4 @@ let HMSTrackUpdate = /*#__PURE__*/function (HMSTrackUpdate) {
|
|
|
14
14
|
HMSTrackUpdate["TRACK_RESTORED"] = "TRACK_RESTORED";
|
|
15
15
|
return HMSTrackUpdate;
|
|
16
16
|
}({});
|
|
17
|
-
exports.HMSTrackUpdate = HMSTrackUpdate;
|
|
18
17
|
//# sourceMappingURL=HMSTrackUpdate.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["HMSTrackUpdate","exports"],"sources":["HMSTrackUpdate.ts"],"sourcesContent":["export enum HMSTrackUpdate {\n TRACK_ADDED = 'TRACK_ADDED',\n TRACK_REMOVED = 'TRACK_REMOVED',\n TRACK_MUTED = 'TRACK_MUTED',\n TRACK_UNMUTED = 'TRACK_UNMUTED',\n TRACK_DESCRIPTION_CHANGED = 'TRACK_DESCRIPTION_CHANGED',\n TRACK_DEGRADED = 'TRACK_DEGRADED',\n TRACK_RESTORED = 'TRACK_RESTORED',\n}\n"],"mappings":";;;;;;IAAYA,cAAc,0BAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;EAAA,OAAdA,cAAc;AAAA
|
|
1
|
+
{"version":3,"names":["HMSTrackUpdate","exports"],"sources":["HMSTrackUpdate.ts"],"sourcesContent":["export enum HMSTrackUpdate {\n TRACK_ADDED = 'TRACK_ADDED',\n TRACK_REMOVED = 'TRACK_REMOVED',\n TRACK_MUTED = 'TRACK_MUTED',\n TRACK_UNMUTED = 'TRACK_UNMUTED',\n TRACK_DESCRIPTION_CHANGED = 'TRACK_DESCRIPTION_CHANGED',\n TRACK_DEGRADED = 'TRACK_DEGRADED',\n TRACK_RESTORED = 'TRACK_RESTORED',\n}\n"],"mappings":";;;;;;IAAYA,cAAc,GAAAC,OAAA,CAAAD,cAAA,0BAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;EAAA,OAAdA,cAAc;AAAA","ignoreList":[]}
|
|
@@ -5,16 +5,55 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.HMSUpdateListenerActions = void 0;
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Enum for HMSUpdateListenerActions.
|
|
9
9
|
*
|
|
10
|
+
* This enumeration defines the set of possible events that can be emitted by the HMSSDK during a Session.
|
|
11
|
+
* These events cover a wide range of actions, from joining a room to receiving updates about peers and tracks, and more.
|
|
10
12
|
* For more info about these events, checkout Event Listener docs
|
|
11
|
-
*
|
|
13
|
+
*
|
|
14
|
+
* @see https://www.100ms.live/docs/react-native/v2/how-to-guides/listen-to-room-updates/event-listeners
|
|
15
|
+
*
|
|
16
|
+
* @enum {string}
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```typescript
|
|
20
|
+
* hmsInstance.addEventListener(HMSUpdateListenerActions.ON_JOIN, ({ room: HMSRoom }}) => {
|
|
21
|
+
* console.log('Joined room', data);
|
|
22
|
+
* // Handle the event
|
|
23
|
+
* });
|
|
24
|
+
* ```
|
|
25
|
+
*
|
|
26
|
+
* @property {string} ON_PREVIEW - Emitted when the local preview is available.
|
|
27
|
+
* @property {string} ON_JOIN - Emitted when the local user joins the room.
|
|
28
|
+
* @property {string} ON_ROOM_UPDATE - Emitted when there is an update related to the room.
|
|
29
|
+
* @property {string} ON_PEER_UPDATE - Emitted when there is an update related to a peer in the room.
|
|
30
|
+
* @property {string} ON_TRACK_UPDATE - Emitted when there is an update related to a track in the room.
|
|
31
|
+
* @property {string} ON_ERROR - Emitted when an error occurs.
|
|
32
|
+
* @property {string} ON_MESSAGE - Emitted when a message is received.
|
|
33
|
+
* @property {string} ON_SPEAKER - Emitted when there is an update on the current speaker.
|
|
34
|
+
* @property {string} RECONNECTING - Emitted when the SDK is attempting to reconnect to the room.
|
|
35
|
+
* @property {string} RECONNECTED - Emitted when the SDK has successfully reconnected to the room.
|
|
36
|
+
* @property {string} ON_ROLE_CHANGE_REQUEST - Emitted when there is a request to change the role of a peer.
|
|
37
|
+
* @property {string} ON_CHANGE_TRACK_STATE_REQUEST - Emitted when there is a request to change the state of a track.
|
|
38
|
+
* @property {string} ON_REMOVED_FROM_ROOM - Emitted when the local user is removed from the room.
|
|
39
|
+
* @property {string} ON_RTC_STATS - Emitted when RTC stats are available.
|
|
40
|
+
* @property {string} ON_LOCAL_AUDIO_STATS - Emitted when stats for the local audio track are available.
|
|
41
|
+
* @property {string} ON_LOCAL_VIDEO_STATS - Emitted when stats for the local video track are available.
|
|
42
|
+
* @property {string} ON_REMOTE_AUDIO_STATS - Emitted when stats for a remote audio track are available.
|
|
43
|
+
* @property {string} ON_REMOTE_VIDEO_STATS - Emitted when stats for a remote video track are available.
|
|
44
|
+
* @property {string} ON_AUDIO_DEVICE_CHANGED - Emitted when the audio device has changed.
|
|
45
|
+
* @property {string} ON_SESSION_STORE_AVAILABLE - Emitted when the session store is available.
|
|
46
|
+
* @property {string} ON_SESSION_STORE_CHANGED - Emitted when the session store has changed.
|
|
47
|
+
* @property {string} ON_PEER_LIST_UPDATED - Emitted when the list of peers is updated.
|
|
48
|
+
* @property {string} ON_TRANSCRIPTS - Emitted when transcripts are available.
|
|
49
|
+
* @property {string} ON_PERMISSIONS_REQUESTED - Emitted when permissions are requested.
|
|
12
50
|
*/
|
|
13
|
-
let HMSUpdateListenerActions = /*#__PURE__*/function (HMSUpdateListenerActions) {
|
|
51
|
+
let HMSUpdateListenerActions = exports.HMSUpdateListenerActions = /*#__PURE__*/function (HMSUpdateListenerActions) {
|
|
14
52
|
HMSUpdateListenerActions["ON_PREVIEW"] = "ON_PREVIEW";
|
|
15
53
|
HMSUpdateListenerActions["ON_JOIN"] = "ON_JOIN";
|
|
16
54
|
HMSUpdateListenerActions["ON_ROOM_UPDATE"] = "ON_ROOM_UPDATE";
|
|
17
55
|
HMSUpdateListenerActions["ON_PEER_UPDATE"] = "3";
|
|
56
|
+
HMSUpdateListenerActions["ON_PEER_LIST_UPDATED"] = "ON_PEER_LIST_UPDATED";
|
|
18
57
|
HMSUpdateListenerActions["ON_TRACK_UPDATE"] = "ON_TRACK_UPDATE";
|
|
19
58
|
HMSUpdateListenerActions["ON_ERROR"] = "ON_ERROR";
|
|
20
59
|
HMSUpdateListenerActions["ON_MESSAGE"] = "ON_MESSAGE";
|
|
@@ -32,8 +71,8 @@ let HMSUpdateListenerActions = /*#__PURE__*/function (HMSUpdateListenerActions)
|
|
|
32
71
|
HMSUpdateListenerActions["ON_AUDIO_DEVICE_CHANGED"] = "ON_AUDIO_DEVICE_CHANGED";
|
|
33
72
|
HMSUpdateListenerActions["ON_SESSION_STORE_AVAILABLE"] = "ON_SESSION_STORE_AVAILABLE";
|
|
34
73
|
HMSUpdateListenerActions["ON_SESSION_STORE_CHANGED"] = "ON_SESSION_STORE_CHANGED";
|
|
35
|
-
HMSUpdateListenerActions["
|
|
74
|
+
HMSUpdateListenerActions["ON_TRANSCRIPTS"] = "ON_TRANSCRIPTS";
|
|
75
|
+
HMSUpdateListenerActions["ON_PERMISSIONS_REQUESTED"] = "ON_PERMISSIONS_REQUESTED";
|
|
36
76
|
return HMSUpdateListenerActions;
|
|
37
77
|
}({});
|
|
38
|
-
exports.HMSUpdateListenerActions = HMSUpdateListenerActions;
|
|
39
78
|
//# sourceMappingURL=HMSUpdateListenerActions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["HMSUpdateListenerActions","exports"],"sources":["HMSUpdateListenerActions.ts"],"sourcesContent":["/**\n * These are the available events emitted by the `HMSSDK`\n *\n * For more info about these events, checkout Event Listener docs\n * {@link https://www.100ms.live/docs/react-native/v2/how-to-guides/listen-to-room-updates/event-listeners}\n */\nexport enum HMSUpdateListenerActions {\n ON_PREVIEW = 'ON_PREVIEW',\n ON_JOIN = 'ON_JOIN',\n ON_ROOM_UPDATE = 'ON_ROOM_UPDATE',\n ON_PEER_UPDATE = '3',\n ON_TRACK_UPDATE = 'ON_TRACK_UPDATE',\n ON_ERROR = 'ON_ERROR',\n ON_MESSAGE = 'ON_MESSAGE',\n ON_SPEAKER = 'ON_SPEAKER',\n RECONNECTING = 'RECONNECTING',\n RECONNECTED = 'RECONNECTED',\n ON_ROLE_CHANGE_REQUEST = 'ON_ROLE_CHANGE_REQUEST',\n ON_CHANGE_TRACK_STATE_REQUEST = 'ON_CHANGE_TRACK_STATE_REQUEST',\n ON_REMOVED_FROM_ROOM = 'ON_REMOVED_FROM_ROOM',\n ON_RTC_STATS = 'ON_RTC_STATS',\n ON_LOCAL_AUDIO_STATS = 'ON_LOCAL_AUDIO_STATS',\n ON_LOCAL_VIDEO_STATS = 'ON_LOCAL_VIDEO_STATS',\n ON_REMOTE_AUDIO_STATS = 'ON_REMOTE_AUDIO_STATS',\n ON_REMOTE_VIDEO_STATS = 'ON_REMOTE_VIDEO_STATS',\n ON_AUDIO_DEVICE_CHANGED = 'ON_AUDIO_DEVICE_CHANGED',\n ON_SESSION_STORE_AVAILABLE = 'ON_SESSION_STORE_AVAILABLE',\n ON_SESSION_STORE_CHANGED = 'ON_SESSION_STORE_CHANGED',\n ON_PEER_LIST_UPDATED = 'ON_PEER_LIST_UPDATED',\n}\n"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AALA,IAMYA,wBAAwB,0BAAxBA,wBAAwB;EAAxBA,wBAAwB;EAAxBA,wBAAwB;EAAxBA,wBAAwB;EAAxBA,wBAAwB;EAAxBA,wBAAwB;EAAxBA,wBAAwB;EAAxBA,wBAAwB;EAAxBA,wBAAwB;EAAxBA,wBAAwB;EAAxBA,wBAAwB;EAAxBA,wBAAwB;EAAxBA,wBAAwB;EAAxBA,wBAAwB;EAAxBA,wBAAwB;EAAxBA,wBAAwB;EAAxBA,wBAAwB;EAAxBA,wBAAwB;EAAxBA,wBAAwB;EAAxBA,wBAAwB;EAAxBA,wBAAwB;EAAxBA,wBAAwB;EAAxBA,wBAAwB;EAAA,OAAxBA,wBAAwB;AAAA;AAAAC,OAAA,CAAAD,wBAAA,GAAAA,wBAAA"}
|
|
1
|
+
{"version":3,"names":["HMSUpdateListenerActions","exports"],"sources":["HMSUpdateListenerActions.ts"],"sourcesContent":["/**\n * Enum for HMSUpdateListenerActions.\n *\n * This enumeration defines the set of possible events that can be emitted by the HMSSDK during a Session.\n * These events cover a wide range of actions, from joining a room to receiving updates about peers and tracks, and more.\n * For more info about these events, checkout Event Listener docs\n *\n * @see https://www.100ms.live/docs/react-native/v2/how-to-guides/listen-to-room-updates/event-listeners\n *\n * @enum {string}\n *\n * @example\n * ```typescript\n * hmsInstance.addEventListener(HMSUpdateListenerActions.ON_JOIN, ({ room: HMSRoom }}) => {\n * console.log('Joined room', data);\n * // Handle the event\n * });\n * ```\n *\n * @property {string} ON_PREVIEW - Emitted when the local preview is available.\n * @property {string} ON_JOIN - Emitted when the local user joins the room.\n * @property {string} ON_ROOM_UPDATE - Emitted when there is an update related to the room.\n * @property {string} ON_PEER_UPDATE - Emitted when there is an update related to a peer in the room.\n * @property {string} ON_TRACK_UPDATE - Emitted when there is an update related to a track in the room.\n * @property {string} ON_ERROR - Emitted when an error occurs.\n * @property {string} ON_MESSAGE - Emitted when a message is received.\n * @property {string} ON_SPEAKER - Emitted when there is an update on the current speaker.\n * @property {string} RECONNECTING - Emitted when the SDK is attempting to reconnect to the room.\n * @property {string} RECONNECTED - Emitted when the SDK has successfully reconnected to the room.\n * @property {string} ON_ROLE_CHANGE_REQUEST - Emitted when there is a request to change the role of a peer.\n * @property {string} ON_CHANGE_TRACK_STATE_REQUEST - Emitted when there is a request to change the state of a track.\n * @property {string} ON_REMOVED_FROM_ROOM - Emitted when the local user is removed from the room.\n * @property {string} ON_RTC_STATS - Emitted when RTC stats are available.\n * @property {string} ON_LOCAL_AUDIO_STATS - Emitted when stats for the local audio track are available.\n * @property {string} ON_LOCAL_VIDEO_STATS - Emitted when stats for the local video track are available.\n * @property {string} ON_REMOTE_AUDIO_STATS - Emitted when stats for a remote audio track are available.\n * @property {string} ON_REMOTE_VIDEO_STATS - Emitted when stats for a remote video track are available.\n * @property {string} ON_AUDIO_DEVICE_CHANGED - Emitted when the audio device has changed.\n * @property {string} ON_SESSION_STORE_AVAILABLE - Emitted when the session store is available.\n * @property {string} ON_SESSION_STORE_CHANGED - Emitted when the session store has changed.\n * @property {string} ON_PEER_LIST_UPDATED - Emitted when the list of peers is updated.\n * @property {string} ON_TRANSCRIPTS - Emitted when transcripts are available.\n * @property {string} ON_PERMISSIONS_REQUESTED - Emitted when permissions are requested.\n */\nexport enum HMSUpdateListenerActions {\n /**\n * Event emitted when the local preview is available.\n *\n * This event is triggered once the local user's video preview becomes available.\n * It allows the application to display the local video stream to the user,\n * ensuring they can see their own feed before interacting with others in the room.\n *\n * @type {string}\n * @see https://www.100ms.live/docs/react-native/v2/how-to-guides/set-up-video-conferencing/preview\n */\n ON_PREVIEW = 'ON_PREVIEW',\n\n /**\n * Event emitted when the local user joins the room.\n *\n * This event signifies that the local user has successfully connected to the room and is now part of the session.\n * It is a critical event for initiating further actions within the room, such as fetching current participants,\n * subscribing to tracks, or sending messages. Handling this event properly is essential for setting up the user's\n * environment and ensuring a smooth experience in the room.\n *\n * @type {string}\n * @see https://www.100ms.live/docs/react-native/v2/how-to-guides/set-up-video-conferencing/join\n */\n ON_JOIN = 'ON_JOIN',\n\n /**\n * Event emitted when there is an update related to the room.\n *\n * This event is triggered by various room-related changes, such as updates to the room's metadata, changes in the room's state,\n * or modifications to the list of available tracks. It serves as a general notification to the application that some aspect of the\n * room's configuration or status has changed, enabling the application to respond appropriately, such as updating the UI or querying\n * for new information to reflect the current state of the room.\n *\n * @type {string}\n * @see https://www.100ms.live/docs/react-native/v2/how-to-guides/listen-to-room-updates/event-listeners\n */\n ON_ROOM_UPDATE = 'ON_ROOM_UPDATE',\n\n /**\n * Event emitted when there is an update related to a peer in the room.\n *\n * This event is triggered whenever a peer's state changes within the room, such as when a peer's video or audio track is enabled or disabled,\n * or when a peer's metadata is updated. It provides a way for the application to react to changes in a peer's status, ensuring that the UI\n * and application state can be updated to reflect the current state of peers in the room.\n *\n * @type {string}\n * @see https://www.100ms.live/docs/react-native/v2/how-to-guides/listen-to-room-updates/event-listeners\n */\n ON_PEER_UPDATE = '3',\n\n /**\n * Event emitted when the list of peers in the room is updated.\n *\n * This event is triggered whenever there is a change in the list of peers present in the room, such as when a new peer joins,\n * an existing peer leaves. It allows the application to react to changes in the room's\n * participant list, enabling dynamic updates to the UI or other logic based on the current set of participants.\n *\n * @type {string}\n * @see https://www.100ms.live/docs/react-native/v2/how-to-guides/interact-with-room/peer/large-room\n */\n ON_PEER_LIST_UPDATED = 'ON_PEER_LIST_UPDATED',\n\n /**\n * Event emitted when there is an update related to a track in the room.\n *\n * This event is triggered whenever a track's state changes within the room, such as when a video or audio track is enabled or disabled,\n * or when a track's settings are modified. It provides a way for the application to react to changes in a track's status, ensuring that\n * the UI and application state can be updated to reflect the current state of tracks in the room.\n *\n * @type {string}\n * @see https://www.100ms.live/docs/react-native/v2/how-to-guides/listen-to-room-updates/event-listeners\n */\n ON_TRACK_UPDATE = 'ON_TRACK_UPDATE',\n\n /**\n * Event emitted when an error occurs.\n *\n * This event is triggered whenever the HMS SDK encounters an error during its operation. It could be due to network issues,\n * permissions being denied, or any other error that prevents the SDK from functioning as expected. Handling this event allows\n * the application to inform the user about the issue and possibly take corrective action or log the error for further analysis.\n *\n * @type {string}\n * @see https://www.100ms.live/docs/react-native/v2/how-to-guides/debugging/error-handling\n */\n ON_ERROR = 'ON_ERROR',\n\n /**\n * Event emitted when a message is received.\n *\n * This event is triggered whenever a message is sent by a peer in the room and received by the local user.\n * It is crucial for enabling real-time communication within the room, allowing participants to exchange text messages,\n * notifications, or commands. Handling this event is essential for applications that support chat or command-based interactions\n * among participants.\n *\n * @type {string}\n * @see https://www.100ms.live/docs/react-native/v2/how-to-guides/set-up-video-conferencing/chat\n */\n ON_MESSAGE = 'ON_MESSAGE',\n\n /**\n * Event emitted when there is an update on the current speaker.\n *\n * This event is triggered whenever the active speaker in the room changes, such as when a new participant starts speaking or the current speaker stops.\n * It allows the application to highlight the current speaker in the UI, enhancing the user experience by making it easier to follow the conversation flow.\n *\n * @type {string}\n * @see https://www.100ms.live/docs/react-native/v2/how-to-guides/set-up-video-conferencing/render-video/show-audio-level\n */\n ON_SPEAKER = 'ON_SPEAKER',\n\n /**\n * Event emitted when the SDK is attempting to reconnect to the room.\n *\n * This event is triggered when the connection to the room is lost, and the HMS SDK is trying to re-establish the connection.\n * It indicates that the SDK is in the process of reconnecting, allowing the application to notify users about the reconnection attempt\n * and possibly display a loading or waiting indicator. Handling this event is crucial for maintaining a smooth user experience during\n * network interruptions.\n *\n * @type {string}\n * @see https://www.100ms.live/docs/react-native/v2/how-to-guides/handle-interruptions/reconnection-handling\n */\n RECONNECTING = 'RECONNECTING',\n\n /**\n * Event emitted when the SDK has successfully reconnected to the room.\n *\n * This event signifies that after a disconnection, the HMS SDK has managed to re-establish the connection to the room successfully.\n * It is crucial for applications to handle this event to update the UI and inform the user that the connection has been restored,\n * ensuring a seamless experience. This event can trigger re-initialization of room-related functionalities or refreshes of the UI\n * to reflect the current state of the room.\n *\n * @type {string}\n * @see https://www.100ms.live/docs/react-native/v2/how-to-guides/handle-interruptions/reconnection-handling\n */\n RECONNECTED = 'RECONNECTED',\n\n /**\n * Event emitted when there is a request to change the role of a peer.\n *\n * This event is triggered whenever a request is made to change the role of a participant in the room, such as from a viewer to a speaker or vice versa.\n * Handling this event allows the application to manage user roles dynamically, ensuring that participants have the correct permissions for their intended\n * actions within the room. It is crucial for applications that implement role-based access control or need to change user permissions on the fly.\n *\n * @type {string}\n * @see https://www.100ms.live/docs/react-native/v2/how-to-guides/interact-with-room/peer/change-role\n */\n ON_ROLE_CHANGE_REQUEST = 'ON_ROLE_CHANGE_REQUEST',\n\n /**\n * Event emitted when there is a request to change the state of a track.\n *\n * This event is triggered whenever a request is made to change the state of a track within the room, such as enabling or disabling a video or audio track.\n * Handling this event allows the application to respond to changes in track states, ensuring that participants can control their audio and video streams\n * as needed. It is crucial for applications that allow users to manage their media streams dynamically during a session.\n *\n * @type {string}\n * @see https://www.100ms.live/docs/react-native/v2/how-to-guides/interact-with-room/track/remote-mute\n */\n ON_CHANGE_TRACK_STATE_REQUEST = 'ON_CHANGE_TRACK_STATE_REQUEST',\n\n /**\n * Event emitted when the local user is removed from the room.\n *\n * This event is triggered whenever the local user is explicitly removed from the room by an action from another participant with sufficient permissions or due to room policy violations. Handling this event is crucial for applications to gracefully disconnect the user from the session, possibly clear user-related data, and inform the user about the removal reason if applicable.\n *\n * @type {string}\n * @see https://www.100ms.live/docs/react-native/v2/how-to-guides/interact-with-room/room/end-room\n */\n ON_REMOVED_FROM_ROOM = 'ON_REMOVED_FROM_ROOM',\n\n /**\n * Event emitted when RTC stats are available.\n *\n * This event is triggered when real-time communication (RTC) statistics become available from the HMS SDK.\n * RTC stats provide detailed information about the performance and quality of the media streams in the session,\n * including metrics such as packet loss, jitter, round-trip time (RTT), and more. Handling this event allows\n * the application to monitor and react to the quality of the connection, potentially informing users about\n * the current call quality or troubleshooting issues in real-time.\n *\n * @type {string}\n * @see https://www.100ms.live/docs/react-native/v2/how-to-guides/measure-network-quality-and-performance/rtc-stats\n */\n ON_RTC_STATS = 'ON_RTC_STATS',\n\n /**\n * Event emitted when stats for the local audio track are available.\n *\n * This event is triggered when statistics related to the local user's audio track become available from the HMS SDK.\n * These statistics can include metrics such as round trip time, bitrate, and bytesSent, which are crucial for monitoring\n * the quality of the audio being transmitted. Handling this event allows the application to react to the audio quality,\n * potentially adjusting settings or notifying the user about issues in real-time.\n *\n * @type {string}\n * @see https://www.100ms.live/docs/react-native/v2/how-to-guides/measure-network-quality-and-performance/rtc-stats\n */\n ON_LOCAL_AUDIO_STATS = 'ON_LOCAL_AUDIO_STATS',\n\n /**\n * Event emitted when stats for the local video track are available.\n *\n * This event is triggered when statistics related to the local user's video track become available from the HMS SDK.\n * These statistics can include metrics such as frame rate, resolution, and bitrate, which are crucial for monitoring\n * the quality of the video being transmitted. Handling this event allows the application to react to the video quality,\n * potentially adjusting settings or notifying the user about issues in real-time.\n *\n * @type {string}\n * @see https://www.100ms.live/docs/react-native/v2/how-to-guides/measure-network-quality-and-performance/rtc-stats\n */\n ON_LOCAL_VIDEO_STATS = 'ON_LOCAL_VIDEO_STATS',\n\n /**\n * Event emitted when statistics for a remote audio track are available.\n *\n * This event is triggered when statistics related to an audio track from a remote user become available from the HMS SDK.\n * These statistics can include metrics such as bitrate, packet loss, and jitter, which are crucial for monitoring\n * the quality of the audio being received. Handling this event allows the application to react to the audio quality,\n * potentially adjusting settings or notifying the user about issues in real-time.\n *\n * @type {string}\n * @see https://www.100ms.live/docs/react-native/v2/how-to-guides/measure-network-quality-and-performance/rtc-stats\n */\n ON_REMOTE_AUDIO_STATS = 'ON_REMOTE_AUDIO_STATS',\n\n /**\n * Event emitted when statistics for a remote video track are available.\n *\n * This event is triggered when statistics related to a video track from a remote user become available from the HMS SDK.\n * These statistics can include metrics such as frame rate, resolution, bitrate, and packet loss, which are crucial for monitoring\n * the quality of the video being received. Handling this event allows the application to react to the video quality,\n * potentially adjusting settings or notifying the user about issues in real-time.\n *\n * @type {string}\n * @see https://www.100ms.live/docs/react-native/v2/how-to-guides/measure-network-quality-and-performance/rtc-stats\n */\n ON_REMOTE_VIDEO_STATS = 'ON_REMOTE_VIDEO_STATS',\n\n /**\n * Event emitted when the audio device has changed. Android only.\n *\n * This event is triggered whenever there is a change in the audio output device, such as switching from the built-in speaker to a Bluetooth headset.\n * Handling this event allows the application to update any UI elements or settings related to the current audio device, ensuring that the user is always aware of which device is being used for audio output.\n *\n * @type {string}\n * @see https://www.100ms.live/docs/react-native/v2/how-to-guides/configure-your-device/speaker/audio-output-routing\n */\n ON_AUDIO_DEVICE_CHANGED = 'ON_AUDIO_DEVICE_CHANGED',\n\n /**\n * Event emitted when the session store becomes available.\n *\n * This event is triggered when the session store, which may contain critical data for the ongoing session such as user tokens, room state, or other metadata, becomes available to the application.\n * Handling this event allows the application to perform actions that depend on session-specific data, such as initializing user interfaces or fetching additional room details.\n * It is crucial for applications that need to ensure all necessary data is loaded before proceeding with further operations.\n *\n * @type {string}\n * @see https://www.100ms.live/docs/react-native/v2/how-to-guides/interact-with-room/room/session-store\n */\n ON_SESSION_STORE_AVAILABLE = 'ON_SESSION_STORE_AVAILABLE',\n\n /**\n * Event emitted when the session store has changed.\n *\n * This event is triggered whenever there is a change in the session store, which may include updates to user tokens, room state, or other metadata critical for the ongoing session.\n * Handling this event allows the application to react to changes in session-specific data in real-time, ensuring that the application's state is always synchronized with the session store.\n * This is crucial for applications that rely on up-to-date session information for functionalities like UI updates, access control, and room management.\n *\n * @type {string}\n * @see https://www.100ms.live/docs/react-native/v2/how-to-guides/interact-with-room/room/session-store\n */\n ON_SESSION_STORE_CHANGED = 'ON_SESSION_STORE_CHANGED',\n\n /**\n * Event emitted when transcripts are available.\n *\n * This event is triggered when the HMS SDK has generated transcripts from the audio streams in the room.\n * It allows the application to receive real-time or post-processed text versions of spoken content, which can be used for\n * accessibility features, content analysis, or storing meeting minutes. The availability of this feature depends on the\n * HMS service configuration and may require additional setup or permissions.\n *\n * @type {string}\n * @see https://www.100ms.live/docs/react-native/v2/how-to-guides/extend-capabilities/live-captions\n */\n ON_TRANSCRIPTS = 'ON_TRANSCRIPTS',\n\n /**\n * Event emitted when the HMS SDK requests permissions from the user. Android only.\n *\n * This event is triggered whenever the application needs to request permissions from the user, such as access to the camera or microphone.\n * It is used in conjunction with the platform's permissions API to prompt the user for the necessary permissions and to inform the HMS SDK\n * of the user's response. This is crucial for features that require explicit user consent before they can be used.\n *\n * @type {string}\n */\n ON_PERMISSIONS_REQUESTED = 'ON_PERMISSIONS_REQUESTED',\n}\n"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AA3CA,IA4CYA,wBAAwB,GAAAC,OAAA,CAAAD,wBAAA,0BAAxBA,wBAAwB;EAAxBA,wBAAwB;EAAxBA,wBAAwB;EAAxBA,wBAAwB;EAAxBA,wBAAwB;EAAxBA,wBAAwB;EAAxBA,wBAAwB;EAAxBA,wBAAwB;EAAxBA,wBAAwB;EAAxBA,wBAAwB;EAAxBA,wBAAwB;EAAxBA,wBAAwB;EAAxBA,wBAAwB;EAAxBA,wBAAwB;EAAxBA,wBAAwB;EAAxBA,wBAAwB;EAAxBA,wBAAwB;EAAxBA,wBAAwB;EAAxBA,wBAAwB;EAAxBA,wBAAwB;EAAxBA,wBAAwB;EAAxBA,wBAAwB;EAAxBA,wBAAwB;EAAxBA,wBAAwB;EAAxBA,wBAAwB;EAAA,OAAxBA,wBAAwB;AAAA","ignoreList":[]}
|
|
@@ -4,12 +4,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.HMSVideoCodec = void 0;
|
|
7
|
-
let HMSVideoCodec = /*#__PURE__*/function (HMSVideoCodec) {
|
|
7
|
+
let HMSVideoCodec = exports.HMSVideoCodec = /*#__PURE__*/function (HMSVideoCodec) {
|
|
8
8
|
HMSVideoCodec["H264"] = "H264";
|
|
9
9
|
HMSVideoCodec["VP8"] = "VP8";
|
|
10
10
|
HMSVideoCodec["VP9"] = "VP9";
|
|
11
11
|
HMSVideoCodec["H265"] = "H265";
|
|
12
12
|
return HMSVideoCodec;
|
|
13
13
|
}({});
|
|
14
|
-
exports.HMSVideoCodec = HMSVideoCodec;
|
|
15
14
|
//# sourceMappingURL=HMSVideoCodec.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["HMSVideoCodec","exports"],"sources":["HMSVideoCodec.ts"],"sourcesContent":["export enum HMSVideoCodec {\n H264 = 'H264',\n VP8 = 'VP8',\n VP9 = 'VP9',\n H265 = 'H265',\n}\n"],"mappings":";;;;;;IAAYA,aAAa,0BAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAA,OAAbA,aAAa;AAAA
|
|
1
|
+
{"version":3,"names":["HMSVideoCodec","exports"],"sources":["HMSVideoCodec.ts"],"sourcesContent":["export enum HMSVideoCodec {\n H264 = 'H264',\n VP8 = 'VP8',\n VP9 = 'VP9',\n H265 = 'H265',\n}\n"],"mappings":";;;;;;IAAYA,aAAa,GAAAC,OAAA,CAAAD,aAAA,0BAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAA,OAAbA,aAAa;AAAA","ignoreList":[]}
|
|
@@ -4,9 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.HMSVideoResolution = void 0;
|
|
7
|
-
function _defineProperty(
|
|
8
|
-
function _toPropertyKey(
|
|
9
|
-
function _toPrimitive(
|
|
7
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
8
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
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 HMSVideoResolution {
|
|
11
11
|
constructor(params) {
|
|
12
12
|
_defineProperty(this, "height", void 0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["HMSVideoResolution","constructor","params","_defineProperty","height","width","exports"],"sources":["HMSVideoResolution.ts"],"sourcesContent":["export class HMSVideoResolution {\n height?: number;\n width?: number;\n\n constructor(params: { height?: number; width?: number }) {\n this.height = params.height;\n this.width = params.width;\n }\n}\n"],"mappings":";;;;;;;;;AAAO,MAAMA,kBAAkB,CAAC;EAI9BC,WAAWA,CAACC,MAA2C,EAAE;IAAAC,eAAA;IAAAA,eAAA;IACvD,IAAI,CAACC,MAAM,GAAGF,MAAM,CAACE,MAAM;IAC3B,IAAI,CAACC,KAAK,GAAGH,MAAM,CAACG,KAAK;EAC3B;AACF;AAACC,OAAA,CAAAN,kBAAA,GAAAA,kBAAA"}
|
|
1
|
+
{"version":3,"names":["HMSVideoResolution","constructor","params","_defineProperty","height","width","exports"],"sources":["HMSVideoResolution.ts"],"sourcesContent":["export class HMSVideoResolution {\n height?: number;\n width?: number;\n\n constructor(params: { height?: number; width?: number }) {\n this.height = params.height;\n this.width = params.width;\n }\n}\n"],"mappings":";;;;;;;;;AAAO,MAAMA,kBAAkB,CAAC;EAI9BC,WAAWA,CAACC,MAA2C,EAAE;IAAAC,eAAA;IAAAA,eAAA;IACvD,IAAI,CAACC,MAAM,GAAGF,MAAM,CAACE,MAAM;IAC3B,IAAI,CAACC,KAAK,GAAGH,MAAM,CAACG,KAAK;EAC3B;AACF;AAACC,OAAA,CAAAN,kBAAA,GAAAA,kBAAA","ignoreList":[]}
|
|
@@ -4,9 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.HMSVideoSettings = void 0;
|
|
7
|
-
function _defineProperty(
|
|
8
|
-
function _toPropertyKey(
|
|
9
|
-
function _toPrimitive(
|
|
7
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
8
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
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 HMSVideoSettings {
|
|
11
11
|
constructor(params) {
|
|
12
12
|
_defineProperty(this, "bitrate", void 0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["HMSVideoSettings","constructor","params","_defineProperty","bitrate","frameRate","width","height","codec","exports"],"sources":["HMSVideoSettings.ts"],"sourcesContent":["import type { HMSVideoCodec } from '..';\n\nexport class HMSVideoSettings {\n bitrate?: number;\n frameRate: number;\n width: number;\n height: number;\n codec: HMSVideoCodec;\n\n constructor(params: {\n bitrate?: number;\n frameRate: number;\n width: number;\n height: number;\n codec: HMSVideoCodec;\n }) {\n this.bitrate = params.bitrate;\n this.frameRate = params.frameRate;\n this.width = params.width;\n this.height = params.height;\n this.codec = params.codec;\n }\n}\n"],"mappings":";;;;;;;;;AAEO,MAAMA,gBAAgB,CAAC;EAO5BC,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,MAAM,GAAGL,MAAM,CAACK,MAAM;IAC3B,IAAI,CAACC,KAAK,GAAGN,MAAM,CAACM,KAAK;EAC3B;AACF;AAACC,OAAA,CAAAT,gBAAA,GAAAA,gBAAA"}
|
|
1
|
+
{"version":3,"names":["HMSVideoSettings","constructor","params","_defineProperty","bitrate","frameRate","width","height","codec","exports"],"sources":["HMSVideoSettings.ts"],"sourcesContent":["import type { HMSVideoCodec } from '..';\n\nexport class HMSVideoSettings {\n bitrate?: number;\n frameRate: number;\n width: number;\n height: number;\n codec: HMSVideoCodec;\n\n constructor(params: {\n bitrate?: number;\n frameRate: number;\n width: number;\n height: number;\n codec: HMSVideoCodec;\n }) {\n this.bitrate = params.bitrate;\n this.frameRate = params.frameRate;\n this.width = params.width;\n this.height = params.height;\n this.codec = params.codec;\n }\n}\n"],"mappings":";;;;;;;;;AAEO,MAAMA,gBAAgB,CAAC;EAO5BC,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,MAAM,GAAGL,MAAM,CAACK,MAAM;IAC3B,IAAI,CAACC,KAAK,GAAGN,MAAM,CAACM,KAAK;EAC3B;AACF;AAACC,OAAA,CAAAT,gBAAA,GAAAA,gBAAA","ignoreList":[]}
|
|
@@ -5,12 +5,29 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.HMSVideoTrack = void 0;
|
|
7
7
|
var _HMSTrack = require("./HMSTrack");
|
|
8
|
-
function _defineProperty(
|
|
9
|
-
function _toPropertyKey(
|
|
10
|
-
function _toPrimitive(
|
|
8
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
9
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
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
|
+
/**
|
|
12
|
+
* Represents a video track within the HMS (100ms) system.
|
|
13
|
+
*
|
|
14
|
+
* This class extends `HMSTrack` to provide functionalities specific to video tracks. It includes additional
|
|
15
|
+
* property `isDegraded` to indicate whether the video quality has been intentionally reduced, typically for
|
|
16
|
+
* performance reasons. The constructor allows for the initialization of the video track with various parameters
|
|
17
|
+
* such as track ID, source, description, mute state, degradation state, ID, and type. These parameters provide
|
|
18
|
+
* detailed information about the video track and its characteristics.
|
|
19
|
+
*
|
|
20
|
+
* @extends HMSTrack
|
|
21
|
+
*
|
|
22
|
+
* @see https://www.100ms.live/docs/react-native/v2/how-to-guides/set-up-video-conferencing/render-video/overview
|
|
23
|
+
*/
|
|
11
24
|
class HMSVideoTrack extends _HMSTrack.HMSTrack {
|
|
12
25
|
constructor(params) {
|
|
13
26
|
super(params);
|
|
27
|
+
/**
|
|
28
|
+
* Indicates whether the video quality of the track is degraded.
|
|
29
|
+
* @type {boolean | undefined}
|
|
30
|
+
*/
|
|
14
31
|
_defineProperty(this, "isDegraded", void 0);
|
|
15
32
|
this.isDegraded = params.isDegraded;
|
|
16
33
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_HMSTrack","require","_defineProperty","
|
|
1
|
+
{"version":3,"names":["_HMSTrack","require","_defineProperty","e","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","HMSVideoTrack","HMSTrack","constructor","params","isDegraded","exports"],"sources":["HMSVideoTrack.ts"],"sourcesContent":["import { HMSTrack } from './HMSTrack';\nimport type { HMSTrackSource } from './HMSTrackSource';\nimport type { HMSTrackType } from './HMSTrackType';\n\n/**\n * Represents a video track within the HMS (100ms) system.\n *\n * This class extends `HMSTrack` to provide functionalities specific to video tracks. It includes additional\n * property `isDegraded` to indicate whether the video quality has been intentionally reduced, typically for\n * performance reasons. The constructor allows for the initialization of the video track with various parameters\n * such as track ID, source, description, mute state, degradation state, ID, and type. These parameters provide\n * detailed information about the video track and its characteristics.\n *\n * @extends HMSTrack\n *\n * @see https://www.100ms.live/docs/react-native/v2/how-to-guides/set-up-video-conferencing/render-video/overview\n */\nexport class HMSVideoTrack extends HMSTrack {\n /**\n * Indicates whether the video quality of the track is degraded.\n * @type {boolean | undefined}\n */\n isDegraded?: boolean;\n\n constructor(params: {\n trackId: string;\n source?: HMSTrackSource;\n trackDescription?: string;\n isMute?: boolean;\n id: string;\n isDegraded?: boolean;\n type?: HMSTrackType;\n }) {\n super(params);\n this.isDegraded = params.isDegraded;\n }\n}\n"],"mappings":";;;;;;AAAA,IAAAA,SAAA,GAAAC,OAAA;AAAsC,SAAAC,gBAAAC,CAAA,EAAAC,CAAA,EAAAC,CAAA,YAAAD,CAAA,GAAAE,cAAA,CAAAF,CAAA,MAAAD,CAAA,GAAAI,MAAA,CAAAC,cAAA,CAAAL,CAAA,EAAAC,CAAA,IAAAK,KAAA,EAAAJ,CAAA,EAAAK,UAAA,MAAAC,YAAA,MAAAC,QAAA,UAAAT,CAAA,CAAAC,CAAA,IAAAC,CAAA,EAAAF,CAAA;AAAA,SAAAG,eAAAD,CAAA,QAAAQ,CAAA,GAAAC,YAAA,CAAAT,CAAA,uCAAAQ,CAAA,GAAAA,CAAA,GAAAA,CAAA;AAAA,SAAAC,aAAAT,CAAA,EAAAD,CAAA,2BAAAC,CAAA,KAAAA,CAAA,SAAAA,CAAA,MAAAF,CAAA,GAAAE,CAAA,CAAAU,MAAA,CAAAC,WAAA,kBAAAb,CAAA,QAAAU,CAAA,GAAAV,CAAA,CAAAc,IAAA,CAAAZ,CAAA,EAAAD,CAAA,uCAAAS,CAAA,SAAAA,CAAA,YAAAK,SAAA,yEAAAd,CAAA,GAAAe,MAAA,GAAAC,MAAA,EAAAf,CAAA;AAItC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMgB,aAAa,SAASC,kBAAQ,CAAC;EAO1CC,WAAWA,CAACC,MAQX,EAAE;IACD,KAAK,CAACA,MAAM,CAAC;IAff;AACF;AACA;AACA;IAHEtB,eAAA;IAgBE,IAAI,CAACuB,UAAU,GAAGD,MAAM,CAACC,UAAU;EACrC;AACF;AAACC,OAAA,CAAAL,aAAA,GAAAA,aAAA","ignoreList":[]}
|
|
@@ -4,17 +4,25 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.HMSVideoTrackSettings = void 0;
|
|
7
|
-
function _defineProperty(
|
|
8
|
-
function _toPropertyKey(
|
|
9
|
-
function _toPrimitive(
|
|
7
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
8
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
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
|
/**
|
|
11
|
-
*
|
|
11
|
+
* Represents the settings for a video track in a HMS (100ms) application.
|
|
12
12
|
*
|
|
13
|
-
*
|
|
13
|
+
* This class encapsulates the configurations for video tracks that can be used
|
|
14
|
+
* in a HMS session.
|
|
15
|
+
*
|
|
16
|
+
* @property {HMSSimulcastLayerSettings[]} simulcastSettings - Optional simulcast settings.
|
|
17
|
+
* @property {HMSTrackSettingsInitState} initialState - Optional initial state for the track.
|
|
18
|
+
* @property {HMSCameraFacing} cameraFacing - Optional camera facing for the track.
|
|
19
|
+
* @property {boolean} forceSoftwareDecoder - Optional flag to force software decoder.
|
|
20
|
+
* @property {boolean} disableAutoResize - Optional flag to disable auto resize.
|
|
21
|
+
* @property {HMSVirtualBackgroundPlugin} videoPlugin - Optional video plugin settings.
|
|
22
|
+
*
|
|
23
|
+
* @see https://www.100ms.live/docs/react-native/v2/how-to-guides/interact-with-room/track/track-settings
|
|
14
24
|
*/
|
|
15
25
|
class HMSVideoTrackSettings {
|
|
16
|
-
// android only
|
|
17
|
-
|
|
18
26
|
constructor(params) {
|
|
19
27
|
_defineProperty(this, "simulcastSettings", void 0);
|
|
20
28
|
_defineProperty(this, "initialState", void 0);
|
|
@@ -22,11 +30,14 @@ class HMSVideoTrackSettings {
|
|
|
22
30
|
_defineProperty(this, "forceSoftwareDecoder", void 0);
|
|
23
31
|
// android only
|
|
24
32
|
_defineProperty(this, "disableAutoResize", void 0);
|
|
33
|
+
// android only
|
|
34
|
+
_defineProperty(this, "videoPlugin", void 0);
|
|
25
35
|
this.simulcastSettings = params.simulcastSettings;
|
|
26
36
|
this.initialState = params.initialState;
|
|
27
37
|
this.cameraFacing = params.cameraFacing;
|
|
28
38
|
this.forceSoftwareDecoder = params.forceSoftwareDecoder;
|
|
29
39
|
this.disableAutoResize = params.disableAutoResize;
|
|
40
|
+
this.videoPlugin = params.videoPlugin;
|
|
30
41
|
}
|
|
31
42
|
}
|
|
32
43
|
exports.HMSVideoTrackSettings = HMSVideoTrackSettings;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["HMSVideoTrackSettings","constructor","params","_defineProperty","simulcastSettings","initialState","cameraFacing","forceSoftwareDecoder","disableAutoResize","exports"],"sources":["HMSVideoTrackSettings.ts"],"sourcesContent":["import type { HMSSimulcastLayerSettings } from './HMSSimulcastLayerSettings';\nimport type { HMSCameraFacing } from './HMSCameraFacing';\nimport type { HMSTrackSettingsInitState } from './HMSTrackSettingsInitState';\n\n/**\n *
|
|
1
|
+
{"version":3,"names":["HMSVideoTrackSettings","constructor","params","_defineProperty","simulcastSettings","initialState","cameraFacing","forceSoftwareDecoder","disableAutoResize","videoPlugin","exports"],"sources":["HMSVideoTrackSettings.ts"],"sourcesContent":["import type { ImageURISource, ImageRequireSource } from 'react-native';\nimport type { HMSSimulcastLayerSettings } from './HMSSimulcastLayerSettings';\nimport type { HMSCameraFacing } from './HMSCameraFacing';\nimport type { HMSTrackSettingsInitState } from './HMSTrackSettingsInitState';\n\nexport declare class HMSVirtualBackgroundPlugin {\n static NAME: string;\n constructor();\n enable(): Promise<boolean>;\n disable(): Promise<boolean>;\n setBlur(blurRadius: number): Promise<boolean>;\n setBackground(\n backgroundImage: ImageURISource | ImageRequireSource\n ): Promise<boolean>;\n}\n\n/**\n * Represents the settings for a video track in a HMS (100ms) application.\n *\n * This class encapsulates the configurations for video tracks that can be used\n * in a HMS session.\n *\n * @property {HMSSimulcastLayerSettings[]} simulcastSettings - Optional simulcast settings.\n * @property {HMSTrackSettingsInitState} initialState - Optional initial state for the track.\n * @property {HMSCameraFacing} cameraFacing - Optional camera facing for the track.\n * @property {boolean} forceSoftwareDecoder - Optional flag to force software decoder.\n * @property {boolean} disableAutoResize - Optional flag to disable auto resize.\n * @property {HMSVirtualBackgroundPlugin} videoPlugin - Optional video plugin settings.\n *\n * @see https://www.100ms.live/docs/react-native/v2/how-to-guides/interact-with-room/track/track-settings\n */\nexport class HMSVideoTrackSettings {\n readonly simulcastSettings?: HMSSimulcastLayerSettings[];\n initialState?: HMSTrackSettingsInitState;\n cameraFacing?: HMSCameraFacing;\n forceSoftwareDecoder?: boolean; // android only\n disableAutoResize?: boolean; // android only\n videoPlugin?: HMSVirtualBackgroundPlugin;\n\n constructor(params: {\n simulcastSettings?: HMSSimulcastLayerSettings[];\n initialState?: HMSTrackSettingsInitState;\n cameraFacing?: HMSCameraFacing;\n forceSoftwareDecoder?: boolean;\n disableAutoResize?: boolean;\n videoPlugin?: HMSVirtualBackgroundPlugin;\n }) {\n this.simulcastSettings = params.simulcastSettings;\n this.initialState = params.initialState;\n this.cameraFacing = params.cameraFacing;\n this.forceSoftwareDecoder = params.forceSoftwareDecoder;\n this.disableAutoResize = params.disableAutoResize;\n this.videoPlugin = params.videoPlugin;\n }\n}\n"],"mappings":";;;;;;;;;AAgBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMA,qBAAqB,CAAC;EAQjCC,WAAWA,CAACC,MAOX,EAAE;IAAAC,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAX6B;IAAAA,eAAA;IACH;IAAAA,eAAA;IAW3B,IAAI,CAACC,iBAAiB,GAAGF,MAAM,CAACE,iBAAiB;IACjD,IAAI,CAACC,YAAY,GAAGH,MAAM,CAACG,YAAY;IACvC,IAAI,CAACC,YAAY,GAAGJ,MAAM,CAACI,YAAY;IACvC,IAAI,CAACC,oBAAoB,GAAGL,MAAM,CAACK,oBAAoB;IACvD,IAAI,CAACC,iBAAiB,GAAGN,MAAM,CAACM,iBAAiB;IACjD,IAAI,CAACC,WAAW,GAAGP,MAAM,CAACO,WAAW;EACvC;AACF;AAACC,OAAA,CAAAV,qBAAA,GAAAA,qBAAA","ignoreList":[]}
|
|
@@ -4,11 +4,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.HMSVideoViewMode = void 0;
|
|
7
|
-
let HMSVideoViewMode = /*#__PURE__*/function (HMSVideoViewMode) {
|
|
7
|
+
let HMSVideoViewMode = exports.HMSVideoViewMode = /*#__PURE__*/function (HMSVideoViewMode) {
|
|
8
8
|
HMSVideoViewMode["ASPECT_FILL"] = "ASPECT_FILL";
|
|
9
9
|
HMSVideoViewMode["ASPECT_FIT"] = "ASPECT_FIT";
|
|
10
10
|
HMSVideoViewMode["ASPECT_BALANCED"] = "ASPECT_BALANCED";
|
|
11
11
|
return HMSVideoViewMode;
|
|
12
12
|
}({});
|
|
13
|
-
exports.HMSVideoViewMode = HMSVideoViewMode;
|
|
14
13
|
//# sourceMappingURL=HMSVideoViewMode.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["HMSVideoViewMode","exports"],"sources":["HMSVideoViewMode.ts"],"sourcesContent":["export enum HMSVideoViewMode {\n ASPECT_FILL = 'ASPECT_FILL',\n ASPECT_FIT = 'ASPECT_FIT',\n ASPECT_BALANCED = 'ASPECT_BALANCED',\n}\n"],"mappings":";;;;;;IAAYA,gBAAgB,0BAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAA,OAAhBA,gBAAgB;AAAA
|
|
1
|
+
{"version":3,"names":["HMSVideoViewMode","exports"],"sources":["HMSVideoViewMode.ts"],"sourcesContent":["export enum HMSVideoViewMode {\n ASPECT_FILL = 'ASPECT_FILL',\n ASPECT_FIT = 'ASPECT_FIT',\n ASPECT_BALANCED = 'ASPECT_BALANCED',\n}\n"],"mappings":";;;;;;IAAYA,gBAAgB,GAAAC,OAAA,CAAAD,gBAAA,0BAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAA,OAAhBA,gBAAgB;AAAA","ignoreList":[]}
|
|
@@ -6,14 +6,29 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.HmsViewComponent = void 0;
|
|
7
7
|
var _react = _interopRequireWildcard(require("react"));
|
|
8
8
|
var _reactNative = require("react-native");
|
|
9
|
+
var _HMSViewNativeComponent = _interopRequireWildcard(require("../specs/HMSViewNativeComponent"));
|
|
9
10
|
var _HMSConstants = require("./HMSConstants");
|
|
10
11
|
var _HMSVideoViewMode = require("./HMSVideoViewMode");
|
|
11
|
-
|
|
12
|
-
function _interopRequireWildcard(
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
12
|
+
var _hmsviews = require("../hooks/hmsviews");
|
|
13
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
14
|
+
/**
|
|
15
|
+
* Defines the properties for the `HmsViewComponent`.
|
|
16
|
+
*
|
|
17
|
+
* This interface outlines the props that can be passed to the `HmsViewComponent` to configure its behavior and appearance.
|
|
18
|
+
*
|
|
19
|
+
* @interface HmsComponentProps
|
|
20
|
+
* @property {string} trackId - The unique identifier for the track to be displayed.
|
|
21
|
+
* @property {ViewStyle} [style] - Optional. Custom styles to apply to the view.
|
|
22
|
+
* @property {boolean} [mirror] - Optional. If true, the video will be mirrored. This is commonly used for local video tracks.
|
|
23
|
+
* @property {boolean} [autoSimulcast] - Optional. Enables automatic simulcast layer switching based on network conditions, if supported.
|
|
24
|
+
* @property {HMSVideoViewMode} [scaleType] - Optional. Determines how the video fits within the bounds of the view (e.g., aspect fill, aspect fit).
|
|
25
|
+
* @property {boolean} [setZOrderMediaOverlay] - Optional. When true, the video view will be rendered above the regular view hierarchy.
|
|
26
|
+
* @property {string} id - The identifier for the `HmsViewComponent` instance.
|
|
27
|
+
*
|
|
28
|
+
* @see {https://www.100ms.live/docs/react-native/v2/how-to-guides/set-up-video-conferencing/render-video/overview}
|
|
29
|
+
*/
|
|
30
|
+
|
|
31
|
+
const HmsViewComponent = exports.HmsViewComponent = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
|
|
17
32
|
const {
|
|
18
33
|
trackId,
|
|
19
34
|
style = styles.hmsView,
|
|
@@ -25,56 +40,76 @@ const HmsViewComponent = /*#__PURE__*/_react.default.forwardRef((props, ref) =>
|
|
|
25
40
|
} = props;
|
|
26
41
|
const hmsViewRef = (0, _react.useRef)();
|
|
27
42
|
const [applyStyles_ANDROID, setApplyStyles_ANDROID] = (0, _react.useState)(false);
|
|
28
|
-
|
|
43
|
+
// Memoized so the object reference is stable across renders unless one
|
|
44
|
+
// of the inputs actually changes. Fabric diffs view props by reference
|
|
45
|
+
// before doing a deep compare — a fresh `{...}` on every render would
|
|
46
|
+
// trigger redundant native prop updates.
|
|
47
|
+
const data = (0, _react.useMemo)(() => ({
|
|
29
48
|
trackId,
|
|
30
49
|
id,
|
|
31
50
|
mirror,
|
|
32
51
|
scaleType
|
|
33
|
-
};
|
|
52
|
+
}), [trackId, id, mirror, scaleType]);
|
|
53
|
+
|
|
54
|
+
// Per-instance request/response state for the `capture` imperative.
|
|
55
|
+
// Each `<HmsView />` gets its own counter + pending-promise map so:
|
|
56
|
+
// - requestIds can't collide across multiple HmsView instances
|
|
57
|
+
// - pending promises are scoped to this view and cleaned up when
|
|
58
|
+
// it unmounts (see the useEffect below)
|
|
59
|
+
const nextRequestId = (0, _react.useRef)(1);
|
|
60
|
+
const requestMap = (0, _react.useMemo)(() => new Map(), []);
|
|
34
61
|
|
|
35
62
|
/**
|
|
36
63
|
* This method is passed to `onChange` prop of `HmsView` Native Component.
|
|
37
64
|
* It is invoked when `HmsView` emits 'topChange' event.
|
|
38
65
|
*/
|
|
39
|
-
const onChange = (
|
|
66
|
+
const onChange = ({
|
|
67
|
+
nativeEvent
|
|
68
|
+
}) => {
|
|
69
|
+
const {
|
|
70
|
+
event,
|
|
71
|
+
data
|
|
72
|
+
} = nativeEvent;
|
|
73
|
+
setApplyStyles_ANDROID(true);
|
|
74
|
+
if (event === 'ON_RESOLUTION_CHANGE_EVENT') {
|
|
75
|
+
(0, _hmsviews.setHmsViewsResolutionsState)(trackId, data);
|
|
76
|
+
}
|
|
77
|
+
};
|
|
40
78
|
|
|
41
79
|
/**
|
|
42
80
|
* This method is passed to `onDataReturned` prop of `HmsView` Native Component.
|
|
43
81
|
* It is invoked when `HmsView` emits 'captureFrame' event.
|
|
44
82
|
*/
|
|
45
83
|
const _onDataReturned = event => {
|
|
46
|
-
|
|
47
|
-
let {
|
|
84
|
+
const {
|
|
48
85
|
requestId,
|
|
49
86
|
result,
|
|
50
87
|
error
|
|
51
88
|
} = event.nativeEvent;
|
|
52
|
-
|
|
53
|
-
|
|
89
|
+
const promise = requestMap.get(requestId);
|
|
90
|
+
if (!promise) {
|
|
91
|
+
// No pending request — typically a late event after unmount/cleanup
|
|
92
|
+
// rejected it, or a stale requestId from a previous mount.
|
|
93
|
+
return;
|
|
94
|
+
}
|
|
54
95
|
if (result) {
|
|
55
|
-
// If it was successful, we resolve the promise.
|
|
56
96
|
promise.resolve(result);
|
|
57
97
|
} else {
|
|
58
|
-
// Otherwise, we reject it.
|
|
59
98
|
promise.reject(error);
|
|
60
99
|
}
|
|
61
|
-
|
|
62
|
-
_requestMap.delete(requestId);
|
|
100
|
+
requestMap.delete(requestId);
|
|
63
101
|
};
|
|
64
102
|
const capture = async () => {
|
|
65
|
-
const
|
|
66
|
-
|
|
67
|
-
let requestMap = _requestMap;
|
|
68
|
-
|
|
69
|
-
// We create a promise here that will be resolved once `_onRequestDone` is
|
|
70
|
-
// called.
|
|
71
|
-
let promise = new Promise(function (resolve, reject) {
|
|
103
|
+
const requestId = nextRequestId.current++;
|
|
104
|
+
const promise = new Promise((resolve, reject) => {
|
|
72
105
|
requestMap.set(requestId, {
|
|
73
106
|
resolve,
|
|
74
107
|
reject
|
|
75
108
|
});
|
|
76
109
|
});
|
|
77
|
-
|
|
110
|
+
if (hmsViewRef.current) {
|
|
111
|
+
_HMSViewNativeComponent.Commands.capture(hmsViewRef.current, requestId);
|
|
112
|
+
}
|
|
78
113
|
return promise;
|
|
79
114
|
};
|
|
80
115
|
(0, _react.useImperativeHandle)(ref, () => {
|
|
@@ -82,9 +117,24 @@ const HmsViewComponent = /*#__PURE__*/_react.default.forwardRef((props, ref) =>
|
|
|
82
117
|
capture
|
|
83
118
|
};
|
|
84
119
|
});
|
|
85
|
-
|
|
120
|
+
|
|
121
|
+
// Reject any in-flight capture promises on unmount. Under bridgeless
|
|
122
|
+
// mode the native side may not be able to deliver the captureFrame
|
|
123
|
+
// event back (event dispatcher returns null when the React tag is
|
|
124
|
+
// gone), which would leave promises hanging in the map forever.
|
|
125
|
+
(0, _react.useEffect)(() => {
|
|
126
|
+
return () => {
|
|
127
|
+
requestMap.forEach(({
|
|
128
|
+
reject
|
|
129
|
+
}) => {
|
|
130
|
+
reject(new Error('HmsView unmounted before capture completed'));
|
|
131
|
+
});
|
|
132
|
+
requestMap.clear();
|
|
133
|
+
};
|
|
134
|
+
}, [requestMap]);
|
|
135
|
+
return /*#__PURE__*/_react.default.createElement(_HMSViewNativeComponent.default, {
|
|
86
136
|
ref: hmsViewRef,
|
|
87
|
-
|
|
137
|
+
onResolutionChange: onChange,
|
|
88
138
|
data: data,
|
|
89
139
|
style: _reactNative.Platform.OS === 'android' ? applyStyles_ANDROID ? style : {} : style,
|
|
90
140
|
autoSimulcast: autoSimulcast,
|
|
@@ -93,7 +143,6 @@ const HmsViewComponent = /*#__PURE__*/_react.default.forwardRef((props, ref) =>
|
|
|
93
143
|
onDataReturned: _onDataReturned
|
|
94
144
|
});
|
|
95
145
|
});
|
|
96
|
-
exports.HmsViewComponent = HmsViewComponent;
|
|
97
146
|
const styles = _reactNative.StyleSheet.create({
|
|
98
147
|
hmsView: {
|
|
99
148
|
flex: 1
|