@100mslive/react-native-hms 0.9.93 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +54 -13
- package/android/.gradle/6.9/fileHashes/fileHashes.bin +0 -0
- package/android/.gradle/6.9/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- 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/.idea/jarRepositories.xml +10 -0
- package/android/.idea/libraries/Gradle__androidx_tracing_tracing_1_1_0_aar.xml +13 -0
- package/android/.idea/libraries/Gradle__com_facebook_fbjni_fbjni_0_3_0_aar.xml +14 -0
- package/android/.idea/libraries/Gradle__com_facebook_react_react_native_0_71_0_rc_0_debug_aar.xml +14 -0
- package/android/.idea/libraries/Gradle__com_facebook_soloader_annotation_0_10_4.xml +13 -0
- package/android/.idea/libraries/Gradle__com_facebook_soloader_nativeloader_0_10_4.xml +13 -0
- package/android/.idea/libraries/Gradle__com_facebook_soloader_soloader_0_10_4_aar.xml +14 -0
- package/android/.idea/libraries/Gradle__com_github_100mslive_android_sdk_lib_2_5_1_aar.xml +10 -0
- package/android/.idea/libraries/Gradle__com_github_100mslive_webrtc_m104_hms_1_3_aar.xml +10 -0
- package/android/.idea/modules/android.androidTest.iml +35 -33
- package/android/.idea/modules/android.main.iml +36 -33
- package/android/.idea/modules/android.unitTest.iml +35 -33
- package/android/.idea/sonarlint/issuestore/3/c/3c46088b6add3088181589d8ed726652742b6221 +5 -0
- package/android/.idea/sonarlint/issuestore/a/8/a8c9f5ddd88723818e51ae3cf8693d02355a8691 +0 -0
- package/android/.idea/sonarlint/issuestore/index.pb +5 -1
- package/android/build.gradle +12 -10
- package/android/src/main/java/com/reactnativehmssdk/HMSDecoder.kt +8 -25
- package/android/src/main/java/com/reactnativehmssdk/HMSHelper.kt +119 -89
- package/android/src/main/java/com/reactnativehmssdk/HMSManager.kt +196 -0
- package/android/src/main/java/com/reactnativehmssdk/HMSRNSDK.kt +99 -40
- package/android/src/main/java/com/reactnativehmssdk/HMSView.kt +1 -1
- package/ios/HMSDecoder.swift +17 -15
- package/ios/HMSHelper.swift +52 -22
- package/ios/HMSManager.m +7 -0
- package/ios/HMSManager.swift +62 -14
- package/ios/HMSRNSDK.swift +71 -30
- package/ios/Hmssdk.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
- package/ios/Hmssdk.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
- package/ios/Hmssdk.xcodeproj/project.xcworkspace/xcuserdata/yogesh.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/ios/Hmssdk.xcodeproj/xcuserdata/yogesh.xcuserdatad/xcschemes/xcschememanagement.plist +14 -0
- package/lib/commonjs/classes/HMSAudioCodec.js +0 -1
- package/lib/commonjs/classes/HMSAudioCodec.js.map +1 -1
- package/lib/commonjs/classes/HMSAudioDevice.js +0 -1
- package/lib/commonjs/classes/HMSAudioDevice.js.map +1 -1
- package/lib/commonjs/classes/HMSAudioFilePlayerNode.js +0 -14
- package/lib/commonjs/classes/HMSAudioFilePlayerNode.js.map +1 -1
- package/lib/commonjs/classes/HMSAudioMixerSource.js +3 -7
- package/lib/commonjs/classes/HMSAudioMixerSource.js.map +1 -1
- package/lib/commonjs/classes/HMSAudioMixingMode.js +0 -1
- package/lib/commonjs/classes/HMSAudioMixingMode.js.map +1 -1
- package/lib/commonjs/classes/HMSAudioMode.js +0 -1
- package/lib/commonjs/classes/HMSAudioMode.js.map +1 -1
- package/lib/commonjs/classes/HMSAudioNode.js +3 -8
- package/lib/commonjs/classes/HMSAudioNode.js.map +1 -1
- package/lib/commonjs/classes/HMSAudioSettings.js +3 -7
- package/lib/commonjs/classes/HMSAudioSettings.js.map +1 -1
- package/lib/commonjs/classes/HMSAudioTrack.js +0 -4
- package/lib/commonjs/classes/HMSAudioTrack.js.map +1 -1
- package/lib/commonjs/classes/HMSAudioTrackSettings.js +9 -17
- package/lib/commonjs/classes/HMSAudioTrackSettings.js.map +1 -1
- package/lib/commonjs/classes/HMSBrowserRecordingState.js +3 -9
- package/lib/commonjs/classes/HMSBrowserRecordingState.js.map +1 -1
- package/lib/commonjs/classes/HMSCameraFacing.js +0 -1
- package/lib/commonjs/classes/HMSCameraFacing.js.map +1 -1
- package/lib/commonjs/classes/HMSChangeTrackStateRequest.js +3 -8
- package/lib/commonjs/classes/HMSChangeTrackStateRequest.js.map +1 -1
- package/lib/commonjs/classes/HMSConfig.js +3 -10
- package/lib/commonjs/classes/HMSConfig.js.map +1 -1
- package/lib/commonjs/classes/HMSEncoder.js +12 -86
- package/lib/commonjs/classes/HMSEncoder.js.map +1 -1
- package/lib/commonjs/classes/HMSException.js +5 -12
- package/lib/commonjs/classes/HMSException.js.map +1 -1
- package/lib/commonjs/classes/HMSHLSConfig.js +3 -7
- package/lib/commonjs/classes/HMSHLSConfig.js.map +1 -1
- package/lib/commonjs/classes/HMSHLSMeetingURLVariant.js +3 -7
- package/lib/commonjs/classes/HMSHLSMeetingURLVariant.js.map +1 -1
- package/lib/commonjs/classes/HMSHLSRecordingConfig.js +3 -7
- package/lib/commonjs/classes/HMSHLSRecordingConfig.js.map +1 -1
- package/lib/commonjs/classes/HMSHLSRecordingState.js +3 -9
- package/lib/commonjs/classes/HMSHLSRecordingState.js.map +1 -1
- package/lib/commonjs/classes/HMSHLSStreamingState.js +3 -7
- package/lib/commonjs/classes/HMSHLSStreamingState.js.map +1 -1
- package/lib/commonjs/classes/HMSHLSVariant.js +3 -9
- package/lib/commonjs/classes/HMSHLSVariant.js.map +1 -1
- package/lib/commonjs/classes/HMSHelper.js +0 -3
- package/lib/commonjs/classes/HMSHelper.js.map +1 -1
- package/lib/commonjs/classes/HMSLocalAudioStats.js +3 -8
- package/lib/commonjs/classes/HMSLocalAudioStats.js.map +1 -1
- package/lib/commonjs/classes/HMSLocalAudioTrack.js +3 -16
- package/lib/commonjs/classes/HMSLocalAudioTrack.js.map +1 -1
- package/lib/commonjs/classes/HMSLocalPeer.js +3 -15
- package/lib/commonjs/classes/HMSLocalPeer.js.map +1 -1
- package/lib/commonjs/classes/HMSLocalVideoStats.js +3 -10
- package/lib/commonjs/classes/HMSLocalVideoStats.js.map +1 -1
- package/lib/commonjs/classes/HMSLocalVideoTrack.js +3 -16
- package/lib/commonjs/classes/HMSLocalVideoTrack.js.map +1 -1
- package/lib/commonjs/classes/HMSLogAlarmManager.js +14 -0
- package/lib/commonjs/classes/HMSLogAlarmManager.js.map +1 -0
- package/lib/commonjs/classes/HMSLogLevel.js +0 -1
- package/lib/commonjs/classes/HMSLogLevel.js.map +1 -1
- package/lib/commonjs/classes/HMSLogSettings.js +21 -0
- package/lib/commonjs/classes/HMSLogSettings.js.map +1 -0
- package/lib/commonjs/classes/HMSLogger.js +3 -31
- package/lib/commonjs/classes/HMSLogger.js.map +1 -1
- package/lib/commonjs/classes/HMSMessage.js +4 -10
- package/lib/commonjs/classes/HMSMessage.js.map +1 -1
- package/lib/commonjs/classes/HMSMessageRecipient.js +3 -8
- package/lib/commonjs/classes/HMSMessageRecipient.js.map +1 -1
- package/lib/commonjs/classes/HMSMessageRecipientType.js +0 -1
- package/lib/commonjs/classes/HMSMessageRecipientType.js.map +1 -1
- package/lib/commonjs/classes/HMSMessageType.js +13 -0
- package/lib/commonjs/classes/HMSMessageType.js.map +1 -0
- package/lib/commonjs/classes/HMSMicNode.js +0 -7
- package/lib/commonjs/classes/HMSMicNode.js.map +1 -1
- package/lib/commonjs/classes/HMSNetworkQuality.js +3 -6
- package/lib/commonjs/classes/HMSNetworkQuality.js.map +1 -1
- package/lib/commonjs/classes/HMSPeer.js +3 -16
- package/lib/commonjs/classes/HMSPeer.js.map +1 -1
- package/lib/commonjs/classes/HMSPeerUpdate.js +0 -1
- package/lib/commonjs/classes/HMSPeerUpdate.js.map +1 -1
- package/lib/commonjs/classes/HMSPermissions.js +3 -13
- package/lib/commonjs/classes/HMSPermissions.js.map +1 -1
- package/lib/commonjs/classes/HMSPublishSettings.js +3 -12
- package/lib/commonjs/classes/HMSPublishSettings.js.map +1 -1
- package/lib/commonjs/classes/HMSRTCStats.js +3 -12
- package/lib/commonjs/classes/HMSRTCStats.js.map +1 -1
- package/lib/commonjs/classes/HMSRTCStatsReport.js +3 -8
- package/lib/commonjs/classes/HMSRTCStatsReport.js.map +1 -1
- package/lib/commonjs/classes/HMSRTMPConfig.js +3 -9
- package/lib/commonjs/classes/HMSRTMPConfig.js.map +1 -1
- package/lib/commonjs/classes/HMSRemoteAudioStats.js +3 -10
- package/lib/commonjs/classes/HMSRemoteAudioStats.js.map +1 -1
- package/lib/commonjs/classes/HMSRemoteAudioTrack.js +3 -11
- package/lib/commonjs/classes/HMSRemoteAudioTrack.js.map +1 -1
- package/lib/commonjs/classes/HMSRemotePeer.js +3 -15
- package/lib/commonjs/classes/HMSRemotePeer.js.map +1 -1
- package/lib/commonjs/classes/HMSRemoteVideoStats.js +3 -12
- package/lib/commonjs/classes/HMSRemoteVideoStats.js.map +1 -1
- package/lib/commonjs/classes/HMSRemoteVideoTrack.js +3 -13
- package/lib/commonjs/classes/HMSRemoteVideoTrack.js.map +1 -1
- package/lib/commonjs/classes/HMSRole.js +3 -13
- package/lib/commonjs/classes/HMSRole.js.map +1 -1
- package/lib/commonjs/classes/HMSRoleChangeRequest.js +3 -7
- package/lib/commonjs/classes/HMSRoleChangeRequest.js.map +1 -1
- package/lib/commonjs/classes/HMSRoom.js +5 -16
- package/lib/commonjs/classes/HMSRoom.js.map +1 -1
- package/lib/commonjs/classes/HMSRoomUpdate.js +0 -1
- package/lib/commonjs/classes/HMSRoomUpdate.js.map +1 -1
- package/lib/commonjs/classes/HMSRtmpStreamingState.js +3 -9
- package/lib/commonjs/classes/HMSRtmpStreamingState.js.map +1 -1
- package/lib/commonjs/classes/HMSRtmpVideoResolution.js +3 -7
- package/lib/commonjs/classes/HMSRtmpVideoResolution.js.map +1 -1
- package/lib/commonjs/classes/HMSSDK.js +172 -382
- package/lib/commonjs/classes/HMSSDK.js.map +1 -1
- package/lib/commonjs/classes/HMSScreenBroadcastAudioReceiverNode.js +0 -4
- package/lib/commonjs/classes/HMSScreenBroadcastAudioReceiverNode.js.map +1 -1
- package/lib/commonjs/classes/HMSServerRecordingState.js +3 -8
- package/lib/commonjs/classes/HMSServerRecordingState.js.map +1 -1
- package/lib/commonjs/classes/HMSSimulcastLayerSettings.js +3 -9
- package/lib/commonjs/classes/HMSSimulcastLayerSettings.js.map +1 -1
- package/lib/commonjs/classes/HMSSimulcastSettings.js +3 -7
- package/lib/commonjs/classes/HMSSimulcastSettings.js.map +1 -1
- package/lib/commonjs/classes/HMSSpeaker.js +3 -8
- package/lib/commonjs/classes/HMSSpeaker.js.map +1 -1
- package/lib/commonjs/classes/HMSSubscribeSettings.js +5 -10
- package/lib/commonjs/classes/HMSSubscribeSettings.js.map +1 -1
- package/lib/commonjs/classes/HMSTrack.js +3 -12
- package/lib/commonjs/classes/HMSTrack.js.map +1 -1
- package/lib/commonjs/classes/HMSTrackSettings.js +3 -10
- package/lib/commonjs/classes/HMSTrackSettings.js.map +1 -1
- package/lib/commonjs/classes/HMSTrackSettingsInitState.js +13 -0
- package/lib/commonjs/classes/HMSTrackSettingsInitState.js.map +1 -0
- package/lib/commonjs/classes/HMSTrackSource.js +0 -1
- package/lib/commonjs/classes/HMSTrackSource.js.map +1 -1
- package/lib/commonjs/classes/HMSTrackType.js +0 -1
- package/lib/commonjs/classes/HMSTrackType.js.map +1 -1
- package/lib/commonjs/classes/HMSTrackUpdate.js +0 -1
- package/lib/commonjs/classes/HMSTrackUpdate.js.map +1 -1
- package/lib/commonjs/classes/HMSUpdateListenerActions.js +0 -1
- package/lib/commonjs/classes/HMSUpdateListenerActions.js.map +1 -1
- package/lib/commonjs/classes/HMSVideoCodec.js +0 -1
- package/lib/commonjs/classes/HMSVideoCodec.js.map +1 -1
- package/lib/commonjs/classes/HMSVideoResolution.js +3 -7
- package/lib/commonjs/classes/HMSVideoResolution.js.map +1 -1
- package/lib/commonjs/classes/HMSVideoSettings.js +3 -10
- package/lib/commonjs/classes/HMSVideoSettings.js.map +1 -1
- package/lib/commonjs/classes/HMSVideoTrack.js +3 -12
- package/lib/commonjs/classes/HMSVideoTrack.js.map +1 -1
- package/lib/commonjs/classes/HMSVideoTrackSettings.js +14 -24
- package/lib/commonjs/classes/HMSVideoTrackSettings.js.map +1 -1
- package/lib/commonjs/classes/HMSVideoViewMode.js +0 -1
- package/lib/commonjs/classes/HMSVideoViewMode.js.map +1 -1
- package/lib/commonjs/classes/HmsView.js +20 -26
- package/lib/commonjs/classes/HmsView.js.map +1 -1
- package/lib/commonjs/index.js +48 -144
- package/lib/commonjs/index.js.map +1 -1
- package/lib/module/classes/HMSAudioCodec.js +0 -1
- package/lib/module/classes/HMSAudioCodec.js.map +1 -1
- package/lib/module/classes/HMSAudioDevice.js +0 -1
- package/lib/module/classes/HMSAudioDevice.js.map +1 -1
- package/lib/module/classes/HMSAudioFilePlayerNode.js +0 -9
- package/lib/module/classes/HMSAudioFilePlayerNode.js.map +1 -1
- package/lib/module/classes/HMSAudioMixerSource.js +3 -5
- package/lib/module/classes/HMSAudioMixerSource.js.map +1 -1
- package/lib/module/classes/HMSAudioMixingMode.js +0 -1
- package/lib/module/classes/HMSAudioMixingMode.js.map +1 -1
- package/lib/module/classes/HMSAudioMode.js +0 -1
- package/lib/module/classes/HMSAudioMode.js.map +1 -1
- package/lib/module/classes/HMSAudioNode.js +3 -6
- package/lib/module/classes/HMSAudioNode.js.map +1 -1
- package/lib/module/classes/HMSAudioSettings.js +3 -5
- package/lib/module/classes/HMSAudioSettings.js.map +1 -1
- package/lib/module/classes/HMSAudioTrack.js +0 -1
- package/lib/module/classes/HMSAudioTrack.js.map +1 -1
- package/lib/module/classes/HMSAudioTrackSettings.js +9 -15
- package/lib/module/classes/HMSAudioTrackSettings.js.map +1 -1
- package/lib/module/classes/HMSBrowserRecordingState.js +3 -7
- package/lib/module/classes/HMSBrowserRecordingState.js.map +1 -1
- package/lib/module/classes/HMSCameraFacing.js +0 -1
- package/lib/module/classes/HMSCameraFacing.js.map +1 -1
- package/lib/module/classes/HMSChangeTrackStateRequest.js +3 -6
- package/lib/module/classes/HMSChangeTrackStateRequest.js.map +1 -1
- package/lib/module/classes/HMSConfig.js +3 -8
- package/lib/module/classes/HMSConfig.js.map +1 -1
- package/lib/module/classes/HMSEncoder.js +12 -54
- package/lib/module/classes/HMSEncoder.js.map +1 -1
- package/lib/module/classes/HMSException.js +5 -10
- package/lib/module/classes/HMSException.js.map +1 -1
- package/lib/module/classes/HMSHLSConfig.js +3 -5
- package/lib/module/classes/HMSHLSConfig.js.map +1 -1
- package/lib/module/classes/HMSHLSMeetingURLVariant.js +3 -5
- package/lib/module/classes/HMSHLSMeetingURLVariant.js.map +1 -1
- package/lib/module/classes/HMSHLSRecordingConfig.js +3 -5
- package/lib/module/classes/HMSHLSRecordingConfig.js.map +1 -1
- package/lib/module/classes/HMSHLSRecordingState.js +3 -7
- package/lib/module/classes/HMSHLSRecordingState.js.map +1 -1
- package/lib/module/classes/HMSHLSStreamingState.js +3 -5
- package/lib/module/classes/HMSHLSStreamingState.js.map +1 -1
- package/lib/module/classes/HMSHLSVariant.js +3 -7
- package/lib/module/classes/HMSHLSVariant.js.map +1 -1
- package/lib/module/classes/HMSHelper.js +0 -1
- package/lib/module/classes/HMSHelper.js.map +1 -1
- package/lib/module/classes/HMSLocalAudioStats.js +3 -6
- package/lib/module/classes/HMSLocalAudioStats.js.map +1 -1
- package/lib/module/classes/HMSLocalAudioTrack.js +3 -10
- package/lib/module/classes/HMSLocalAudioTrack.js.map +1 -1
- package/lib/module/classes/HMSLocalPeer.js +3 -10
- package/lib/module/classes/HMSLocalPeer.js.map +1 -1
- package/lib/module/classes/HMSLocalVideoStats.js +3 -8
- package/lib/module/classes/HMSLocalVideoStats.js.map +1 -1
- package/lib/module/classes/HMSLocalVideoTrack.js +3 -10
- package/lib/module/classes/HMSLocalVideoTrack.js.map +1 -1
- package/lib/module/classes/HMSLogAlarmManager.js +7 -0
- package/lib/module/classes/HMSLogAlarmManager.js.map +1 -0
- package/lib/module/classes/HMSLogLevel.js +0 -1
- package/lib/module/classes/HMSLogLevel.js.map +1 -1
- package/lib/module/classes/HMSLogSettings.js +14 -0
- package/lib/module/classes/HMSLogSettings.js.map +1 -0
- package/lib/module/classes/HMSLogger.js +3 -23
- package/lib/module/classes/HMSLogger.js.map +1 -1
- package/lib/module/classes/HMSMessage.js +4 -8
- package/lib/module/classes/HMSMessage.js.map +1 -1
- package/lib/module/classes/HMSMessageRecipient.js +3 -6
- package/lib/module/classes/HMSMessageRecipient.js.map +1 -1
- package/lib/module/classes/HMSMessageRecipientType.js +0 -1
- package/lib/module/classes/HMSMessageRecipientType.js.map +1 -1
- package/lib/module/classes/HMSMessageType.js +6 -0
- package/lib/module/classes/HMSMessageType.js.map +1 -0
- package/lib/module/classes/HMSMicNode.js +0 -2
- package/lib/module/classes/HMSMicNode.js.map +1 -1
- package/lib/module/classes/HMSNetworkQuality.js +3 -4
- package/lib/module/classes/HMSNetworkQuality.js.map +1 -1
- package/lib/module/classes/HMSPeer.js +3 -14
- package/lib/module/classes/HMSPeer.js.map +1 -1
- package/lib/module/classes/HMSPeerUpdate.js +0 -1
- package/lib/module/classes/HMSPeerUpdate.js.map +1 -1
- package/lib/module/classes/HMSPermissions.js +3 -11
- package/lib/module/classes/HMSPermissions.js.map +1 -1
- package/lib/module/classes/HMSPublishSettings.js +3 -10
- package/lib/module/classes/HMSPublishSettings.js.map +1 -1
- package/lib/module/classes/HMSRTCStats.js +3 -10
- package/lib/module/classes/HMSRTCStats.js.map +1 -1
- package/lib/module/classes/HMSRTCStatsReport.js +3 -6
- package/lib/module/classes/HMSRTCStatsReport.js.map +1 -1
- package/lib/module/classes/HMSRTMPConfig.js +3 -7
- package/lib/module/classes/HMSRTMPConfig.js.map +1 -1
- package/lib/module/classes/HMSRemoteAudioStats.js +3 -8
- package/lib/module/classes/HMSRemoteAudioStats.js.map +1 -1
- package/lib/module/classes/HMSRemoteAudioTrack.js +3 -5
- package/lib/module/classes/HMSRemoteAudioTrack.js.map +1 -1
- package/lib/module/classes/HMSRemotePeer.js +3 -10
- package/lib/module/classes/HMSRemotePeer.js.map +1 -1
- package/lib/module/classes/HMSRemoteVideoStats.js +3 -10
- package/lib/module/classes/HMSRemoteVideoStats.js.map +1 -1
- package/lib/module/classes/HMSRemoteVideoTrack.js +3 -7
- package/lib/module/classes/HMSRemoteVideoTrack.js.map +1 -1
- package/lib/module/classes/HMSRole.js +3 -11
- package/lib/module/classes/HMSRole.js.map +1 -1
- package/lib/module/classes/HMSRoleChangeRequest.js +3 -5
- package/lib/module/classes/HMSRoleChangeRequest.js.map +1 -1
- package/lib/module/classes/HMSRoom.js +5 -14
- package/lib/module/classes/HMSRoom.js.map +1 -1
- package/lib/module/classes/HMSRoomUpdate.js +0 -1
- package/lib/module/classes/HMSRoomUpdate.js.map +1 -1
- package/lib/module/classes/HMSRtmpStreamingState.js +3 -7
- package/lib/module/classes/HMSRtmpStreamingState.js.map +1 -1
- package/lib/module/classes/HMSRtmpVideoResolution.js +3 -5
- package/lib/module/classes/HMSRtmpVideoResolution.js.map +1 -1
- package/lib/module/classes/HMSSDK.js +172 -336
- package/lib/module/classes/HMSSDK.js.map +1 -1
- package/lib/module/classes/HMSScreenBroadcastAudioReceiverNode.js +0 -1
- package/lib/module/classes/HMSScreenBroadcastAudioReceiverNode.js.map +1 -1
- package/lib/module/classes/HMSServerRecordingState.js +3 -6
- package/lib/module/classes/HMSServerRecordingState.js.map +1 -1
- package/lib/module/classes/HMSSimulcastLayerSettings.js +3 -7
- package/lib/module/classes/HMSSimulcastLayerSettings.js.map +1 -1
- package/lib/module/classes/HMSSimulcastSettings.js +3 -5
- package/lib/module/classes/HMSSimulcastSettings.js.map +1 -1
- package/lib/module/classes/HMSSpeaker.js +3 -6
- package/lib/module/classes/HMSSpeaker.js.map +1 -1
- package/lib/module/classes/HMSSubscribeSettings.js +5 -8
- package/lib/module/classes/HMSSubscribeSettings.js.map +1 -1
- package/lib/module/classes/HMSTrack.js +3 -10
- package/lib/module/classes/HMSTrack.js.map +1 -1
- package/lib/module/classes/HMSTrackSettings.js +3 -8
- package/lib/module/classes/HMSTrackSettings.js.map +1 -1
- package/lib/module/classes/HMSTrackSettingsInitState.js +6 -0
- package/lib/module/classes/HMSTrackSettingsInitState.js.map +1 -0
- package/lib/module/classes/HMSTrackSource.js +0 -1
- package/lib/module/classes/HMSTrackSource.js.map +1 -1
- package/lib/module/classes/HMSTrackType.js +0 -1
- package/lib/module/classes/HMSTrackType.js.map +1 -1
- package/lib/module/classes/HMSTrackUpdate.js +0 -1
- package/lib/module/classes/HMSTrackUpdate.js.map +1 -1
- package/lib/module/classes/HMSUpdateListenerActions.js +0 -1
- package/lib/module/classes/HMSUpdateListenerActions.js.map +1 -1
- package/lib/module/classes/HMSVideoCodec.js +0 -1
- package/lib/module/classes/HMSVideoCodec.js.map +1 -1
- package/lib/module/classes/HMSVideoResolution.js +3 -5
- package/lib/module/classes/HMSVideoResolution.js.map +1 -1
- package/lib/module/classes/HMSVideoSettings.js +3 -8
- package/lib/module/classes/HMSVideoSettings.js.map +1 -1
- package/lib/module/classes/HMSVideoTrack.js +3 -9
- package/lib/module/classes/HMSVideoTrack.js.map +1 -1
- package/lib/module/classes/HMSVideoTrackSettings.js +14 -22
- package/lib/module/classes/HMSVideoTrackSettings.js.map +1 -1
- package/lib/module/classes/HMSVideoViewMode.js +0 -1
- package/lib/module/classes/HMSVideoViewMode.js.map +1 -1
- package/lib/module/classes/HmsView.js +20 -15
- package/lib/module/classes/HmsView.js.map +1 -1
- package/lib/module/index.js +4 -0
- package/lib/module/index.js.map +1 -1
- package/lib/typescript/classes/HMSAudioTrackSettings.d.ts +5 -7
- package/lib/typescript/classes/HMSBrowserRecordingState.d.ts +2 -2
- package/lib/typescript/classes/HMSEncoder.d.ts +2 -5
- package/lib/typescript/classes/HMSLogAlarmManager.d.ts +5 -0
- package/lib/typescript/classes/HMSLogSettings.d.ts +12 -0
- package/lib/typescript/classes/HMSMessage.d.ts +3 -2
- package/lib/typescript/classes/HMSMessageType.d.ts +4 -0
- package/lib/typescript/classes/HMSRoom.d.ts +3 -0
- package/lib/typescript/classes/HMSRtmpStreamingState.d.ts +2 -2
- package/lib/typescript/classes/HMSSDK.d.ts +52 -17
- package/lib/typescript/classes/HMSServerRecordingState.d.ts +2 -2
- package/lib/typescript/classes/HMSSubscribeSettings.d.ts +2 -2
- package/lib/typescript/classes/HMSTrackSettings.d.ts +0 -2
- package/lib/typescript/classes/HMSTrackSettingsInitState.d.ts +4 -0
- package/lib/typescript/classes/HMSVideoTrack.d.ts +0 -2
- package/lib/typescript/classes/HMSVideoTrackSettings.d.ts +10 -15
- package/lib/typescript/index.d.ts +4 -0
- package/package.json +1 -1
- package/react-native-hms.podspec +2 -2
- package/src/classes/HMSAudioTrackSettings.ts +8 -10
- package/src/classes/HMSBrowserRecordingState.ts +2 -2
- package/src/classes/HMSEncoder.ts +12 -20
- package/src/classes/HMSLogAlarmManager.ts +5 -0
- package/src/classes/HMSLogSettings.ts +18 -0
- package/src/classes/HMSMessage.ts +3 -2
- package/src/classes/HMSMessageType.ts +4 -0
- package/src/classes/HMSRoom.ts +4 -0
- package/src/classes/HMSRtmpStreamingState.ts +2 -2
- package/src/classes/HMSSDK.tsx +165 -149
- package/src/classes/HMSServerRecordingState.ts +2 -2
- package/src/classes/HMSSubscribeSettings.ts +3 -3
- package/src/classes/HMSTrackSettings.ts +0 -3
- package/src/classes/HMSTrackSettingsInitState.ts +4 -0
- package/src/classes/HMSVideoTrack.ts +0 -2
- package/src/classes/HMSVideoTrackSettings.ts +14 -21
- package/src/classes/HmsView.tsx +15 -1
- package/src/index.ts +4 -0
- package/android/.idea/libraries/Gradle__com_facebook_fbjni_fbjni_java_only_0_2_2.xml +0 -13
- package/android/.idea/libraries/Gradle__com_facebook_react_react_native_0_69_1_debug_aar.xml +0 -14
- package/android/.idea/libraries/Gradle__com_facebook_soloader_annotation_0_10_3.xml +0 -13
- package/android/.idea/libraries/Gradle__com_facebook_soloader_nativeloader_0_10_3.xml +0 -13
- package/android/.idea/libraries/Gradle__com_facebook_soloader_soloader_0_10_3_aar.xml +0 -15
- package/android/.idea/libraries/Gradle__com_github_100mslive_android_sdk_lib_2_4_7_aar.xml +0 -11
- package/android/.idea/libraries/Gradle__com_github_100mslive_webrtc_m97_hms_1_1_aar.xml +0 -11
|
@@ -4,23 +4,18 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.HMSSpeaker = void 0;
|
|
7
|
-
|
|
8
|
-
function
|
|
9
|
-
|
|
7
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
8
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
9
|
+
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
10
10
|
class HMSSpeaker {
|
|
11
11
|
constructor(params) {
|
|
12
12
|
_defineProperty(this, "level", void 0);
|
|
13
|
-
|
|
14
13
|
_defineProperty(this, "peer", void 0);
|
|
15
|
-
|
|
16
14
|
_defineProperty(this, "track", void 0);
|
|
17
|
-
|
|
18
15
|
this.level = params.level;
|
|
19
16
|
this.peer = params.peer;
|
|
20
17
|
this.track = params.track;
|
|
21
18
|
}
|
|
22
|
-
|
|
23
19
|
}
|
|
24
|
-
|
|
25
20
|
exports.HMSSpeaker = HMSSpeaker;
|
|
26
21
|
//# sourceMappingURL=HMSSpeaker.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["HMSSpeaker","constructor","params","level","peer","track"],"sources":["HMSSpeaker.ts"],"sourcesContent":["import type { HMSTrack } from './HMSTrack';\nimport type { HMSPeer } from './HMSPeer';\n\nexport class HMSSpeaker {\n level: Number;\n peer: HMSPeer;\n track: HMSTrack;\n\n constructor(params: { level: Number; peer: HMSPeer; track: HMSTrack }) {\n this.level = params.level;\n this.peer = params.peer;\n this.track = params.track;\n }\n}\n"],"mappings":";;;;;;;;;AAGO,MAAMA,
|
|
1
|
+
{"version":3,"names":["HMSSpeaker","constructor","params","level","peer","track"],"sources":["HMSSpeaker.ts"],"sourcesContent":["import type { HMSTrack } from './HMSTrack';\nimport type { HMSPeer } from './HMSPeer';\n\nexport class HMSSpeaker {\n level: Number;\n peer: HMSPeer;\n track: HMSTrack;\n\n constructor(params: { level: Number; peer: HMSPeer; track: HMSTrack }) {\n this.level = params.level;\n this.peer = params.peer;\n this.track = params.track;\n }\n}\n"],"mappings":";;;;;;;;;AAGO,MAAMA,UAAU,CAAC;EAKtBC,WAAW,CAACC,MAAyD,EAAE;IAAA;IAAA;IAAA;IACrE,IAAI,CAACC,KAAK,GAAGD,MAAM,CAACC,KAAK;IACzB,IAAI,CAACC,IAAI,GAAGF,MAAM,CAACE,IAAI;IACvB,IAAI,CAACC,KAAK,GAAGH,MAAM,CAACG,KAAK;EAC3B;AACF;AAAC"}
|
|
@@ -4,23 +4,18 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.HMSSubscribeSettings = void 0;
|
|
7
|
-
|
|
8
|
-
function
|
|
9
|
-
|
|
7
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
8
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
9
|
+
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
10
10
|
class HMSSubscribeSettings {
|
|
11
11
|
constructor(params) {
|
|
12
|
-
_defineProperty(this, "
|
|
13
|
-
|
|
12
|
+
_defineProperty(this, "subscribeTo", void 0);
|
|
14
13
|
_defineProperty(this, "maxSubsBitRate", void 0);
|
|
15
|
-
|
|
16
14
|
_defineProperty(this, "maxDisplayTiles", void 0);
|
|
17
|
-
|
|
18
|
-
this.subscribeToRoles = params.subscribeToRoles;
|
|
15
|
+
this.subscribeTo = params.subscribeTo;
|
|
19
16
|
this.maxSubsBitRate = params.maxSubsBitRate;
|
|
20
17
|
this.maxDisplayTiles = params.maxDisplayTiles;
|
|
21
18
|
}
|
|
22
|
-
|
|
23
19
|
}
|
|
24
|
-
|
|
25
20
|
exports.HMSSubscribeSettings = HMSSubscribeSettings;
|
|
26
21
|
//# sourceMappingURL=HMSSubscribeSettings.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["HMSSubscribeSettings","constructor","params","
|
|
1
|
+
{"version":3,"names":["HMSSubscribeSettings","constructor","params","subscribeTo","maxSubsBitRate","maxDisplayTiles"],"sources":["HMSSubscribeSettings.ts"],"sourcesContent":["export class HMSSubscribeSettings {\n subscribeTo?: [string];\n maxSubsBitRate: number;\n maxDisplayTiles?: number;\n\n constructor(params: {\n subscribeTo?: [string];\n maxSubsBitRate: number;\n maxDisplayTiles?: number;\n }) {\n this.subscribeTo = params.subscribeTo;\n this.maxSubsBitRate = params.maxSubsBitRate;\n this.maxDisplayTiles = params.maxDisplayTiles;\n }\n}\n"],"mappings":";;;;;;;;;AAAO,MAAMA,oBAAoB,CAAC;EAKhCC,WAAW,CAACC,MAIX,EAAE;IAAA;IAAA;IAAA;IACD,IAAI,CAACC,WAAW,GAAGD,MAAM,CAACC,WAAW;IACrC,IAAI,CAACC,cAAc,GAAGF,MAAM,CAACE,cAAc;IAC3C,IAAI,CAACC,eAAe,GAAGH,MAAM,CAACG,eAAe;EAC/C;AACF;AAAC"}
|
|
@@ -4,27 +4,20 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.HMSTrack = void 0;
|
|
7
|
-
|
|
8
|
-
function
|
|
9
|
-
|
|
7
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
8
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
9
|
+
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
10
10
|
class HMSTrack {
|
|
11
11
|
constructor(params) {
|
|
12
12
|
_defineProperty(this, "trackId", void 0);
|
|
13
|
-
|
|
14
13
|
_defineProperty(this, "source", void 0);
|
|
15
|
-
|
|
16
14
|
_defineProperty(this, "trackDescription", void 0);
|
|
17
|
-
|
|
18
15
|
_defineProperty(this, "mute", void 0);
|
|
19
|
-
|
|
20
16
|
_defineProperty(this, "id", void 0);
|
|
21
|
-
|
|
22
17
|
_defineProperty(this, "type", void 0);
|
|
23
|
-
|
|
24
18
|
_defineProperty(this, "isMute", () => {
|
|
25
19
|
return this.mute;
|
|
26
20
|
});
|
|
27
|
-
|
|
28
21
|
this.trackId = params.trackId;
|
|
29
22
|
this.source = params.source;
|
|
30
23
|
this.trackDescription = params.trackDescription;
|
|
@@ -32,8 +25,6 @@ class HMSTrack {
|
|
|
32
25
|
this.id = params.id;
|
|
33
26
|
this.type = params.type;
|
|
34
27
|
}
|
|
35
|
-
|
|
36
28
|
}
|
|
37
|
-
|
|
38
29
|
exports.HMSTrack = HMSTrack;
|
|
39
30
|
//# sourceMappingURL=HMSTrack.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["HMSTrack","constructor","params","mute","trackId","source","trackDescription","isMute","id","type"],"sources":["HMSTrack.ts"],"sourcesContent":["import type { HMSTrackType } from './HMSTrackType';\n\nexport class HMSTrack {\n trackId: string;\n source?: number | string;\n trackDescription?: string;\n mute?: boolean;\n id: string;\n type?: HMSTrackType;\n\n isMute = () => {\n return this.mute;\n };\n\n constructor(params: {\n trackId: string;\n source?: number | string;\n trackDescription?: string;\n isMute?: boolean;\n id: string;\n type?: HMSTrackType;\n }) {\n this.trackId = params.trackId;\n this.source = params.source;\n this.trackDescription = params.trackDescription;\n this.mute = params.isMute;\n this.id = params.id;\n this.type = params.type;\n }\n}\n"],"mappings":";;;;;;;;;AAEO,MAAMA,
|
|
1
|
+
{"version":3,"names":["HMSTrack","constructor","params","mute","trackId","source","trackDescription","isMute","id","type"],"sources":["HMSTrack.ts"],"sourcesContent":["import type { HMSTrackType } from './HMSTrackType';\n\nexport class HMSTrack {\n trackId: string;\n source?: number | string;\n trackDescription?: string;\n mute?: boolean;\n id: string;\n type?: HMSTrackType;\n\n isMute = () => {\n return this.mute;\n };\n\n constructor(params: {\n trackId: string;\n source?: number | string;\n trackDescription?: string;\n isMute?: boolean;\n id: string;\n type?: HMSTrackType;\n }) {\n this.trackId = params.trackId;\n this.source = params.source;\n this.trackDescription = params.trackDescription;\n this.mute = params.isMute;\n this.id = params.id;\n this.type = params.type;\n }\n}\n"],"mappings":";;;;;;;;;AAEO,MAAMA,QAAQ,CAAC;EAYpBC,WAAW,CAACC,MAOX,EAAE;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA,gCAXM,MAAM;MACb,OAAO,IAAI,CAACC,IAAI;IAClB,CAAC;IAUC,IAAI,CAACC,OAAO,GAAGF,MAAM,CAACE,OAAO;IAC7B,IAAI,CAACC,MAAM,GAAGH,MAAM,CAACG,MAAM;IAC3B,IAAI,CAACC,gBAAgB,GAAGJ,MAAM,CAACI,gBAAgB;IAC/C,IAAI,CAACH,IAAI,GAAGD,MAAM,CAACK,MAAM;IACzB,IAAI,CAACC,EAAE,GAAGN,MAAM,CAACM,EAAE;IACnB,IAAI,CAACC,IAAI,GAAGP,MAAM,CAACO,IAAI;EACzB;AACF;AAAC"}
|
|
@@ -4,25 +4,18 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.HMSTrackSettings = void 0;
|
|
7
|
-
|
|
8
|
-
function
|
|
9
|
-
|
|
7
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
8
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
9
|
+
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
10
10
|
class HMSTrackSettings {
|
|
11
11
|
constructor(params) {
|
|
12
12
|
_defineProperty(this, "video", void 0);
|
|
13
|
-
|
|
14
13
|
_defineProperty(this, "audio", void 0);
|
|
15
|
-
|
|
16
|
-
_defineProperty(this, "useHardwareEchoCancellation", void 0);
|
|
17
|
-
|
|
18
14
|
if (params) {
|
|
19
15
|
this.video = params.video;
|
|
20
16
|
this.audio = params.audio;
|
|
21
|
-
this.useHardwareEchoCancellation = params.useHardwareEchoCancellation;
|
|
22
17
|
}
|
|
23
18
|
}
|
|
24
|
-
|
|
25
19
|
}
|
|
26
|
-
|
|
27
20
|
exports.HMSTrackSettings = HMSTrackSettings;
|
|
28
21
|
//# sourceMappingURL=HMSTrackSettings.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["HMSTrackSettings","constructor","params","video","audio"
|
|
1
|
+
{"version":3,"names":["HMSTrackSettings","constructor","params","video","audio"],"sources":["HMSTrackSettings.ts"],"sourcesContent":["import type { HMSAudioTrackSettings } from './HMSAudioTrackSettings';\nimport type { HMSVideoTrackSettings } from './HMSVideoTrackSettings';\n\nexport class HMSTrackSettings {\n video?: HMSVideoTrackSettings;\n audio?: HMSAudioTrackSettings;\n\n constructor(params?: {\n video?: HMSVideoTrackSettings;\n audio?: HMSAudioTrackSettings;\n }) {\n if (params) {\n this.video = params.video;\n this.audio = params.audio;\n }\n }\n}\n"],"mappings":";;;;;;;;;AAGO,MAAMA,gBAAgB,CAAC;EAI5BC,WAAW,CAACC,MAGX,EAAE;IAAA;IAAA;IACD,IAAIA,MAAM,EAAE;MACV,IAAI,CAACC,KAAK,GAAGD,MAAM,CAACC,KAAK;MACzB,IAAI,CAACC,KAAK,GAAGF,MAAM,CAACE,KAAK;IAC3B;EACF;AACF;AAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.HMSTrackSettingsInitState = void 0;
|
|
7
|
+
let HMSTrackSettingsInitState;
|
|
8
|
+
exports.HMSTrackSettingsInitState = HMSTrackSettingsInitState;
|
|
9
|
+
(function (HMSTrackSettingsInitState) {
|
|
10
|
+
HMSTrackSettingsInitState["MUTED"] = "MUTED";
|
|
11
|
+
HMSTrackSettingsInitState["UNMUTED"] = "UNMUTED";
|
|
12
|
+
})(HMSTrackSettingsInitState || (exports.HMSTrackSettingsInitState = HMSTrackSettingsInitState = {}));
|
|
13
|
+
//# sourceMappingURL=HMSTrackSettingsInitState.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["HMSTrackSettingsInitState"],"sources":["HMSTrackSettingsInitState.ts"],"sourcesContent":["export enum HMSTrackSettingsInitState {\n MUTED = 'MUTED',\n UNMUTED = 'UNMUTED',\n}\n"],"mappings":";;;;;;IAAYA,yBAAyB;AAAA;AAAA,WAAzBA,yBAAyB;EAAzBA,yBAAyB;EAAzBA,yBAAyB;AAAA,GAAzBA,yBAAyB,yCAAzBA,yBAAyB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["HMSTrackSource"],"sources":["HMSTrackSource.ts"],"sourcesContent":["export enum HMSTrackSource {\n PLUGIN = 'plugin',\n REGULAR = 'regular',\n SCREEN = 'screen',\n}\n"],"mappings":";;;;;;IAAYA,
|
|
1
|
+
{"version":3,"names":["HMSTrackSource"],"sources":["HMSTrackSource.ts"],"sourcesContent":["export enum HMSTrackSource {\n PLUGIN = 'plugin',\n REGULAR = 'regular',\n SCREEN = 'screen',\n}\n"],"mappings":";;;;;;IAAYA,cAAc;AAAA;AAAA,WAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;AAAA,GAAdA,cAAc,8BAAdA,cAAc"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["HMSTrackType"],"sources":["HMSTrackType.ts"],"sourcesContent":["export enum HMSTrackType {\n AUDIO = 'AUDIO',\n VIDEO = 'VIDEO',\n}\n"],"mappings":";;;;;;IAAYA,
|
|
1
|
+
{"version":3,"names":["HMSTrackType"],"sources":["HMSTrackType.ts"],"sourcesContent":["export enum HMSTrackType {\n AUDIO = 'AUDIO',\n VIDEO = 'VIDEO',\n}\n"],"mappings":";;;;;;IAAYA,YAAY;AAAA;AAAA,WAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;AAAA,GAAZA,YAAY,4BAAZA,YAAY"}
|
|
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.HMSTrackUpdate = void 0;
|
|
7
7
|
let HMSTrackUpdate;
|
|
8
8
|
exports.HMSTrackUpdate = HMSTrackUpdate;
|
|
9
|
-
|
|
10
9
|
(function (HMSTrackUpdate) {
|
|
11
10
|
HMSTrackUpdate["TRACK_ADDED"] = "TRACK_ADDED";
|
|
12
11
|
HMSTrackUpdate["TRACK_REMOVED"] = "TRACK_REMOVED";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["HMSTrackUpdate"],"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,
|
|
1
|
+
{"version":3,"names":["HMSTrackUpdate"],"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;AAAA;AAAA,WAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;AAAA,GAAdA,cAAc,8BAAdA,cAAc"}
|
|
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.HMSUpdateListenerActions = void 0;
|
|
7
7
|
let HMSUpdateListenerActions;
|
|
8
8
|
exports.HMSUpdateListenerActions = HMSUpdateListenerActions;
|
|
9
|
-
|
|
10
9
|
(function (HMSUpdateListenerActions) {
|
|
11
10
|
HMSUpdateListenerActions["ON_PREVIEW"] = "ON_PREVIEW";
|
|
12
11
|
HMSUpdateListenerActions["ON_JOIN"] = "ON_JOIN";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["HMSUpdateListenerActions"],"sources":["HMSUpdateListenerActions.ts"],"sourcesContent":["export enum HMSUpdateListenerActions {\n ON_PREVIEW = 'ON_PREVIEW',\n ON_JOIN = 'ON_JOIN',\n ON_ROOM_UPDATE = 'ON_ROOM_UPDATE',\n ON_PEER_UPDATE = 'ON_PEER_UPDATE',\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}\n"],"mappings":";;;;;;IAAYA,
|
|
1
|
+
{"version":3,"names":["HMSUpdateListenerActions"],"sources":["HMSUpdateListenerActions.ts"],"sourcesContent":["export enum HMSUpdateListenerActions {\n ON_PREVIEW = 'ON_PREVIEW',\n ON_JOIN = 'ON_JOIN',\n ON_ROOM_UPDATE = 'ON_ROOM_UPDATE',\n ON_PEER_UPDATE = 'ON_PEER_UPDATE',\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}\n"],"mappings":";;;;;;IAAYA,wBAAwB;AAAA;AAAA,WAAxBA,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;AAAA,GAAxBA,wBAAwB,wCAAxBA,wBAAwB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["HMSVideoCodec"],"sources":["HMSVideoCodec.ts"],"sourcesContent":["export enum HMSVideoCodec {\n H264 = 'H264',\n VP8 = 'VP8',\n VP9 = 'VP9',\n H265 = 'H265',\n}\n"],"mappings":";;;;;;IAAYA,
|
|
1
|
+
{"version":3,"names":["HMSVideoCodec"],"sources":["HMSVideoCodec.ts"],"sourcesContent":["export enum HMSVideoCodec {\n H264 = 'H264',\n VP8 = 'VP8',\n VP9 = 'VP9',\n H265 = 'H265',\n}\n"],"mappings":";;;;;;IAAYA,aAAa;AAAA;AAAA,WAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;AAAA,GAAbA,aAAa,6BAAbA,aAAa"}
|
|
@@ -4,20 +4,16 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.HMSVideoResolution = void 0;
|
|
7
|
-
|
|
8
|
-
function
|
|
9
|
-
|
|
7
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
8
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
9
|
+
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
10
10
|
class HMSVideoResolution {
|
|
11
11
|
constructor(params) {
|
|
12
12
|
_defineProperty(this, "height", void 0);
|
|
13
|
-
|
|
14
13
|
_defineProperty(this, "width", void 0);
|
|
15
|
-
|
|
16
14
|
this.height = params.height;
|
|
17
15
|
this.width = params.width;
|
|
18
16
|
}
|
|
19
|
-
|
|
20
17
|
}
|
|
21
|
-
|
|
22
18
|
exports.HMSVideoResolution = HMSVideoResolution;
|
|
23
19
|
//# sourceMappingURL=HMSVideoResolution.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["HMSVideoResolution","constructor","params","height","width"],"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,
|
|
1
|
+
{"version":3,"names":["HMSVideoResolution","constructor","params","height","width"],"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,WAAW,CAACC,MAAyC,EAAE;IAAA;IAAA;IACrD,IAAI,CAACC,MAAM,GAAGD,MAAM,CAACC,MAAM;IAC3B,IAAI,CAACC,KAAK,GAAGF,MAAM,CAACE,KAAK;EAC3B;AACF;AAAC"}
|
|
@@ -4,29 +4,22 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.HMSVideoSettings = void 0;
|
|
7
|
-
|
|
8
|
-
function
|
|
9
|
-
|
|
7
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
8
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
9
|
+
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
10
10
|
class HMSVideoSettings {
|
|
11
11
|
constructor(params) {
|
|
12
12
|
_defineProperty(this, "bitrate", void 0);
|
|
13
|
-
|
|
14
13
|
_defineProperty(this, "frameRate", void 0);
|
|
15
|
-
|
|
16
14
|
_defineProperty(this, "width", void 0);
|
|
17
|
-
|
|
18
15
|
_defineProperty(this, "height", void 0);
|
|
19
|
-
|
|
20
16
|
_defineProperty(this, "codec", void 0);
|
|
21
|
-
|
|
22
17
|
this.bitrate = params.bitrate;
|
|
23
18
|
this.frameRate = params.frameRate;
|
|
24
19
|
this.width = params.width;
|
|
25
20
|
this.height = params.height;
|
|
26
21
|
this.codec = params.codec;
|
|
27
22
|
}
|
|
28
|
-
|
|
29
23
|
}
|
|
30
|
-
|
|
31
24
|
exports.HMSVideoSettings = HMSVideoSettings;
|
|
32
25
|
//# sourceMappingURL=HMSVideoSettings.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["HMSVideoSettings","constructor","params","bitrate","frameRate","width","height","codec"],"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,
|
|
1
|
+
{"version":3,"names":["HMSVideoSettings","constructor","params","bitrate","frameRate","width","height","codec"],"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,WAAW,CAACC,MAMX,EAAE;IAAA;IAAA;IAAA;IAAA;IAAA;IACD,IAAI,CAACC,OAAO,GAAGD,MAAM,CAACC,OAAO;IAC7B,IAAI,CAACC,SAAS,GAAGF,MAAM,CAACE,SAAS;IACjC,IAAI,CAACC,KAAK,GAAGH,MAAM,CAACG,KAAK;IACzB,IAAI,CAACC,MAAM,GAAGJ,MAAM,CAACI,MAAM;IAC3B,IAAI,CAACC,KAAK,GAAGL,MAAM,CAACK,KAAK;EAC3B;AACF;AAAC"}
|
|
@@ -4,25 +4,16 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.HMSVideoTrack = void 0;
|
|
7
|
-
|
|
8
7
|
var _HMSTrack = require("./HMSTrack");
|
|
9
|
-
|
|
10
|
-
function
|
|
11
|
-
|
|
8
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
9
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
10
|
+
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
12
11
|
class HMSVideoTrack extends _HMSTrack.HMSTrack {
|
|
13
12
|
constructor(params) {
|
|
14
13
|
super(params);
|
|
15
|
-
|
|
16
14
|
_defineProperty(this, "isDegraded", void 0);
|
|
17
|
-
|
|
18
|
-
_defineProperty(this, "addSink", void 0);
|
|
19
|
-
|
|
20
|
-
_defineProperty(this, "removeSink", void 0);
|
|
21
|
-
|
|
22
15
|
this.isDegraded = params.isDegraded;
|
|
23
16
|
}
|
|
24
|
-
|
|
25
17
|
}
|
|
26
|
-
|
|
27
18
|
exports.HMSVideoTrack = HMSVideoTrack;
|
|
28
19
|
//# sourceMappingURL=HMSVideoTrack.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["HMSVideoTrack","HMSTrack","constructor","params","isDegraded"],"sources":["HMSVideoTrack.ts"],"sourcesContent":["import { HMSTrack } from './HMSTrack';\nimport type { HMSTrackType } from './HMSTrackType';\n\nexport class HMSVideoTrack extends HMSTrack {\n isDegraded?: boolean;\n
|
|
1
|
+
{"version":3,"names":["HMSVideoTrack","HMSTrack","constructor","params","isDegraded"],"sources":["HMSVideoTrack.ts"],"sourcesContent":["import { HMSTrack } from './HMSTrack';\nimport type { HMSTrackType } from './HMSTrackType';\n\nexport class HMSVideoTrack extends HMSTrack {\n isDegraded?: boolean;\n\n constructor(params: {\n trackId: string;\n source?: number | string;\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;AAAsC;AAAA;AAAA;AAG/B,MAAMA,aAAa,SAASC,kBAAQ,CAAC;EAG1CC,WAAW,CAACC,MAQX,EAAE;IACD,KAAK,CAACA,MAAM,CAAC;IAAC;IACd,IAAI,CAACC,UAAU,GAAGD,MAAM,CAACC,UAAU;EACrC;AACF;AAAC"}
|
|
@@ -4,35 +4,25 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.HMSVideoTrackSettings = void 0;
|
|
7
|
-
|
|
8
|
-
function
|
|
9
|
-
|
|
7
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
8
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
9
|
+
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
10
10
|
class HMSVideoTrackSettings {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
_defineProperty(this, "resolution", void 0);
|
|
15
|
-
|
|
16
|
-
_defineProperty(this, "maxBitrate", void 0);
|
|
17
|
-
|
|
18
|
-
_defineProperty(this, "maxFrameRate", void 0);
|
|
19
|
-
|
|
20
|
-
_defineProperty(this, "cameraFacing", void 0);
|
|
21
|
-
|
|
22
|
-
_defineProperty(this, "trackDescription", void 0);
|
|
11
|
+
// android only
|
|
12
|
+
// android only
|
|
23
13
|
|
|
14
|
+
constructor(params) {
|
|
24
15
|
_defineProperty(this, "simulcastSettings", void 0);
|
|
25
|
-
|
|
26
|
-
this
|
|
27
|
-
this
|
|
28
|
-
this
|
|
29
|
-
this.maxFrameRate = params.maxFrameRate;
|
|
30
|
-
this.cameraFacing = params.cameraFacing;
|
|
31
|
-
this.trackDescription = params.trackDescription;
|
|
16
|
+
_defineProperty(this, "initialState", void 0);
|
|
17
|
+
_defineProperty(this, "cameraFacing", void 0);
|
|
18
|
+
_defineProperty(this, "forceSoftwareDecoder", void 0);
|
|
19
|
+
_defineProperty(this, "disableAutoResize", void 0);
|
|
32
20
|
this.simulcastSettings = params.simulcastSettings;
|
|
21
|
+
this.initialState = params.initialState;
|
|
22
|
+
this.cameraFacing = params.cameraFacing;
|
|
23
|
+
this.forceSoftwareDecoder = params.forceSoftwareDecoder;
|
|
24
|
+
this.disableAutoResize = params.disableAutoResize;
|
|
33
25
|
}
|
|
34
|
-
|
|
35
26
|
}
|
|
36
|
-
|
|
37
27
|
exports.HMSVideoTrackSettings = HMSVideoTrackSettings;
|
|
38
28
|
//# sourceMappingURL=HMSVideoTrackSettings.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["HMSVideoTrackSettings","constructor","params","
|
|
1
|
+
{"version":3,"names":["HMSVideoTrackSettings","constructor","params","simulcastSettings","initialState","cameraFacing","forceSoftwareDecoder","disableAutoResize"],"sources":["HMSVideoTrackSettings.ts"],"sourcesContent":["import type { HMSSimulcastLayerSettings } from './HMSSimulcastLayerSettings';\nimport type { HMSCameraFacing } from './HMSCameraFacing';\nimport type { HMSTrackSettingsInitState } from './HMSTrackSettingsInitState';\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\n constructor(params: {\n simulcastSettings?: HMSSimulcastLayerSettings[];\n initialState?: HMSTrackSettingsInitState;\n cameraFacing?: HMSCameraFacing;\n forceSoftwareDecoder?: boolean;\n disableAutoResize?: boolean;\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 }\n}\n"],"mappings":";;;;;;;;;AAIO,MAAMA,qBAAqB,CAAC;EAID;EACH;;EAE7BC,WAAW,CAACC,MAMX,EAAE;IAAA;IAAA;IAAA;IAAA;IAAA;IACD,IAAI,CAACC,iBAAiB,GAAGD,MAAM,CAACC,iBAAiB;IACjD,IAAI,CAACC,YAAY,GAAGF,MAAM,CAACE,YAAY;IACvC,IAAI,CAACC,YAAY,GAAGH,MAAM,CAACG,YAAY;IACvC,IAAI,CAACC,oBAAoB,GAAGJ,MAAM,CAACI,oBAAoB;IACvD,IAAI,CAACC,iBAAiB,GAAGL,MAAM,CAACK,iBAAiB;EACnD;AACF;AAAC"}
|
|
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.HMSVideoViewMode = void 0;
|
|
7
7
|
let HMSVideoViewMode;
|
|
8
8
|
exports.HMSVideoViewMode = HMSVideoViewMode;
|
|
9
|
-
|
|
10
9
|
(function (HMSVideoViewMode) {
|
|
11
10
|
HMSVideoViewMode["ASPECT_FILL"] = "ASPECT_FILL";
|
|
12
11
|
HMSVideoViewMode["ASPECT_FIT"] = "ASPECT_FIT";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["HMSVideoViewMode"],"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,
|
|
1
|
+
{"version":3,"names":["HMSVideoViewMode"],"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;AAAA;AAAA,WAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;AAAA,GAAhBA,gBAAgB,gCAAhBA,gBAAgB"}
|
|
@@ -4,22 +4,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.HmsViewComponent = void 0;
|
|
7
|
-
|
|
8
7
|
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
-
|
|
10
8
|
var _reactNative = require("react-native");
|
|
11
|
-
|
|
12
9
|
var _HMSVideoViewMode = require("./HMSVideoViewMode");
|
|
13
|
-
|
|
14
10
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
15
|
-
|
|
16
11
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
17
|
-
|
|
18
12
|
const HmsView = (0, _reactNative.requireNativeComponent)('HMSView');
|
|
19
13
|
let _nextRequestId = 1;
|
|
20
|
-
|
|
21
14
|
let _requestMap = new Map();
|
|
22
|
-
|
|
23
15
|
const HmsViewComponent = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
|
|
24
16
|
const {
|
|
25
17
|
trackId,
|
|
@@ -30,61 +22,65 @@ const HmsViewComponent = /*#__PURE__*/_react.default.forwardRef((props, ref) =>
|
|
|
30
22
|
scaleType = _HMSVideoViewMode.HMSVideoViewMode.ASPECT_FILL
|
|
31
23
|
} = props;
|
|
32
24
|
const hmsViewRef = (0, _react.useRef)();
|
|
25
|
+
const timerRef = (0, _react.useRef)(null);
|
|
33
26
|
const [tempVal, setTempVal] = (0, _react.useState)(0);
|
|
34
27
|
const data = {
|
|
35
28
|
trackId,
|
|
36
29
|
id,
|
|
37
30
|
mirror
|
|
38
31
|
};
|
|
39
|
-
|
|
32
|
+
(0, _react.useEffect)(() => {
|
|
33
|
+
return () => {
|
|
34
|
+
if (timerRef.current) {
|
|
35
|
+
clearTimeout(timerRef.current);
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
}, []);
|
|
40
39
|
const onChange = values => {
|
|
41
40
|
console.log(values, 'values');
|
|
42
|
-
|
|
41
|
+
if (timerRef.current) {
|
|
42
|
+
clearTimeout(timerRef.current);
|
|
43
|
+
}
|
|
44
|
+
timerRef.current = setTimeout(() => {
|
|
43
45
|
setTempVal(1);
|
|
46
|
+
timerRef.current = null;
|
|
44
47
|
}, 2000);
|
|
45
48
|
};
|
|
46
|
-
|
|
47
49
|
const _onDataReturned = event => {
|
|
48
50
|
// We grab the relevant data out of our event.
|
|
49
51
|
let {
|
|
50
52
|
requestId,
|
|
51
53
|
result,
|
|
52
54
|
error
|
|
53
|
-
} = event.nativeEvent;
|
|
54
|
-
|
|
55
|
+
} = event.nativeEvent;
|
|
56
|
+
// Then we get the promise we saved earlier for the given request ID.
|
|
55
57
|
let promise = _requestMap.get(requestId);
|
|
56
|
-
|
|
57
58
|
if (result) {
|
|
58
59
|
// If it was successful, we resolve the promise.
|
|
59
60
|
promise.resolve(result);
|
|
60
61
|
} else {
|
|
61
62
|
// Otherwise, we reject it.
|
|
62
63
|
promise.reject(error);
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
|
|
64
|
+
}
|
|
65
|
+
// Finally, we clean up our request map.
|
|
66
66
|
_requestMap.delete(requestId);
|
|
67
67
|
};
|
|
68
|
-
|
|
69
68
|
const capture = async () => {
|
|
70
69
|
let requestId = _nextRequestId++;
|
|
71
|
-
let requestMap = _requestMap;
|
|
72
|
-
// called.
|
|
70
|
+
let requestMap = _requestMap;
|
|
73
71
|
|
|
72
|
+
// We create a promise here that will be resolved once `_onRequestDone` is
|
|
73
|
+
// called.
|
|
74
74
|
let promise = new Promise(function (resolve, reject) {
|
|
75
75
|
requestMap.set(requestId, {
|
|
76
76
|
resolve,
|
|
77
77
|
reject
|
|
78
78
|
});
|
|
79
79
|
});
|
|
80
|
-
|
|
81
80
|
const viewManagerConfig = _reactNative.UIManager.getViewManagerConfig('HMSView');
|
|
82
|
-
|
|
83
81
|
_reactNative.UIManager.dispatchViewManagerCommand((0, _reactNative.findNodeHandle)(hmsViewRef.current), viewManagerConfig.Commands.capture, [requestId]);
|
|
84
|
-
|
|
85
82
|
return promise;
|
|
86
83
|
};
|
|
87
|
-
|
|
88
84
|
(0, _react.useImperativeHandle)(ref, () => {
|
|
89
85
|
return {
|
|
90
86
|
capture
|
|
@@ -103,9 +99,7 @@ const HmsViewComponent = /*#__PURE__*/_react.default.forwardRef((props, ref) =>
|
|
|
103
99
|
onDataReturned: _onDataReturned
|
|
104
100
|
});
|
|
105
101
|
});
|
|
106
|
-
|
|
107
102
|
exports.HmsViewComponent = HmsViewComponent;
|
|
108
|
-
|
|
109
103
|
const temporaryStyles = _reactNative.StyleSheet.create({
|
|
110
104
|
customStyle: {
|
|
111
105
|
width: '100%',
|