@stream-io/video-react-native-sdk 1.39.1-beta.0 → 1.40.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/CHANGELOG.md +24 -0
- package/android/src/main/java/com/streamvideo/reactnative/recorder/TracksRecorderManager.kt +17 -8
- package/dist/commonjs/components/Call/CallContent/CallContent.js +93 -48
- package/dist/commonjs/components/Call/CallContent/CallContent.js.map +1 -1
- package/dist/commonjs/components/Call/CallContent/RTCViewPipIOS.js +22 -20
- package/dist/commonjs/components/Call/CallContent/RTCViewPipIOS.js.map +1 -1
- package/dist/commonjs/components/Call/CallContent/RTCViewPipNative.js +2 -1
- package/dist/commonjs/components/Call/CallContent/RTCViewPipNative.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/AcceptCallButton.js +10 -6
- package/dist/commonjs/components/Call/CallControls/AcceptCallButton.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/CallControls.js +7 -5
- package/dist/commonjs/components/Call/CallControls/CallControls.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/CallControlsButton.js +11 -8
- package/dist/commonjs/components/Call/CallControls/CallControlsButton.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/HangupCallButton.js +10 -6
- package/dist/commonjs/components/Call/CallControls/HangupCallButton.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/IncomingCallControls.js +11 -9
- package/dist/commonjs/components/Call/CallControls/IncomingCallControls.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/LobbyControls.js +5 -3
- package/dist/commonjs/components/Call/CallControls/LobbyControls.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/OutgoingCallControls.js +12 -9
- package/dist/commonjs/components/Call/CallControls/OutgoingCallControls.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/ReactionsButton.js +22 -15
- package/dist/commonjs/components/Call/CallControls/ReactionsButton.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/RejectCallButton.js +10 -6
- package/dist/commonjs/components/Call/CallControls/RejectCallButton.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/ScreenShareToggleButton.js +15 -11
- package/dist/commonjs/components/Call/CallControls/ScreenShareToggleButton.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/ToggleAudioPreviewButton.js +13 -9
- package/dist/commonjs/components/Call/CallControls/ToggleAudioPreviewButton.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/ToggleAudioPublishingButton.js +18 -13
- package/dist/commonjs/components/Call/CallControls/ToggleAudioPublishingButton.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/ToggleCameraFaceButton.js +17 -12
- package/dist/commonjs/components/Call/CallControls/ToggleCameraFaceButton.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/ToggleVideoPreviewButton.js +13 -9
- package/dist/commonjs/components/Call/CallControls/ToggleVideoPreviewButton.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/ToggleVideoPublishingButton.js +17 -12
- package/dist/commonjs/components/Call/CallControls/ToggleVideoPublishingButton.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/internal/ReactionsPicker.js +39 -34
- package/dist/commonjs/components/Call/CallControls/internal/ReactionsPicker.js.map +1 -1
- package/dist/commonjs/components/Call/CallLayout/CallParticipantsGrid.js +17 -12
- package/dist/commonjs/components/Call/CallLayout/CallParticipantsGrid.js.map +1 -1
- package/dist/commonjs/components/Call/CallLayout/CallParticipantsSpotlight.js +36 -24
- package/dist/commonjs/components/Call/CallLayout/CallParticipantsSpotlight.js.map +1 -1
- package/dist/commonjs/components/Call/CallParticipantsList/CallParticipantsList.js +30 -28
- package/dist/commonjs/components/Call/CallParticipantsList/CallParticipantsList.js.map +1 -1
- package/dist/commonjs/components/Call/Lobby/JoinCallButton.js +10 -7
- package/dist/commonjs/components/Call/Lobby/JoinCallButton.js.map +1 -1
- package/dist/commonjs/components/Call/Lobby/Lobby.js +45 -35
- package/dist/commonjs/components/Call/Lobby/Lobby.js.map +1 -1
- package/dist/commonjs/components/Call/Lobby/LobbyFooter.js +21 -16
- package/dist/commonjs/components/Call/Lobby/LobbyFooter.js.map +1 -1
- package/dist/commonjs/components/Call/RingingCallContent/CallLeftIndicator.js +2 -1
- package/dist/commonjs/components/Call/RingingCallContent/CallLeftIndicator.js.map +1 -1
- package/dist/commonjs/components/Call/RingingCallContent/CallPreparingIndicator.js +2 -1
- package/dist/commonjs/components/Call/RingingCallContent/CallPreparingIndicator.js.map +1 -1
- package/dist/commonjs/components/Call/RingingCallContent/IncomingCall.js +32 -22
- package/dist/commonjs/components/Call/RingingCallContent/IncomingCall.js.map +1 -1
- package/dist/commonjs/components/Call/RingingCallContent/OutgoingCall.js +37 -27
- package/dist/commonjs/components/Call/RingingCallContent/OutgoingCall.js.map +1 -1
- package/dist/commonjs/components/Call/RingingCallContent/RingingCallContent.js +13 -11
- package/dist/commonjs/components/Call/RingingCallContent/RingingCallContent.js.map +1 -1
- package/dist/commonjs/components/Call/RingingCallContent/TextBasedIndicator.js +28 -22
- package/dist/commonjs/components/Call/RingingCallContent/TextBasedIndicator.js.map +1 -1
- package/dist/commonjs/components/Call/RingingCallContent/UserInfo.js +25 -22
- package/dist/commonjs/components/Call/RingingCallContent/UserInfo.js.map +1 -1
- package/dist/commonjs/components/Livestream/HostLivestream/HostLivestream.js +38 -34
- package/dist/commonjs/components/Livestream/HostLivestream/HostLivestream.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamControls/HostLivestreamControls.js +16 -12
- package/dist/commonjs/components/Livestream/LivestreamControls/HostLivestreamControls.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamControls/HostStartStreamButton.js +16 -12
- package/dist/commonjs/components/Livestream/LivestreamControls/HostStartStreamButton.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamControls/LivestreamAudioControlButton.js +19 -14
- package/dist/commonjs/components/Livestream/LivestreamControls/LivestreamAudioControlButton.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamControls/LivestreamMediaControls.js +5 -3
- package/dist/commonjs/components/Livestream/LivestreamControls/LivestreamMediaControls.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamControls/LivestreamScreenShareToggleButton.js +19 -16
- package/dist/commonjs/components/Livestream/LivestreamControls/LivestreamScreenShareToggleButton.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamControls/LivestreamVideoControlButton.js +19 -14
- package/dist/commonjs/components/Livestream/LivestreamControls/LivestreamVideoControlButton.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamControls/ViewerLeaveStreamButton.js +11 -8
- package/dist/commonjs/components/Livestream/LivestreamControls/ViewerLeaveStreamButton.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamControls/ViewerLivestreamControls.js +78 -57
- package/dist/commonjs/components/Livestream/LivestreamControls/ViewerLivestreamControls.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamLayout/LivestreamLayout.js +13 -46
- package/dist/commonjs/components/Livestream/LivestreamLayout/LivestreamLayout.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamPlayer/LivestreamEnded.js +48 -22
- package/dist/commonjs/components/Livestream/LivestreamPlayer/LivestreamEnded.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamPlayer/LivestreamPlayer.js +7 -5
- package/dist/commonjs/components/Livestream/LivestreamPlayer/LivestreamPlayer.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamTopView/DurationBadge.js +12 -9
- package/dist/commonjs/components/Livestream/LivestreamTopView/DurationBadge.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamTopView/FollowerCount.js +11 -7
- package/dist/commonjs/components/Livestream/LivestreamTopView/FollowerCount.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamTopView/HostLivestreamTopView.js +18 -13
- package/dist/commonjs/components/Livestream/LivestreamTopView/HostLivestreamTopView.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamTopView/LiveIndicator.js +10 -7
- package/dist/commonjs/components/Livestream/LivestreamTopView/LiveIndicator.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamTopView/ViewerLivestreamTopView.js +18 -13
- package/dist/commonjs/components/Livestream/LivestreamTopView/ViewerLivestreamTopView.js.map +1 -1
- package/dist/commonjs/components/Livestream/ViewerLivestream/ViewerLivestream.js +41 -37
- package/dist/commonjs/components/Livestream/ViewerLivestream/ViewerLivestream.js.map +1 -1
- package/dist/commonjs/components/Livestream/ViewerLivestream/ViewerLobby.js +33 -23
- package/dist/commonjs/components/Livestream/ViewerLivestream/ViewerLobby.js.map +1 -1
- package/dist/commonjs/components/Participant/FloatingParticipantView/FloatingView/AnimatedFloatingView.js +18 -15
- package/dist/commonjs/components/Participant/FloatingParticipantView/FloatingView/AnimatedFloatingView.js.map +1 -1
- package/dist/commonjs/components/Participant/FloatingParticipantView/FloatingView/ReanimatedFloatingView.js +20 -16
- package/dist/commonjs/components/Participant/FloatingParticipantView/FloatingView/ReanimatedFloatingView.js.map +1 -1
- package/dist/commonjs/components/Participant/FloatingParticipantView/index.js +55 -48
- package/dist/commonjs/components/Participant/FloatingParticipantView/index.js.map +1 -1
- package/dist/commonjs/components/Participant/ParticipantView/ParticipantLabel.js +64 -52
- package/dist/commonjs/components/Participant/ParticipantView/ParticipantLabel.js.map +1 -1
- package/dist/commonjs/components/Participant/ParticipantView/ParticipantNetworkQualityIndicator.js +30 -27
- package/dist/commonjs/components/Participant/ParticipantView/ParticipantNetworkQualityIndicator.js.map +1 -1
- package/dist/commonjs/components/Participant/ParticipantView/ParticipantReaction.js +11 -7
- package/dist/commonjs/components/Participant/ParticipantView/ParticipantReaction.js.map +1 -1
- package/dist/commonjs/components/Participant/ParticipantView/ParticipantVideoFallback.js +17 -14
- package/dist/commonjs/components/Participant/ParticipantView/ParticipantVideoFallback.js.map +1 -1
- package/dist/commonjs/components/Participant/ParticipantView/ParticipantView.js +27 -24
- package/dist/commonjs/components/Participant/ParticipantView/ParticipantView.js.map +1 -1
- package/dist/commonjs/components/Participant/ParticipantView/SpeechIndicator.js +8 -7
- package/dist/commonjs/components/Participant/ParticipantView/SpeechIndicator.js.map +1 -1
- package/dist/commonjs/components/Participant/ParticipantView/VideoRenderer/index.js +35 -32
- package/dist/commonjs/components/Participant/ParticipantView/VideoRenderer/index.js.map +1 -1
- package/dist/commonjs/components/utility/Avatar.js +18 -15
- package/dist/commonjs/components/utility/Avatar.js.map +1 -1
- package/dist/commonjs/components/utility/ScreenShareOverlay.js +35 -29
- package/dist/commonjs/components/utility/ScreenShareOverlay.js.map +1 -1
- package/dist/commonjs/contexts/BackgroundFilters.js +5 -3
- package/dist/commonjs/contexts/BackgroundFilters.js.map +1 -1
- package/dist/commonjs/contexts/ThemeContext.js +5 -3
- package/dist/commonjs/contexts/ThemeContext.js.map +1 -1
- package/dist/commonjs/contexts/internal/ScreenshotIosContext.js +5 -3
- package/dist/commonjs/contexts/internal/ScreenshotIosContext.js.map +1 -1
- package/dist/commonjs/hooks/useAutoEnterPiPEffect.js +5 -10
- package/dist/commonjs/hooks/useAutoEnterPiPEffect.js.map +1 -1
- package/dist/commonjs/hooks/useLoopbackRecording.js +47 -27
- package/dist/commonjs/hooks/useLoopbackRecording.js.map +1 -1
- package/dist/commonjs/hooks/useModeration.js +4 -1
- package/dist/commonjs/hooks/useModeration.js.map +1 -1
- package/dist/commonjs/icons/Back.js +8 -6
- package/dist/commonjs/icons/Back.js.map +1 -1
- package/dist/commonjs/icons/BadNetwork.js +11 -9
- package/dist/commonjs/icons/BadNetwork.js.map +1 -1
- package/dist/commonjs/icons/CameraSwitch.js +8 -6
- package/dist/commonjs/icons/CameraSwitch.js.map +1 -1
- package/dist/commonjs/icons/EndStreamIcon.js +8 -6
- package/dist/commonjs/icons/EndStreamIcon.js.map +1 -1
- package/dist/commonjs/icons/Eye.js +8 -6
- package/dist/commonjs/icons/Eye.js.map +1 -1
- package/dist/commonjs/icons/IconWrapper.js +5 -3
- package/dist/commonjs/icons/IconWrapper.js.map +1 -1
- package/dist/commonjs/icons/LivestreamControls.js +44 -39
- package/dist/commonjs/icons/LivestreamControls.js.map +1 -1
- package/dist/commonjs/icons/Lock.js +8 -6
- package/dist/commonjs/icons/Lock.js.map +1 -1
- package/dist/commonjs/icons/Maximize.js +33 -31
- package/dist/commonjs/icons/Maximize.js.map +1 -1
- package/dist/commonjs/icons/Mic.js +8 -6
- package/dist/commonjs/icons/Mic.js.map +1 -1
- package/dist/commonjs/icons/MicOff.js +8 -6
- package/dist/commonjs/icons/MicOff.js.map +1 -1
- package/dist/commonjs/icons/Phone.js +8 -6
- package/dist/commonjs/icons/Phone.js.map +1 -1
- package/dist/commonjs/icons/PhoneDown.js +8 -6
- package/dist/commonjs/icons/PhoneDown.js.map +1 -1
- package/dist/commonjs/icons/PinVertical.js +8 -6
- package/dist/commonjs/icons/PinVertical.js.map +1 -1
- package/dist/commonjs/icons/Reaction.js +8 -6
- package/dist/commonjs/icons/Reaction.js.map +1 -1
- package/dist/commonjs/icons/ScreenShare.js +8 -6
- package/dist/commonjs/icons/ScreenShare.js.map +1 -1
- package/dist/commonjs/icons/ScreenShareIndicator.js +21 -18
- package/dist/commonjs/icons/ScreenShareIndicator.js.map +1 -1
- package/dist/commonjs/icons/StartStreamIcon.js +8 -6
- package/dist/commonjs/icons/StartStreamIcon.js.map +1 -1
- package/dist/commonjs/icons/StopScreenShare.js +11 -9
- package/dist/commonjs/icons/StopScreenShare.js.map +1 -1
- package/dist/commonjs/icons/Video.js +8 -6
- package/dist/commonjs/icons/Video.js.map +1 -1
- package/dist/commonjs/icons/VideoSlash.js +8 -6
- package/dist/commonjs/icons/VideoSlash.js.map +1 -1
- package/dist/commonjs/icons/index.js +0 -66
- package/dist/commonjs/icons/index.js.map +1 -1
- package/dist/commonjs/package.json +1 -0
- package/dist/commonjs/providers/BusyTonePlayer.js +7 -7
- package/dist/commonjs/providers/BusyTonePlayer.js.map +1 -1
- package/dist/commonjs/providers/NoiseCancellation/NoiseCancellationProvider.js +5 -3
- package/dist/commonjs/providers/NoiseCancellation/NoiseCancellationProvider.js.map +1 -1
- package/dist/commonjs/providers/StreamCall/AppStateListener.js +3 -0
- package/dist/commonjs/providers/StreamCall/AppStateListener.js.map +1 -1
- package/dist/commonjs/providers/StreamCall/DeviceStats.js +1 -1
- package/dist/commonjs/providers/StreamCall/DeviceStats.js.map +1 -1
- package/dist/commonjs/providers/StreamCall/index.js +5 -3
- package/dist/commonjs/providers/StreamCall/index.js.map +1 -1
- package/dist/commonjs/providers/StreamVideo.js +10 -5
- package/dist/commonjs/providers/StreamVideo.js.map +1 -1
- package/dist/commonjs/utils/StreamVideoRN/index.js +0 -1
- package/dist/commonjs/utils/StreamVideoRN/index.js.map +1 -1
- package/dist/commonjs/utils/internal/callingx/callingx.js +4 -4
- package/dist/commonjs/utils/internal/callingx/callingx.js.map +1 -1
- package/dist/commonjs/utils/internal/registerSDKGlobals.js +2 -2
- package/dist/commonjs/utils/internal/registerSDKGlobals.js.map +1 -1
- package/dist/commonjs/utils/push/libs/firebaseMessaging/index.js.map +1 -1
- package/dist/commonjs/version.js +1 -1
- package/dist/commonjs/version.js.map +1 -1
- package/dist/module/components/Call/CallContent/CallContent.js +95 -48
- package/dist/module/components/Call/CallContent/CallContent.js.map +1 -1
- package/dist/module/components/Call/CallContent/RTCViewPipIOS.js +24 -20
- package/dist/module/components/Call/CallContent/RTCViewPipIOS.js.map +1 -1
- package/dist/module/components/Call/CallContent/RTCViewPipNative.js +4 -1
- package/dist/module/components/Call/CallContent/RTCViewPipNative.js.map +1 -1
- package/dist/module/components/Call/CallContent/index.js +2 -0
- package/dist/module/components/Call/CallContent/index.js.map +1 -1
- package/dist/module/components/Call/CallControls/AcceptCallButton.js +12 -7
- package/dist/module/components/Call/CallControls/AcceptCallButton.js.map +1 -1
- package/dist/module/components/Call/CallControls/CallControls.js +9 -6
- package/dist/module/components/Call/CallControls/CallControls.js.map +1 -1
- package/dist/module/components/Call/CallControls/CallControlsButton.js +13 -8
- package/dist/module/components/Call/CallControls/CallControlsButton.js.map +1 -1
- package/dist/module/components/Call/CallControls/HangupCallButton.js +12 -7
- package/dist/module/components/Call/CallControls/HangupCallButton.js.map +1 -1
- package/dist/module/components/Call/CallControls/IncomingCallControls.js +13 -10
- package/dist/module/components/Call/CallControls/IncomingCallControls.js.map +1 -1
- package/dist/module/components/Call/CallControls/LobbyControls.js +7 -3
- package/dist/module/components/Call/CallControls/LobbyControls.js.map +1 -1
- package/dist/module/components/Call/CallControls/OutgoingCallControls.js +14 -10
- package/dist/module/components/Call/CallControls/OutgoingCallControls.js.map +1 -1
- package/dist/module/components/Call/CallControls/ReactionsButton.js +24 -16
- package/dist/module/components/Call/CallControls/ReactionsButton.js.map +1 -1
- package/dist/module/components/Call/CallControls/RejectCallButton.js +12 -7
- package/dist/module/components/Call/CallControls/RejectCallButton.js.map +1 -1
- package/dist/module/components/Call/CallControls/ScreenShareToggleButton.js +17 -12
- package/dist/module/components/Call/CallControls/ScreenShareToggleButton.js.map +1 -1
- package/dist/module/components/Call/CallControls/ToggleAudioPreviewButton.js +15 -10
- package/dist/module/components/Call/CallControls/ToggleAudioPreviewButton.js.map +1 -1
- package/dist/module/components/Call/CallControls/ToggleAudioPublishingButton.js +20 -14
- package/dist/module/components/Call/CallControls/ToggleAudioPublishingButton.js.map +1 -1
- package/dist/module/components/Call/CallControls/ToggleCameraFaceButton.js +19 -13
- package/dist/module/components/Call/CallControls/ToggleCameraFaceButton.js.map +1 -1
- package/dist/module/components/Call/CallControls/ToggleVideoPreviewButton.js +15 -10
- package/dist/module/components/Call/CallControls/ToggleVideoPreviewButton.js.map +1 -1
- package/dist/module/components/Call/CallControls/ToggleVideoPublishingButton.js +19 -13
- package/dist/module/components/Call/CallControls/ToggleVideoPublishingButton.js.map +1 -1
- package/dist/module/components/Call/CallControls/index.js +2 -0
- package/dist/module/components/Call/CallControls/index.js.map +1 -1
- package/dist/module/components/Call/CallControls/internal/ReactionsPicker.js +41 -34
- package/dist/module/components/Call/CallControls/internal/ReactionsPicker.js.map +1 -1
- package/dist/module/components/Call/CallLayout/CallParticipantsGrid.js +19 -13
- package/dist/module/components/Call/CallLayout/CallParticipantsGrid.js.map +1 -1
- package/dist/module/components/Call/CallLayout/CallParticipantsSpotlight.js +38 -25
- package/dist/module/components/Call/CallLayout/CallParticipantsSpotlight.js.map +1 -1
- package/dist/module/components/Call/CallLayout/index.js +2 -0
- package/dist/module/components/Call/CallLayout/index.js.map +1 -1
- package/dist/module/components/Call/CallParticipantsList/CallParticipantsList.js +32 -28
- package/dist/module/components/Call/CallParticipantsList/CallParticipantsList.js.map +1 -1
- package/dist/module/components/Call/CallParticipantsList/index.js +2 -0
- package/dist/module/components/Call/CallParticipantsList/index.js.map +1 -1
- package/dist/module/components/Call/Lobby/JoinCallButton.js +12 -8
- package/dist/module/components/Call/Lobby/JoinCallButton.js.map +1 -1
- package/dist/module/components/Call/Lobby/Lobby.js +47 -36
- package/dist/module/components/Call/Lobby/Lobby.js.map +1 -1
- package/dist/module/components/Call/Lobby/LobbyFooter.js +23 -17
- package/dist/module/components/Call/Lobby/LobbyFooter.js.map +1 -1
- package/dist/module/components/Call/Lobby/index.js +2 -0
- package/dist/module/components/Call/Lobby/index.js.map +1 -1
- package/dist/module/components/Call/RingingCallContent/CallLeftIndicator.js +4 -1
- package/dist/module/components/Call/RingingCallContent/CallLeftIndicator.js.map +1 -1
- package/dist/module/components/Call/RingingCallContent/CallPreparingIndicator.js +4 -1
- package/dist/module/components/Call/RingingCallContent/CallPreparingIndicator.js.map +1 -1
- package/dist/module/components/Call/RingingCallContent/IncomingCall.js +34 -23
- package/dist/module/components/Call/RingingCallContent/IncomingCall.js.map +1 -1
- package/dist/module/components/Call/RingingCallContent/OutgoingCall.js +39 -28
- package/dist/module/components/Call/RingingCallContent/OutgoingCall.js.map +1 -1
- package/dist/module/components/Call/RingingCallContent/RingingCallContent.js +15 -12
- package/dist/module/components/Call/RingingCallContent/RingingCallContent.js.map +1 -1
- package/dist/module/components/Call/RingingCallContent/TextBasedIndicator.js +30 -22
- package/dist/module/components/Call/RingingCallContent/TextBasedIndicator.js.map +1 -1
- package/dist/module/components/Call/RingingCallContent/UserInfo.js +27 -22
- package/dist/module/components/Call/RingingCallContent/UserInfo.js.map +1 -1
- package/dist/module/components/Call/RingingCallContent/index.js +2 -0
- package/dist/module/components/Call/RingingCallContent/index.js.map +1 -1
- package/dist/module/components/Call/index.js +2 -0
- package/dist/module/components/Call/index.js.map +1 -1
- package/dist/module/components/Livestream/HostLivestream/HostLivestream.js +40 -35
- package/dist/module/components/Livestream/HostLivestream/HostLivestream.js.map +1 -1
- package/dist/module/components/Livestream/HostLivestream/index.js +2 -0
- package/dist/module/components/Livestream/HostLivestream/index.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamControls/HostLivestreamControls.js +18 -13
- package/dist/module/components/Livestream/LivestreamControls/HostLivestreamControls.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamControls/HostStartStreamButton.js +18 -13
- package/dist/module/components/Livestream/LivestreamControls/HostStartStreamButton.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamControls/LivestreamAudioControlButton.js +21 -14
- package/dist/module/components/Livestream/LivestreamControls/LivestreamAudioControlButton.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamControls/LivestreamMediaControls.js +7 -4
- package/dist/module/components/Livestream/LivestreamControls/LivestreamMediaControls.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamControls/LivestreamScreenShareToggleButton.js +21 -16
- package/dist/module/components/Livestream/LivestreamControls/LivestreamScreenShareToggleButton.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamControls/LivestreamVideoControlButton.js +21 -14
- package/dist/module/components/Livestream/LivestreamControls/LivestreamVideoControlButton.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamControls/ViewerLeaveStreamButton.js +13 -9
- package/dist/module/components/Livestream/LivestreamControls/ViewerLeaveStreamButton.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamControls/ViewerLivestreamControls.js +80 -58
- package/dist/module/components/Livestream/LivestreamControls/ViewerLivestreamControls.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamControls/index.js +2 -0
- package/dist/module/components/Livestream/LivestreamControls/index.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamLayout/LivestreamLayout.js +14 -46
- package/dist/module/components/Livestream/LivestreamLayout/LivestreamLayout.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamLayout/index.js +2 -0
- package/dist/module/components/Livestream/LivestreamLayout/index.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamPlayer/LivestreamEnded.js +52 -25
- package/dist/module/components/Livestream/LivestreamPlayer/LivestreamEnded.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamPlayer/LivestreamPlayer.js +9 -5
- package/dist/module/components/Livestream/LivestreamPlayer/LivestreamPlayer.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamPlayer/index.js +2 -0
- package/dist/module/components/Livestream/LivestreamPlayer/index.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamTopView/DurationBadge.js +14 -10
- package/dist/module/components/Livestream/LivestreamTopView/DurationBadge.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamTopView/FollowerCount.js +13 -8
- package/dist/module/components/Livestream/LivestreamTopView/FollowerCount.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamTopView/HostLivestreamTopView.js +20 -14
- package/dist/module/components/Livestream/LivestreamTopView/HostLivestreamTopView.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamTopView/LiveIndicator.js +12 -8
- package/dist/module/components/Livestream/LivestreamTopView/LiveIndicator.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamTopView/ViewerLivestreamTopView.js +20 -14
- package/dist/module/components/Livestream/LivestreamTopView/ViewerLivestreamTopView.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamTopView/index.js +2 -0
- package/dist/module/components/Livestream/LivestreamTopView/index.js.map +1 -1
- package/dist/module/components/Livestream/ViewerLivestream/ViewerLivestream.js +43 -38
- package/dist/module/components/Livestream/ViewerLivestream/ViewerLivestream.js.map +1 -1
- package/dist/module/components/Livestream/ViewerLivestream/ViewerLobby.js +35 -23
- package/dist/module/components/Livestream/ViewerLivestream/ViewerLobby.js.map +1 -1
- package/dist/module/components/Livestream/ViewerLivestream/index.js +2 -0
- package/dist/module/components/Livestream/ViewerLivestream/index.js.map +1 -1
- package/dist/module/components/Livestream/index.js +2 -0
- package/dist/module/components/Livestream/index.js.map +1 -1
- package/dist/module/components/Participant/FloatingParticipantView/FloatingView/AnimatedFloatingView.js +20 -15
- package/dist/module/components/Participant/FloatingParticipantView/FloatingView/AnimatedFloatingView.js.map +1 -1
- package/dist/module/components/Participant/FloatingParticipantView/FloatingView/ReanimatedFloatingView.js +22 -16
- package/dist/module/components/Participant/FloatingParticipantView/FloatingView/ReanimatedFloatingView.js.map +1 -1
- package/dist/module/components/Participant/FloatingParticipantView/FloatingView/common.js +2 -0
- package/dist/module/components/Participant/FloatingParticipantView/FloatingView/common.js.map +1 -1
- package/dist/module/components/Participant/FloatingParticipantView/FloatingView/index.js +2 -0
- package/dist/module/components/Participant/FloatingParticipantView/FloatingView/index.js.map +1 -1
- package/dist/module/components/Participant/FloatingParticipantView/index.js +56 -49
- package/dist/module/components/Participant/FloatingParticipantView/index.js.map +1 -1
- package/dist/module/components/Participant/FloatingParticipantView/useFloatingVideoDimensions.js +2 -0
- package/dist/module/components/Participant/FloatingParticipantView/useFloatingVideoDimensions.js.map +1 -1
- package/dist/module/components/Participant/ParticipantView/ParticipantLabel.js +66 -53
- package/dist/module/components/Participant/ParticipantView/ParticipantLabel.js.map +1 -1
- package/dist/module/components/Participant/ParticipantView/ParticipantNetworkQualityIndicator.js +32 -28
- package/dist/module/components/Participant/ParticipantView/ParticipantNetworkQualityIndicator.js.map +1 -1
- package/dist/module/components/Participant/ParticipantView/ParticipantReaction.js +13 -8
- package/dist/module/components/Participant/ParticipantView/ParticipantReaction.js.map +1 -1
- package/dist/module/components/Participant/ParticipantView/ParticipantVideoFallback.js +19 -15
- package/dist/module/components/Participant/ParticipantView/ParticipantVideoFallback.js.map +1 -1
- package/dist/module/components/Participant/ParticipantView/ParticipantView.js +29 -24
- package/dist/module/components/Participant/ParticipantView/ParticipantView.js.map +1 -1
- package/dist/module/components/Participant/ParticipantView/SpeechIndicator.js +10 -8
- package/dist/module/components/Participant/ParticipantView/SpeechIndicator.js.map +1 -1
- package/dist/module/components/Participant/ParticipantView/VideoRenderer/TrackSubscriber.js +2 -0
- package/dist/module/components/Participant/ParticipantView/VideoRenderer/TrackSubscriber.js.map +1 -1
- package/dist/module/components/Participant/ParticipantView/VideoRenderer/index.js +37 -31
- package/dist/module/components/Participant/ParticipantView/VideoRenderer/index.js.map +1 -1
- package/dist/module/components/Participant/ParticipantView/index.js +2 -0
- package/dist/module/components/Participant/ParticipantView/index.js.map +1 -1
- package/dist/module/components/Participant/index.js +2 -0
- package/dist/module/components/Participant/index.js.map +1 -1
- package/dist/module/components/index.js +2 -0
- package/dist/module/components/index.js.map +1 -1
- package/dist/module/components/utility/Avatar.js +20 -16
- package/dist/module/components/utility/Avatar.js.map +1 -1
- package/dist/module/components/utility/ScreenShareOverlay.js +37 -30
- package/dist/module/components/utility/ScreenShareOverlay.js.map +1 -1
- package/dist/module/components/utility/index.js +2 -0
- package/dist/module/components/utility/index.js.map +1 -1
- package/dist/module/constants/TestIds.js +2 -0
- package/dist/module/constants/TestIds.js.map +1 -1
- package/dist/module/constants/index.js +2 -0
- package/dist/module/constants/index.js.map +1 -1
- package/dist/module/contexts/BackgroundFilters.js +7 -4
- package/dist/module/contexts/BackgroundFilters.js.map +1 -1
- package/dist/module/contexts/ThemeContext.js +7 -4
- package/dist/module/contexts/ThemeContext.js.map +1 -1
- package/dist/module/contexts/index.js +2 -0
- package/dist/module/contexts/index.js.map +1 -1
- package/dist/module/contexts/internal/BackgroundFiltersContext.js +2 -0
- package/dist/module/contexts/internal/BackgroundFiltersContext.js.map +1 -1
- package/dist/module/contexts/internal/ScreenshotIosContext.js +7 -3
- package/dist/module/contexts/internal/ScreenshotIosContext.js.map +1 -1
- package/dist/module/hooks/index.js +2 -0
- package/dist/module/hooks/index.js.map +1 -1
- package/dist/module/hooks/push/index.js +2 -0
- package/dist/module/hooks/push/index.js.map +1 -1
- package/dist/module/hooks/push/useCallingExpWithCallingStateEffect.js +2 -0
- package/dist/module/hooks/push/useCallingExpWithCallingStateEffect.js.map +1 -1
- package/dist/module/hooks/push/useInitAndroidTokenAndRest.js +2 -0
- package/dist/module/hooks/push/useInitAndroidTokenAndRest.js.map +1 -1
- package/dist/module/hooks/push/useIosVoipPushEventsSetupEffect.js +2 -0
- package/dist/module/hooks/push/useIosVoipPushEventsSetupEffect.js.map +1 -1
- package/dist/module/hooks/useAndroidKeepCallAliveEffect.js +2 -0
- package/dist/module/hooks/useAndroidKeepCallAliveEffect.js.map +1 -1
- package/dist/module/hooks/useAutoEnterPiPEffect.js +7 -10
- package/dist/module/hooks/useAutoEnterPiPEffect.js.map +1 -1
- package/dist/module/hooks/useIsInPiPMode.js +2 -0
- package/dist/module/hooks/useIsInPiPMode.js.map +1 -1
- package/dist/module/hooks/useIsIosScreenshareBroadcastStarted.js +2 -0
- package/dist/module/hooks/useIsIosScreenshareBroadcastStarted.js.map +1 -1
- package/dist/module/hooks/useLoopbackRecording.js +51 -29
- package/dist/module/hooks/useLoopbackRecording.js.map +1 -1
- package/dist/module/hooks/useModeration.js +6 -1
- package/dist/module/hooks/useModeration.js.map +1 -1
- package/dist/module/hooks/usePaginatedLayoutSortPreset.js +2 -0
- package/dist/module/hooks/usePaginatedLayoutSortPreset.js.map +1 -1
- package/dist/module/hooks/usePermissionNotification.js +2 -0
- package/dist/module/hooks/usePermissionNotification.js.map +1 -1
- package/dist/module/hooks/usePermissionRequest.js +2 -0
- package/dist/module/hooks/usePermissionRequest.js.map +1 -1
- package/dist/module/hooks/useScreenShareAudioMixing.js +2 -0
- package/dist/module/hooks/useScreenShareAudioMixing.js.map +1 -1
- package/dist/module/hooks/useScreenShareButton.js +2 -0
- package/dist/module/hooks/useScreenShareButton.js.map +1 -1
- package/dist/module/hooks/useScreenshot.js +2 -0
- package/dist/module/hooks/useScreenshot.js.map +1 -1
- package/dist/module/hooks/useTrackDimensions.js +2 -0
- package/dist/module/hooks/useTrackDimensions.js.map +1 -1
- package/dist/module/icons/Back.js +10 -6
- package/dist/module/icons/Back.js.map +1 -1
- package/dist/module/icons/BadNetwork.js +13 -9
- package/dist/module/icons/BadNetwork.js.map +1 -1
- package/dist/module/icons/CameraSwitch.js +10 -6
- package/dist/module/icons/CameraSwitch.js.map +1 -1
- package/dist/module/icons/EndStreamIcon.js +10 -6
- package/dist/module/icons/EndStreamIcon.js.map +1 -1
- package/dist/module/icons/Eye.js +10 -6
- package/dist/module/icons/Eye.js.map +1 -1
- package/dist/module/icons/IconWrapper.js +7 -3
- package/dist/module/icons/IconWrapper.js.map +1 -1
- package/dist/module/icons/LivestreamControls.js +46 -39
- package/dist/module/icons/LivestreamControls.js.map +1 -1
- package/dist/module/icons/Lock.js +10 -6
- package/dist/module/icons/Lock.js.map +1 -1
- package/dist/module/icons/Maximize.js +35 -31
- package/dist/module/icons/Maximize.js.map +1 -1
- package/dist/module/icons/Mic.js +10 -6
- package/dist/module/icons/Mic.js.map +1 -1
- package/dist/module/icons/MicOff.js +10 -6
- package/dist/module/icons/MicOff.js.map +1 -1
- package/dist/module/icons/Phone.js +10 -6
- package/dist/module/icons/Phone.js.map +1 -1
- package/dist/module/icons/PhoneDown.js +10 -6
- package/dist/module/icons/PhoneDown.js.map +1 -1
- package/dist/module/icons/PinVertical.js +10 -6
- package/dist/module/icons/PinVertical.js.map +1 -1
- package/dist/module/icons/Reaction.js +10 -6
- package/dist/module/icons/Reaction.js.map +1 -1
- package/dist/module/icons/ScreenShare.js +10 -6
- package/dist/module/icons/ScreenShare.js.map +1 -1
- package/dist/module/icons/ScreenShareIndicator.js +23 -18
- package/dist/module/icons/ScreenShareIndicator.js.map +1 -1
- package/dist/module/icons/StartStreamIcon.js +10 -6
- package/dist/module/icons/StartStreamIcon.js.map +1 -1
- package/dist/module/icons/StopScreenShare.js +13 -9
- package/dist/module/icons/StopScreenShare.js.map +1 -1
- package/dist/module/icons/Video.js +10 -6
- package/dist/module/icons/Video.js.map +1 -1
- package/dist/module/icons/VideoSlash.js +10 -6
- package/dist/module/icons/VideoSlash.js.map +1 -1
- package/dist/module/icons/index.js +2 -6
- package/dist/module/icons/index.js.map +1 -1
- package/dist/module/index.js +2 -0
- package/dist/module/index.js.map +1 -1
- package/dist/module/modules/ScreenShareAudioManager.js +2 -0
- package/dist/module/modules/ScreenShareAudioManager.js.map +1 -1
- package/dist/module/modules/call-manager/CallManager.js +2 -0
- package/dist/module/modules/call-manager/CallManager.js.map +1 -1
- package/dist/module/modules/call-manager/PrevLibDetection.js +2 -0
- package/dist/module/modules/call-manager/PrevLibDetection.js.map +1 -1
- package/dist/module/modules/call-manager/index.js +2 -0
- package/dist/module/modules/call-manager/index.js.map +1 -1
- package/dist/module/modules/call-manager/native-module.d.js +2 -0
- package/dist/module/modules/call-manager/native-module.d.js.map +1 -1
- package/dist/module/modules/call-manager/types.js +1 -1
- package/dist/module/providers/BusyTonePlayer.js +9 -7
- package/dist/module/providers/BusyTonePlayer.js.map +1 -1
- package/dist/module/providers/NoiseCancellation/NoiseCancellationProvider.js +7 -4
- package/dist/module/providers/NoiseCancellation/NoiseCancellationProvider.js.map +1 -1
- package/dist/module/providers/NoiseCancellation/index.js +2 -0
- package/dist/module/providers/NoiseCancellation/index.js.map +1 -1
- package/dist/module/providers/NoiseCancellation/lib.js +2 -0
- package/dist/module/providers/NoiseCancellation/lib.js.map +1 -1
- package/dist/module/providers/StreamCall/AppStateListener.js +5 -0
- package/dist/module/providers/StreamCall/AppStateListener.js.map +1 -1
- package/dist/module/providers/StreamCall/AudioInterruptionTracer.js +2 -0
- package/dist/module/providers/StreamCall/AudioInterruptionTracer.js.map +1 -1
- package/dist/module/providers/StreamCall/DeviceStats.js +3 -1
- package/dist/module/providers/StreamCall/DeviceStats.js.map +1 -1
- package/dist/module/providers/StreamCall/index.js +7 -4
- package/dist/module/providers/StreamCall/index.js.map +1 -1
- package/dist/module/providers/StreamVideo.js +12 -5
- package/dist/module/providers/StreamVideo.js.map +1 -1
- package/dist/module/theme/colors.js +2 -0
- package/dist/module/theme/colors.js.map +1 -1
- package/dist/module/theme/constants.js +2 -0
- package/dist/module/theme/constants.js.map +1 -1
- package/dist/module/theme/index.js +2 -0
- package/dist/module/theme/index.js.map +1 -1
- package/dist/module/theme/theme.js +2 -0
- package/dist/module/theme/theme.js.map +1 -1
- package/dist/module/theme/types.js +2 -0
- package/dist/module/translations/index.js +2 -0
- package/dist/module/translations/index.js.map +1 -1
- package/dist/module/utils/StreamVideoRN/index.js +2 -1
- package/dist/module/utils/StreamVideoRN/index.js.map +1 -1
- package/dist/module/utils/StreamVideoRN/types.js +2 -0
- package/dist/module/utils/enterPiPAndroid.js +2 -0
- package/dist/module/utils/enterPiPAndroid.js.map +1 -1
- package/dist/module/utils/getAndroidDefaultRingtoneUrl.js +2 -0
- package/dist/module/utils/getAndroidDefaultRingtoneUrl.js.map +1 -1
- package/dist/module/utils/hooks/index.js +2 -0
- package/dist/module/utils/hooks/index.js.map +1 -1
- package/dist/module/utils/hooks/usePrevious.js +2 -0
- package/dist/module/utils/hooks/usePrevious.js.map +1 -1
- package/dist/module/utils/index.js +2 -0
- package/dist/module/utils/index.js.map +1 -1
- package/dist/module/utils/internal/callingx/audioSessionPromise.js +2 -0
- package/dist/module/utils/internal/callingx/audioSessionPromise.js.map +1 -1
- package/dist/module/utils/internal/callingx/callingx.js +6 -4
- package/dist/module/utils/internal/callingx/callingx.js.map +1 -1
- package/dist/module/utils/internal/optionallibs/gestureHandler.js +2 -0
- package/dist/module/utils/internal/optionallibs/gestureHandler.js.map +1 -1
- package/dist/module/utils/internal/optionallibs/index.js +2 -0
- package/dist/module/utils/internal/optionallibs/index.js.map +1 -1
- package/dist/module/utils/internal/optionallibs/reanimated.js +2 -0
- package/dist/module/utils/internal/optionallibs/reanimated.js.map +1 -1
- package/dist/module/utils/internal/pushLogoutCallback.js +2 -0
- package/dist/module/utils/internal/pushLogoutCallback.js.map +1 -1
- package/dist/module/utils/internal/registerSDKGlobals.js +4 -2
- package/dist/module/utils/internal/registerSDKGlobals.js.map +1 -1
- package/dist/module/utils/internal/rxSubjects.js +2 -0
- package/dist/module/utils/internal/rxSubjects.js.map +1 -1
- package/dist/module/utils/internal/shouldDisableIOSLocalVideoOnBackground.js +2 -0
- package/dist/module/utils/internal/shouldDisableIOSLocalVideoOnBackground.js.map +1 -1
- package/dist/module/utils/keepCallAliveHeadlessTask.js +2 -0
- package/dist/module/utils/keepCallAliveHeadlessTask.js.map +1 -1
- package/dist/module/utils/push/android.js +2 -0
- package/dist/module/utils/push/android.js.map +1 -1
- package/dist/module/utils/push/index.js +2 -0
- package/dist/module/utils/push/index.js.map +1 -1
- package/dist/module/utils/push/internal/constants.js +2 -0
- package/dist/module/utils/push/internal/constants.js.map +1 -1
- package/dist/module/utils/push/internal/ios.js +2 -0
- package/dist/module/utils/push/internal/ios.js.map +1 -1
- package/dist/module/utils/push/internal/utils.js +2 -0
- package/dist/module/utils/push/internal/utils.js.map +1 -1
- package/dist/module/utils/push/libs/callingx.js +2 -0
- package/dist/module/utils/push/libs/callingx.js.map +1 -1
- package/dist/module/utils/push/libs/firebaseMessaging/index.js +2 -0
- package/dist/module/utils/push/libs/firebaseMessaging/index.js.map +1 -1
- package/dist/module/utils/push/libs/firebaseMessaging/lib.js +2 -0
- package/dist/module/utils/push/libs/firebaseMessaging/lib.js.map +1 -1
- package/dist/module/utils/push/libs/index.js +2 -0
- package/dist/module/utils/push/libs/index.js.map +1 -1
- package/dist/module/utils/push/setupCallingExpEvents.js +2 -0
- package/dist/module/utils/push/setupCallingExpEvents.js.map +1 -1
- package/dist/module/utils/push/setupIosVoipPushEvents.js +2 -0
- package/dist/module/utils/push/setupIosVoipPushEvents.js.map +1 -1
- package/dist/module/utils/push/utils.js +2 -0
- package/dist/module/utils/push/utils.js.map +1 -1
- package/dist/module/utils/setClientDetails.js +2 -0
- package/dist/module/utils/setClientDetails.js.map +1 -1
- package/dist/module/version.js +3 -1
- package/dist/module/version.js.map +1 -1
- package/dist/typescript/components/Call/CallContent/CallContent.d.ts.map +1 -1
- package/dist/typescript/components/Call/CallLayout/CallParticipantsGrid.d.ts.map +1 -1
- package/dist/typescript/components/Call/CallLayout/CallParticipantsSpotlight.d.ts.map +1 -1
- package/dist/typescript/components/Call/CallParticipantsList/CallParticipantsList.d.ts.map +1 -1
- package/dist/typescript/components/Call/Lobby/Lobby.d.ts.map +1 -1
- package/dist/typescript/components/Livestream/HostLivestream/HostLivestream.d.ts.map +1 -1
- package/dist/typescript/components/Livestream/LivestreamLayout/LivestreamLayout.d.ts.map +1 -1
- package/dist/typescript/components/Livestream/LivestreamPlayer/LivestreamEnded.d.ts.map +1 -1
- package/dist/typescript/components/Livestream/ViewerLivestream/ViewerLivestream.d.ts.map +1 -1
- package/dist/typescript/components/Participant/FloatingParticipantView/index.d.ts.map +1 -1
- package/dist/typescript/components/Participant/ParticipantView/ParticipantView.d.ts +1 -1
- package/dist/typescript/components/Participant/ParticipantView/ParticipantView.d.ts.map +1 -1
- package/dist/typescript/components/Participant/ParticipantView/VideoRenderer/index.d.ts +1 -1
- package/dist/typescript/components/Participant/ParticipantView/VideoRenderer/index.d.ts.map +1 -1
- package/dist/typescript/contexts/BackgroundFilters.d.ts +1 -1
- package/dist/typescript/contexts/BackgroundFilters.d.ts.map +1 -1
- package/dist/typescript/hooks/useAutoEnterPiPEffect.d.ts.map +1 -1
- package/dist/typescript/hooks/useLoopbackRecording.d.ts +1 -1
- package/dist/typescript/hooks/useLoopbackRecording.d.ts.map +1 -1
- package/dist/typescript/hooks/useModeration.d.ts.map +1 -1
- package/dist/typescript/icons/index.d.ts +0 -6
- package/dist/typescript/icons/index.d.ts.map +1 -1
- package/dist/typescript/providers/StreamCall/AppStateListener.d.ts.map +1 -1
- package/dist/typescript/providers/StreamCall/DeviceStats.d.ts.map +1 -1
- package/dist/typescript/utils/StreamVideoRN/index.d.ts +0 -1
- package/dist/typescript/utils/StreamVideoRN/index.d.ts.map +1 -1
- package/dist/typescript/utils/internal/callingx/callingx.d.ts.map +1 -1
- package/dist/typescript/utils/push/libs/firebaseMessaging/index.d.ts +2 -16
- package/dist/typescript/utils/push/libs/firebaseMessaging/index.d.ts.map +1 -1
- package/dist/typescript/version.d.ts +1 -1
- package/dist/typescript/version.d.ts.map +1 -1
- package/ios/TracksRecorder/RecorderAudioRenderTap.swift +0 -10
- package/ios/TracksRecorder/TracksRecorderManager.swift +6 -0
- package/package.json +10 -8
- package/src/components/Call/CallContent/CallContent.tsx +69 -39
- package/src/components/Call/CallLayout/CallParticipantsGrid.tsx +4 -6
- package/src/components/Call/CallLayout/CallParticipantsSpotlight.tsx +30 -21
- package/src/components/Call/CallParticipantsList/CallParticipantsList.tsx +23 -9
- package/src/components/Call/Lobby/Lobby.tsx +9 -5
- package/src/components/Livestream/HostLivestream/HostLivestream.tsx +5 -6
- package/src/components/Livestream/LivestreamControls/ViewerLivestreamControls.tsx +1 -1
- package/src/components/Livestream/LivestreamLayout/LivestreamLayout.tsx +4 -64
- package/src/components/Livestream/LivestreamPlayer/LivestreamEnded.tsx +54 -18
- package/src/components/Livestream/LivestreamTopView/DurationBadge.tsx +2 -2
- package/src/components/Livestream/ViewerLivestream/ViewerLivestream.tsx +10 -12
- package/src/components/Participant/FloatingParticipantView/index.tsx +26 -18
- package/src/components/Participant/ParticipantView/ParticipantReaction.tsx +1 -1
- package/src/components/Participant/ParticipantView/ParticipantView.tsx +68 -64
- package/src/components/Participant/ParticipantView/VideoRenderer/index.tsx +192 -179
- package/src/hooks/useAutoEnterPiPEffect.tsx +5 -11
- package/src/hooks/useLoopbackRecording.ts +65 -55
- package/src/hooks/useModeration.ts +4 -1
- package/src/icons/index.tsx +0 -6
- package/src/providers/BusyTonePlayer.tsx +11 -11
- package/src/providers/StreamCall/AppStateListener.tsx +3 -0
- package/src/providers/StreamCall/DeviceStats.tsx +2 -1
- package/src/utils/StreamVideoRN/index.ts +0 -1
- package/src/utils/internal/callingx/callingx.ts +20 -10
- package/src/utils/internal/registerSDKGlobals.ts +2 -2
- package/src/utils/push/libs/firebaseMessaging/index.ts +4 -2
- package/src/version.ts +1 -1
- package/dist/commonjs/icons/LeaveStreamIcon.js +0 -20
- package/dist/commonjs/icons/LeaveStreamIcon.js.map +0 -1
- package/dist/commonjs/icons/Settings.js +0 -22
- package/dist/commonjs/icons/Settings.js.map +0 -1
- package/dist/commonjs/icons/ShieldBadge.js +0 -20
- package/dist/commonjs/icons/ShieldBadge.js.map +0 -1
- package/dist/commonjs/icons/Spotlight.js +0 -21
- package/dist/commonjs/icons/Spotlight.js.map +0 -1
- package/dist/commonjs/icons/ThreeDots.js +0 -31
- package/dist/commonjs/icons/ThreeDots.js.map +0 -1
- package/dist/commonjs/icons/TopViewBackground.js +0 -35
- package/dist/commonjs/icons/TopViewBackground.js.map +0 -1
- package/dist/module/icons/LeaveStreamIcon.js +0 -12
- package/dist/module/icons/LeaveStreamIcon.js.map +0 -1
- package/dist/module/icons/Settings.js +0 -13
- package/dist/module/icons/Settings.js.map +0 -1
- package/dist/module/icons/ShieldBadge.js +0 -12
- package/dist/module/icons/ShieldBadge.js.map +0 -1
- package/dist/module/icons/Spotlight.js +0 -13
- package/dist/module/icons/Spotlight.js.map +0 -1
- package/dist/module/icons/ThreeDots.js +0 -23
- package/dist/module/icons/ThreeDots.js.map +0 -1
- package/dist/module/icons/TopViewBackground.js +0 -27
- package/dist/module/icons/TopViewBackground.js.map +0 -1
- package/dist/typescript/icons/LeaveStreamIcon.d.ts +0 -3
- package/dist/typescript/icons/LeaveStreamIcon.d.ts.map +0 -1
- package/dist/typescript/icons/Settings.d.ts +0 -7
- package/dist/typescript/icons/Settings.d.ts.map +0 -1
- package/dist/typescript/icons/ShieldBadge.d.ts +0 -3
- package/dist/typescript/icons/ShieldBadge.d.ts.map +0 -1
- package/dist/typescript/icons/Spotlight.d.ts +0 -8
- package/dist/typescript/icons/Spotlight.d.ts.map +0 -1
- package/dist/typescript/icons/ThreeDots.d.ts +0 -7
- package/dist/typescript/icons/ThreeDots.d.ts.map +0 -1
- package/dist/typescript/icons/TopViewBackground.d.ts +0 -15
- package/dist/typescript/icons/TopViewBackground.d.ts.map +0 -1
- package/src/icons/LeaveStreamIcon.tsx +0 -13
- package/src/icons/Settings.tsx +0 -14
- package/src/icons/ShieldBadge.tsx +0 -13
- package/src/icons/Spotlight.tsx +0 -18
- package/src/icons/ThreeDots.tsx +0 -14
- package/src/icons/TopViewBackground.tsx +0 -43
|
@@ -10,6 +10,7 @@ var _contexts = require("../../../contexts");
|
|
|
10
10
|
var _videoClient = require("@stream-io/video-client");
|
|
11
11
|
var _videoReactBindings = require("@stream-io/video-react-bindings");
|
|
12
12
|
var _icons = require("../../../icons");
|
|
13
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
14
|
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
|
/**
|
|
15
16
|
* Props for the FollowerCount component.
|
|
@@ -31,13 +32,16 @@ const FollowerCount = ({
|
|
|
31
32
|
useParticipantCount
|
|
32
33
|
} = (0, _videoReactBindings.useCallStateHooks)();
|
|
33
34
|
const totalParticipants = useParticipantCount();
|
|
34
|
-
return /*#__PURE__*/
|
|
35
|
-
style: [styles.container, followerCount.container]
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
35
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
36
|
+
style: [styles.container, followerCount.container],
|
|
37
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
38
|
+
style: [styles.icon, followerCount.icon],
|
|
39
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.Eye, {})
|
|
40
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
41
|
+
style: [styles.label, followerCount.label],
|
|
42
|
+
children: humanizeParticipantCount ? (0, _videoClient.humanize)(totalParticipants) : totalParticipants
|
|
43
|
+
})]
|
|
44
|
+
});
|
|
41
45
|
};
|
|
42
46
|
exports.FollowerCount = FollowerCount;
|
|
43
47
|
const useStyles = () => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_contexts","_videoClient","_videoReactBindings","_icons","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","FollowerCount","humanizeParticipantCount","styles","useStyles","theme","followerCount","useTheme","useParticipantCount","useCallStateHooks","totalParticipants","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_contexts","_videoClient","_videoReactBindings","_icons","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","FollowerCount","humanizeParticipantCount","styles","useStyles","theme","followerCount","useTheme","useParticipantCount","useCallStateHooks","totalParticipants","jsxs","View","style","container","children","jsx","icon","Eye","Text","label","humanize","exports","useMemo","StyleSheet","create","paddingHorizontal","variants","spacingSizes","sm","paddingVertical","borderTopRightRadius","borderBottomRightRadius","flexDirection","alignItems","justifyContent","backgroundColor","colors","sheetTertiary","height","iconSizes","width","fontSize","fontSizes","md","fontWeight","flexShrink","textAlign","includeFontPadding","marginLeft","xs","color","textPrimary"],"sourceRoot":"../../../../../src","sources":["components/Livestream/LivestreamTopView/FollowerCount.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,SAAA,GAAAF,OAAA;AACA,IAAAG,YAAA,GAAAH,OAAA;AACA,IAAAI,mBAAA,GAAAJ,OAAA;AACA,IAAAK,MAAA,GAAAL,OAAA;AAAqC,IAAAM,WAAA,GAAAN,OAAA;AAAA,SAAAD,wBAAAQ,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAV,uBAAA,YAAAA,CAAAQ,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CAAA,gBAAAP,CAAA,IAAAD,CAAA,gBAAAC,CAAA,OAAAa,cAAA,CAAAC,IAAA,CAAAf,CAAA,EAAAC,CAAA,OAAAM,CAAA,IAAAD,CAAA,GAAAU,MAAA,CAAAC,cAAA,KAAAD,MAAA,CAAAE,wBAAA,CAAAlB,CAAA,EAAAC,CAAA,OAAAM,CAAA,CAAAK,GAAA,IAAAL,CAAA,CAAAM,GAAA,IAAAP,CAAA,CAAAE,CAAA,EAAAP,CAAA,EAAA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AAE,kBAAQ,EAAC,CAAC;EAC5B,OAAO,IAAAgB,cAAO,EACZ,MACEC,uBAAU,CAACC,MAAM,CAAC;IAChBX,SAAS,EAAE;MACTY,iBAAiB,EAAErB,KAAK,CAACsB,QAAQ,CAACC,YAAY,CAACC,EAAE;MACjDC,eAAe,EAAE,CAAC;MAClBC,oBAAoB,EAAE,CAAC;MACvBC,uBAAuB,EAAE,CAAC;MAC1BC,aAAa,EAAE,KAAK;MACpBC,UAAU,EAAE,QAAQ;MACpBC,cAAc,EAAE,QAAQ;MACxBC,eAAe,EAAE/B,KAAK,CAACgC,MAAM,CAACC;IAChC,CAAC;IACDrB,IAAI,EAAE;MACJsB,MAAM,EAAElC,KAAK,CAACsB,QAAQ,CAACa,SAAS,CAACX,EAAE;MACnCY,KAAK,EAAEpC,KAAK,CAACsB,QAAQ,CAACa,SAAS,CAACX;IAClC,CAAC;IACDT,KAAK,EAAE;MACLsB,QAAQ,EAAErC,KAAK,CAACsB,QAAQ,CAACgB,SAAS,CAACC,EAAE;MACrCC,UAAU,EAAE,KAAK;MACjBC,UAAU,EAAE,CAAC;MACbC,SAAS,EAAE,QAAQ;MACnBC,kBAAkB,EAAE,KAAK;MACzBC,UAAU,EAAE5C,KAAK,CAACsB,QAAQ,CAACC,YAAY,CAACsB,EAAE;MAC1CC,KAAK,EAAE9C,KAAK,CAACgC,MAAM,CAACe;IACtB;EACF,CAAC,CAAC,EACJ,CAAC/C,KAAK,CACR,CAAC;AACH,CAAC","ignoreList":[]}
|
|
@@ -12,6 +12,7 @@ var _FollowerCount = require("./FollowerCount");
|
|
|
12
12
|
var _contexts = require("../../../contexts");
|
|
13
13
|
var _videoReactBindings = require("@stream-io/video-react-bindings");
|
|
14
14
|
var _constants = require("../../../constants");
|
|
15
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
16
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
16
17
|
/**
|
|
17
18
|
* Props for the HostLivestreamTopView component.
|
|
@@ -39,22 +40,26 @@ const HostLivestreamTopView = ({
|
|
|
39
40
|
hostLivestreamTopView
|
|
40
41
|
}
|
|
41
42
|
} = (0, _contexts.useTheme)();
|
|
42
|
-
return /*#__PURE__*/
|
|
43
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
43
44
|
style: [styles.container, {
|
|
44
45
|
backgroundColor: colors.sheetOverlay
|
|
45
46
|
}, hostLivestreamTopView.container],
|
|
46
|
-
onLayout: onLayout
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
47
|
+
onLayout: onLayout,
|
|
48
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
49
|
+
style: [styles.leftElement, hostLivestreamTopView.leftElement],
|
|
50
|
+
children: DurationBadge && /*#__PURE__*/(0, _jsxRuntime.jsx)(DurationBadge, {
|
|
51
|
+
mode: "host"
|
|
52
|
+
})
|
|
53
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
54
|
+
style: [styles.centerElement, hostLivestreamTopView.centerElement]
|
|
55
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
56
|
+
style: [styles.rightElement, hostLivestreamTopView.rightElement],
|
|
57
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
58
|
+
style: [styles.liveInfo, hostLivestreamTopView.liveInfo],
|
|
59
|
+
children: [liveOrBroadcasting && LiveIndicator && /*#__PURE__*/(0, _jsxRuntime.jsx)(LiveIndicator, {}), FollowerCount && /*#__PURE__*/(0, _jsxRuntime.jsx)(FollowerCount, {})]
|
|
60
|
+
})
|
|
61
|
+
})]
|
|
62
|
+
});
|
|
58
63
|
};
|
|
59
64
|
exports.HostLivestreamTopView = HostLivestreamTopView;
|
|
60
65
|
const styles = _reactNative.StyleSheet.create({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_DurationBadge","_LiveIndicator","_FollowerCount","_contexts","_videoReactBindings","_constants","e","__esModule","default","HostLivestreamTopView","DurationBadge","DefaultDurationBadge","LiveIndicator","DefaultLiveIndicator","FollowerCount","DefaultFollowerCount","onLayout","useIsCallLive","useIsCallHLSBroadcastingInProgress","useCallStateHooks","isCallLive","isBroadcasting","liveOrBroadcasting","theme","colors","hostLivestreamTopView","useTheme","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_DurationBadge","_LiveIndicator","_FollowerCount","_contexts","_videoReactBindings","_constants","_jsxRuntime","e","__esModule","default","HostLivestreamTopView","DurationBadge","DefaultDurationBadge","LiveIndicator","DefaultLiveIndicator","FollowerCount","DefaultFollowerCount","onLayout","useIsCallLive","useIsCallHLSBroadcastingInProgress","useCallStateHooks","isCallLive","isBroadcasting","liveOrBroadcasting","theme","colors","hostLivestreamTopView","useTheme","jsxs","View","style","styles","container","backgroundColor","sheetOverlay","children","jsx","leftElement","mode","centerElement","rightElement","liveInfo","exports","StyleSheet","create","position","top","flexDirection","alignItems","paddingVertical","paddingHorizontal","borderBottomEndRadius","borderBottomStartRadius","zIndex","Z_INDEX","IN_FRONT","flex"],"sourceRoot":"../../../../../src","sources":["components/Livestream/LivestreamTopView/HostLivestreamTopView.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,cAAA,GAAAF,OAAA;AAIA,IAAAG,cAAA,GAAAH,OAAA;AAIA,IAAAI,cAAA,GAAAJ,OAAA;AAIA,IAAAK,SAAA,GAAAL,OAAA;AACA,IAAAM,mBAAA,GAAAN,OAAA;AACA,IAAAO,UAAA,GAAAP,OAAA;AAA6C,IAAAQ,WAAA,GAAAR,OAAA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@@ -8,6 +8,7 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
8
8
|
var _reactNative = require("react-native");
|
|
9
9
|
var _contexts = require("../../../contexts");
|
|
10
10
|
var _videoReactBindings = require("@stream-io/video-react-bindings");
|
|
11
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
12
|
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); }
|
|
12
13
|
/**
|
|
13
14
|
* Props for the LiveIndicator component.
|
|
@@ -28,15 +29,17 @@ const LiveIndicator = ({}) => {
|
|
|
28
29
|
const {
|
|
29
30
|
t
|
|
30
31
|
} = (0, _videoReactBindings.useI18n)();
|
|
31
|
-
return /*#__PURE__*/
|
|
32
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
32
33
|
style: [styles.container, {
|
|
33
34
|
backgroundColor: colors.buttonPrimary
|
|
34
|
-
}, liveIndicator.container]
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
35
|
+
}, liveIndicator.container],
|
|
36
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
37
|
+
style: [styles.label, {
|
|
38
|
+
color: colors.textPrimary
|
|
39
|
+
}, typefaces.subtitleBold, liveIndicator.label],
|
|
40
|
+
children: t('Live')
|
|
41
|
+
})
|
|
42
|
+
});
|
|
40
43
|
};
|
|
41
44
|
exports.LiveIndicator = LiveIndicator;
|
|
42
45
|
const useStyles = () => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_contexts","_videoReactBindings","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","LiveIndicator","styles","useStyles","theme","colors","typefaces","liveIndicator","useTheme","useI18n","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_contexts","_videoReactBindings","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","LiveIndicator","styles","useStyles","theme","colors","typefaces","liveIndicator","useTheme","useI18n","jsx","View","style","container","backgroundColor","buttonPrimary","children","Text","label","color","textPrimary","subtitleBold","exports","useMemo","StyleSheet","create","paddingHorizontal","variants","spacingSizes","sm","paddingVertical","borderTopLeftRadius","borderRadiusSizes","borderBottomLeftRadius","justifyContent","textAlign","includeFontPadding"],"sourceRoot":"../../../../../src","sources":["components/Livestream/LivestreamTopView/LiveIndicator.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,SAAA,GAAAF,OAAA;AACA,IAAAG,mBAAA,GAAAH,OAAA;AAA0D,IAAAI,WAAA,GAAAJ,OAAA;AAAA,SAAAD,wBAAAM,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAR,uBAAA,YAAAA,CAAAM,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ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,KAAK,EAAEd,MAAM,CAACe;MAAY,CAAC,EAC7Bd,SAAS,CAACe,YAAY,EACtBd,aAAa,CAACW,KAAK,CACnB;MAAAF,QAAA,EAEDjC,CAAC,CAAC,MAAM;IAAC,CACN;EAAC,CACH,CAAC;AAEX,CAAC;AAACuC,OAAA,CAAArB,aAAA,GAAAA,aAAA;AAEF,MAAME,SAAS,GAAGA,CAAA,KAAM;EACtB,MAAM;IAAEC;EAAM,CAAC,GAAG,IAAAI,kBAAQ,EAAC,CAAC;EAC5B,OAAO,IAAAe,cAAO,EACZ,MACEC,uBAAU,CAACC,MAAM,CAAC;IAChBZ,SAAS,EAAE;MACTa,iBAAiB,EAAEtB,KAAK,CAACuB,QAAQ,CAACC,YAAY,CAACC,EAAE;MACjDC,eAAe,EAAE1B,KAAK,CAACuB,QAAQ,CAACC,YAAY,CAACC,EAAE;MAC/CE,mBAAmB,EAAE3B,KAAK,CAACuB,QAAQ,CAACK,iBAAiB,CAACH,EAAE;MACxDI,sBAAsB,EAAE7B,KAAK,CAACuB,QAAQ,CAACK,iBAAiB,CAACH,EAAE;MAC3DK,cAAc,EAAE;IAClB,CAAC;IACDhB,KAAK,EAAE;MACLiB,SAAS,EAAE,QAAQ;MACnBC,kBAAkB,EAAE;IACtB;EACF,CAAC,CAAC,EACJ,CAAChC,KAAK,CACR,CAAC;AACH,CAAC","ignoreList":[]}
|
|
@@ -11,6 +11,7 @@ var _LiveIndicator = require("./LiveIndicator");
|
|
|
11
11
|
var _FollowerCount = require("./FollowerCount");
|
|
12
12
|
var _contexts = require("../../../contexts");
|
|
13
13
|
var _constants = require("../../../constants");
|
|
14
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
15
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
15
16
|
/**
|
|
16
17
|
* Props for the ViewerLivestreamTopView component.
|
|
@@ -31,22 +32,26 @@ const ViewerLivestreamTopView = ({
|
|
|
31
32
|
viewerLivestreamTopView
|
|
32
33
|
}
|
|
33
34
|
} = (0, _contexts.useTheme)();
|
|
34
|
-
return /*#__PURE__*/
|
|
35
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
35
36
|
style: [styles.container, {
|
|
36
37
|
backgroundColor: colors.sheetOverlay
|
|
37
38
|
}, viewerLivestreamTopView.container],
|
|
38
|
-
onLayout: onLayout
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
39
|
+
onLayout: onLayout,
|
|
40
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
41
|
+
style: [styles.leftElement, viewerLivestreamTopView.leftElement],
|
|
42
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
43
|
+
style: [styles.liveInfo, viewerLivestreamTopView.liveInfo],
|
|
44
|
+
children: [LiveIndicator && /*#__PURE__*/(0, _jsxRuntime.jsx)(LiveIndicator, {}), FollowerCount && /*#__PURE__*/(0, _jsxRuntime.jsx)(FollowerCount, {})]
|
|
45
|
+
})
|
|
46
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
47
|
+
style: [styles.centerElement, viewerLivestreamTopView.centerElement],
|
|
48
|
+
children: DurationBadge && /*#__PURE__*/(0, _jsxRuntime.jsx)(DurationBadge, {
|
|
49
|
+
mode: "viewer"
|
|
50
|
+
})
|
|
51
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
52
|
+
style: [styles.rightElement, viewerLivestreamTopView.rightElement]
|
|
53
|
+
})]
|
|
54
|
+
});
|
|
50
55
|
};
|
|
51
56
|
exports.ViewerLivestreamTopView = ViewerLivestreamTopView;
|
|
52
57
|
const styles = _reactNative.StyleSheet.create({
|
package/dist/commonjs/components/Livestream/LivestreamTopView/ViewerLivestreamTopView.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_DurationBadge","_LiveIndicator","_FollowerCount","_contexts","_constants","e","__esModule","default","ViewerLivestreamTopView","DurationBadge","DefaultDurationBadge","LiveIndicator","DefaultLiveIndicator","FollowerCount","DefaultFollowerCount","onLayout","theme","colors","viewerLivestreamTopView","useTheme","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_DurationBadge","_LiveIndicator","_FollowerCount","_contexts","_constants","_jsxRuntime","e","__esModule","default","ViewerLivestreamTopView","DurationBadge","DefaultDurationBadge","LiveIndicator","DefaultLiveIndicator","FollowerCount","DefaultFollowerCount","onLayout","theme","colors","viewerLivestreamTopView","useTheme","jsxs","View","style","styles","container","backgroundColor","sheetOverlay","children","jsx","leftElement","liveInfo","centerElement","mode","rightElement","exports","StyleSheet","create","position","top","flexDirection","alignItems","paddingVertical","paddingHorizontal","borderBottomEndRadius","borderBottomStartRadius","zIndex","Z_INDEX","IN_FRONT","flex","flexGrow"],"sourceRoot":"../../../../../src","sources":["components/Livestream/LivestreamTopView/ViewerLivestreamTopView.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,cAAA,GAAAF,OAAA;AAIA,IAAAG,cAAA,GAAAH,OAAA;AAIA,IAAAI,cAAA,GAAAJ,OAAA;AAIA,IAAAK,SAAA,GAAAL,OAAA;AACA,IAAAM,UAAA,GAAAN,OAAA;AAA6C,IAAAO,WAAA,GAAAP,OAAA;AAAA,SAAAD,uBAAAS,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAE7C;AACA;AACA;;AAiBA;AACA;AACA;AACO,MAAMG,uBAAuB,GAAGA,CAAC;EACtCC,aAAa,GAAGC,4BAAo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uB,IAAI;MACHC,KAAK,EAAE,CAACC,MAAM,CAACU,YAAY,EAAEf,uBAAuB,CAACe,YAAY;IAAE,CACpE,CAAC;EAAA,CACE,CAAC;AAEX,CAAC;AAACC,OAAA,CAAA1B,uBAAA,GAAAA,uBAAA;AAEF,MAAMe,MAAM,GAAGY,uBAAU,CAACC,MAAM,CAAC;EAC/BZ,SAAS,EAAE;IACTa,QAAQ,EAAE,UAAU;IACpBC,GAAG,EAAE,CAAC;IACNC,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE,QAAQ;IACpBC,eAAe,EAAE,EAAE;IACnBC,iBAAiB,EAAE,CAAC;IACpBC,qBAAqB,EAAE,CAAC;IACxBC,uBAAuB,EAAE,CAAC;IAC1BC,MAAM,EAAEC,kBAAO,CAACC;EAClB,CAAC;EACDjB,QAAQ,EAAE;IACRS,aAAa,EAAE;EACjB,CAAC;EACDV,WAAW,EAAE;IACXmB,IAAI,EAAE,CAAC;IACPR,UAAU,EAAE;EACd,CAAC;EACDT,aAAa,EAAE;IACbiB,IAAI,EAAE,CAAC;IACPR,UAAU,EAAE,QAAQ;IACpBS,QAAQ,EAAE;EACZ,CAAC;EACDhB,YAAY,EAAE;IACZe,IAAI,EAAE,CAAC;IACPR,UAAU,EAAE;EACd;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -15,6 +15,7 @@ var _videoClient = require("@stream-io/video-client");
|
|
|
15
15
|
var _LivestreamEnded = require("../LivestreamPlayer/LivestreamEnded");
|
|
16
16
|
var _ViewerLobby = require("./ViewerLobby");
|
|
17
17
|
var _PrevLibDetection = require("../../../modules/call-manager/PrevLibDetection");
|
|
18
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
18
19
|
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); }
|
|
19
20
|
/**
|
|
20
21
|
* Props for the ViewerLivestream component.
|
|
@@ -65,14 +66,13 @@ const ViewerLivestream = ({
|
|
|
65
66
|
// Automatically route audio to speaker devices as relevant for watching videos.
|
|
66
67
|
(0, _react.useEffect)(() => {
|
|
67
68
|
const prevInCallManager = (0, _PrevLibDetection.getRNInCallManagerLibNoThrow)();
|
|
68
|
-
if (prevInCallManager)
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
}
|
|
69
|
+
if (!prevInCallManager) return;
|
|
70
|
+
prevInCallManager.start({
|
|
71
|
+
media: 'video'
|
|
72
|
+
});
|
|
73
|
+
return () => {
|
|
74
|
+
prevInCallManager.stop();
|
|
75
|
+
};
|
|
76
76
|
}, []);
|
|
77
77
|
(0, _react.useEffect)(() => {
|
|
78
78
|
if (callingState === _videoClient.CallingState.LEFT) {
|
|
@@ -98,32 +98,37 @@ const ViewerLivestream = ({
|
|
|
98
98
|
}
|
|
99
99
|
}, [canJoinLive, call, canJoinBackstage, canJoinEarly, joinBehavior, callingState, hasLeft]);
|
|
100
100
|
if (endedAt != null) {
|
|
101
|
-
return /*#__PURE__*/
|
|
102
|
-
style: [styles.container, viewerLivestream.container]
|
|
103
|
-
|
|
101
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
102
|
+
style: [styles.container, viewerLivestream.container],
|
|
103
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_LivestreamEnded.CallEndedView, {})
|
|
104
|
+
});
|
|
104
105
|
}
|
|
105
106
|
if (!canJoinLive || callingState !== _videoClient.CallingState.JOINED) {
|
|
106
|
-
return /*#__PURE__*/
|
|
107
|
-
style: [styles.container, viewerLivestream.container]
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
107
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
108
|
+
style: [styles.container, viewerLivestream.container],
|
|
109
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_ViewerLobby.ViewerLobby, {
|
|
110
|
+
isLive: canJoinLive
|
|
111
|
+
})
|
|
112
|
+
});
|
|
111
113
|
}
|
|
112
|
-
return /*#__PURE__*/
|
|
113
|
-
style: [styles.container, viewerLivestream.container]
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
114
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
115
|
+
style: [styles.container, viewerLivestream.container],
|
|
116
|
+
children: [ViewerLivestreamTopView && /*#__PURE__*/(0, _jsxRuntime.jsx)(ViewerLivestreamTopView, {
|
|
117
|
+
...topViewProps
|
|
118
|
+
}), FloatingParticipantView && floatingParticipant && topViewHeight && controlsHeight && /*#__PURE__*/(0, _jsxRuntime.jsx)(FloatingParticipantView, {
|
|
119
|
+
participant: floatingParticipant,
|
|
120
|
+
draggableContainerStyle: [_reactNative.StyleSheet.absoluteFill, {
|
|
121
|
+
top: topViewHeight,
|
|
122
|
+
bottom: controlsHeight
|
|
123
|
+
}]
|
|
124
|
+
}), LivestreamLayout && /*#__PURE__*/(0, _jsxRuntime.jsx)(LivestreamLayout, {}), ViewerLivestreamControls && /*#__PURE__*/(0, _jsxRuntime.jsx)(ViewerLivestreamControls, {
|
|
125
|
+
ViewerLeaveStreamButton: ViewerLeaveStreamButton,
|
|
126
|
+
onLeaveStreamHandler: onLeaveStreamHandler,
|
|
127
|
+
onLayout: event => {
|
|
128
|
+
setControlsHeight(event.nativeEvent.layout.height);
|
|
129
|
+
}
|
|
130
|
+
})]
|
|
131
|
+
});
|
|
127
132
|
};
|
|
128
133
|
exports.ViewerLivestream = ViewerLivestream;
|
|
129
134
|
const useCanJoinEarly = () => {
|
|
@@ -136,12 +141,11 @@ const useCanJoinEarly = () => {
|
|
|
136
141
|
const joinAheadTimeSeconds = settings?.backstage.join_ahead_time_seconds;
|
|
137
142
|
const [canJoinEarly, setCanJoinEarly] = (0, _react.useState)(() => checkCanJoinEarly(startsAt, joinAheadTimeSeconds));
|
|
138
143
|
(0, _react.useEffect)(() => {
|
|
139
|
-
if (
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
}
|
|
144
|
+
if (canJoinEarly) return;
|
|
145
|
+
const handle = setInterval(() => {
|
|
146
|
+
setCanJoinEarly(checkCanJoinEarly(startsAt, joinAheadTimeSeconds));
|
|
147
|
+
}, 1000);
|
|
148
|
+
return () => clearInterval(handle);
|
|
145
149
|
}, [canJoinEarly, startsAt, joinAheadTimeSeconds]);
|
|
146
150
|
return canJoinEarly;
|
|
147
151
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_contexts","_ViewerLivestreamControls","_LivestreamLayout","_videoReactBindings","_Participant","_videoClient","_LivestreamEnded","_ViewerLobby","_PrevLibDetection","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","ViewerLivestream","ViewerLivestreamTopView","ViewerLivestreamControls","DefaultViewerLivestreamControls","LivestreamLayout","DefaultLivestreamLayout","FloatingParticipantView","DefaultFloatingParticipantView","LiveIndicator","FollowerCount","DurationBadge","ViewerLeaveStreamButton","onLeaveStreamHandler","joinBehavior","styles","useStyles","useCall","theme","viewerLivestream","useTheme","useHasOngoingScreenShare","useParticipants","useCallCallingState","useCallEndedAt","useIsCallLive","useOwnCapabilities","useCallStateHooks","canJoinLive","callingState","endedAt","hasOngoingScreenShare","currentSpeaker","floatingParticipant","hasVideo","hasLeft","setHasLeft","useState","canJoinEarly","useCanJoinEarly","canJoinBackstage","includes","topViewHeight","setTopViewHeight","React","controlsHeight","setControlsHeight","useEffect","prevInCallManager","getRNInCallManagerLibNoThrow","start","media","stop","CallingState","LEFT","topViewProps","onLayout","event","nativeEvent","layout","height","canJoinAsap","join","canJoin","IDLE","catch","error","console","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_contexts","_ViewerLivestreamControls","_LivestreamLayout","_videoReactBindings","_Participant","_videoClient","_LivestreamEnded","_ViewerLobby","_PrevLibDetection","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","ViewerLivestream","ViewerLivestreamTopView","ViewerLivestreamControls","DefaultViewerLivestreamControls","LivestreamLayout","DefaultLivestreamLayout","FloatingParticipantView","DefaultFloatingParticipantView","LiveIndicator","FollowerCount","DurationBadge","ViewerLeaveStreamButton","onLeaveStreamHandler","joinBehavior","styles","useStyles","useCall","theme","viewerLivestream","useTheme","useHasOngoingScreenShare","useParticipants","useCallCallingState","useCallEndedAt","useIsCallLive","useOwnCapabilities","useCallStateHooks","canJoinLive","callingState","endedAt","hasOngoingScreenShare","currentSpeaker","floatingParticipant","hasVideo","hasLeft","setHasLeft","useState","canJoinEarly","useCanJoinEarly","canJoinBackstage","includes","topViewHeight","setTopViewHeight","React","controlsHeight","setControlsHeight","useEffect","prevInCallManager","getRNInCallManagerLibNoThrow","start","media","stop","CallingState","LEFT","topViewProps","onLayout","event","nativeEvent","layout","height","canJoinAsap","join","canJoin","IDLE","catch","error","console","jsx","View","style","container","children","CallEndedView","JOINED","ViewerLobby","isLive","jsxs","participant","draggableContainerStyle","StyleSheet","absoluteFill","top","bottom","exports","useCallStartsAt","useCallSettings","startsAt","settings","joinAheadTimeSeconds","backstage","join_ahead_time_seconds","setCanJoinEarly","checkCanJoinEarly","handle","setInterval","clearInterval","Date","now","useMemo","create","flex","paddingBottom","variants","insets","paddingLeft","left","paddingRight","right","paddingTop","backgroundColor","colors","sheetPrimary"],"sourceRoot":"../../../../../src","sources":["components/Livestream/ViewerLivestream/ViewerLivestream.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,SAAA,GAAAF,OAAA;AAEA,IAAAG,yBAAA,GAAAH,OAAA;AAKA,IAAAI,iBAAA,GAAAJ,OAAA;AAIA,IAAAK,mBAAA,GAAAL,OAAA;AACA,IAAAM,YAAA,GAAAN,OAAA;AAIA,IAAAO,YAAA,GAAAP,OAAA;AACA,IAAAQ,gBAAA,GAAAR,OAAA;AACA,IAAAS,YAAA,GAAAT,OAAA;AACA,IAAAU,iBAAA,GAAAV,OAAA;AAA8F,IAAAW,WAAA,GAAAX,OAAA;AAAA,SAAAD,wBAAAa,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAf,uBAAA,YAAAA,CAAAa,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CAAA,gBAAAP,CAAA,IAAAD,CAAA,gBAAAC,CAAA,OAAAa,cAAA,CAA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-9,6 +9,7 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
9
9
|
var _reactNative = require("react-native");
|
|
10
10
|
var _contexts = require("../../../contexts");
|
|
11
11
|
var _videoClient = require("@stream-io/video-client");
|
|
12
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
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); }
|
|
13
14
|
const ViewerLobby = ({
|
|
14
15
|
isLive
|
|
@@ -69,33 +70,42 @@ const ViewerLobby = ({
|
|
|
69
70
|
getCall();
|
|
70
71
|
}, [call]);
|
|
71
72
|
if (error) {
|
|
72
|
-
return /*#__PURE__*/
|
|
73
|
-
style: styles.container
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
73
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
74
|
+
style: styles.container,
|
|
75
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
76
|
+
style: styles.text,
|
|
77
|
+
children: "Error joining the livestream. Please try again later."
|
|
78
|
+
})
|
|
79
|
+
});
|
|
77
80
|
}
|
|
78
81
|
const isJoiningLiveCall = callingState === _videoClient.CallingState.JOINING;
|
|
79
82
|
if (isJoiningLiveCall) {
|
|
80
|
-
return /*#__PURE__*/
|
|
81
|
-
style: styles.container
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
83
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
84
|
+
style: styles.container,
|
|
85
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.ActivityIndicator, {
|
|
86
|
+
size: "large",
|
|
87
|
+
color: theme.colors.textPrimary
|
|
88
|
+
})
|
|
89
|
+
});
|
|
86
90
|
}
|
|
87
|
-
return /*#__PURE__*/
|
|
88
|
-
style: styles.container
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
91
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
92
|
+
style: styles.container,
|
|
93
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
94
|
+
style: styles.text,
|
|
95
|
+
children: isLive ? t('Livestream is still in progress') : startsAt ? t('Livestream will start in:') : t('Livestream will start soon')
|
|
96
|
+
}), startsAt && !isLive && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
97
|
+
style: styles.countdownText,
|
|
98
|
+
children: countdown
|
|
99
|
+
}), !isLive && participants.length > 0 && /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
100
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
101
|
+
style: styles.participantsText,
|
|
102
|
+
children: `${participants.length} ${t('participants have joined early')}`
|
|
103
|
+
})
|
|
104
|
+
}), isLive && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Button, {
|
|
105
|
+
title: t('Join Livestream'),
|
|
106
|
+
onPress: () => call?.join()
|
|
107
|
+
})]
|
|
108
|
+
});
|
|
99
109
|
};
|
|
100
110
|
exports.ViewerLobby = ViewerLobby;
|
|
101
111
|
const useStyles = () => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_videoReactBindings","require","_react","_interopRequireWildcard","_reactNative","_contexts","_videoClient","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","ViewerLobby","isLive","styles","useStyles","theme","useTheme","useI18n","useCallStartsAt","useParticipants","useCallCallingState","useCallStateHooks","callingState","useCall","startsAt","error","setError","useState","undefined","countdown","setCountdown","React","getCountdown","participants","useEffect","updateCountdown","timeRemaining","Math","max","getTime","Date","now","clearInterval","intervalId","setInterval","getCall","err","Error","logger","videoLoggerSystem","getLogger","
|
|
1
|
+
{"version":3,"names":["_videoReactBindings","require","_react","_interopRequireWildcard","_reactNative","_contexts","_videoClient","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","ViewerLobby","isLive","styles","useStyles","theme","useTheme","useI18n","useCallStartsAt","useParticipants","useCallCallingState","useCallStateHooks","callingState","useCall","startsAt","error","setError","useState","undefined","countdown","setCountdown","React","getCountdown","participants","useEffect","updateCountdown","timeRemaining","Math","max","getTime","Date","now","clearInterval","intervalId","setInterval","getCall","err","Error","logger","videoLoggerSystem","getLogger","jsx","View","style","container","children","Text","text","isJoiningLiveCall","CallingState","JOINING","ActivityIndicator","size","color","colors","textPrimary","jsxs","countdownText","length","Fragment","participantsText","Button","title","onPress","join","exports","useMemo","StyleSheet","create","flex","justifyContent","alignItems","backgroundColor","sheetPrimary","padding","variants","spacingSizes","lg","fontSize","fontSizes","margin","md","textAlign","xl","fontWeight","marginBottom","textSecondary","sm","minutes","floor","seconds","toString","padStart"],"sourceRoot":"../../../../../src","sources":["components/Livestream/ViewerLivestream/ViewerLobby.tsx"],"mappings":";;;;;;AAAA,IAAAA,mBAAA,GAAAC,OAAA;AAKA,IAAAC,MAAA,GAAAC,uBAAA,CAAAF,OAAA;AACA,IAAAG,YAAA,GAAAH,OAAA;AAOA,IAAAI,SAAA,GAAAJ,OAAA;AACA,IAAAK,YAAA,GAAAL,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