@stream-io/video-react-native-sdk 1.3.7 → 1.4.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 +16 -0
- package/dist/commonjs/components/Call/CallContent/CallContent.js +25 -20
- package/dist/commonjs/components/Call/CallContent/CallContent.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/AcceptCallButton.js +8 -6
- package/dist/commonjs/components/Call/CallControls/AcceptCallButton.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/CallControls.js +2 -2
- package/dist/commonjs/components/Call/CallControls/CallControls.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/CallControlsButton.js +11 -18
- package/dist/commonjs/components/Call/CallControls/CallControlsButton.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/HangupCallButton.js +8 -13
- package/dist/commonjs/components/Call/CallControls/HangupCallButton.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/IncomingCallControls.js +5 -1
- package/dist/commonjs/components/Call/CallControls/IncomingCallControls.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/LobbyControls.js +16 -9
- package/dist/commonjs/components/Call/CallControls/LobbyControls.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/ReactionsButton.js +3 -3
- package/dist/commonjs/components/Call/CallControls/ReactionsButton.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/RejectCallButton.js +8 -6
- package/dist/commonjs/components/Call/CallControls/RejectCallButton.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/ScreenShareToggleButton.js +10 -6
- package/dist/commonjs/components/Call/CallControls/ScreenShareToggleButton.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/ToggleAudioPreviewButton.js +10 -10
- package/dist/commonjs/components/Call/CallControls/ToggleAudioPreviewButton.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/ToggleAudioPublishingButton.js +9 -6
- package/dist/commonjs/components/Call/CallControls/ToggleAudioPublishingButton.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/ToggleCameraFaceButton.js +10 -6
- package/dist/commonjs/components/Call/CallControls/ToggleCameraFaceButton.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/ToggleVideoPreviewButton.js +10 -10
- package/dist/commonjs/components/Call/CallControls/ToggleVideoPreviewButton.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/ToggleVideoPublishingButton.js +9 -6
- package/dist/commonjs/components/Call/CallControls/ToggleVideoPublishingButton.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/index.js +0 -11
- package/dist/commonjs/components/Call/CallControls/index.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/internal/ReactionsPicker.js +32 -28
- package/dist/commonjs/components/Call/CallControls/internal/ReactionsPicker.js.map +1 -1
- package/dist/commonjs/components/Call/CallLayout/CallParticipantsGrid.js +1 -1
- package/dist/commonjs/components/Call/CallLayout/CallParticipantsGrid.js.map +1 -1
- package/dist/commonjs/components/Call/CallLayout/CallParticipantsSpotlight.js +31 -25
- package/dist/commonjs/components/Call/CallLayout/CallParticipantsSpotlight.js.map +1 -1
- package/dist/commonjs/components/Call/CallParticipantsList/CallParticipantsList.js +32 -17
- package/dist/commonjs/components/Call/CallParticipantsList/CallParticipantsList.js.map +1 -1
- package/dist/commonjs/components/Call/Lobby/JoinCallButton.js +21 -14
- package/dist/commonjs/components/Call/Lobby/JoinCallButton.js.map +1 -1
- package/dist/commonjs/components/Call/Lobby/Lobby.js +66 -94
- package/dist/commonjs/components/Call/Lobby/Lobby.js.map +1 -1
- package/dist/commonjs/components/Call/Lobby/LobbyFooter.js +60 -23
- package/dist/commonjs/components/Call/Lobby/LobbyFooter.js.map +1 -1
- package/dist/commonjs/components/Call/RingingCallContent/IncomingCall.js +6 -7
- package/dist/commonjs/components/Call/RingingCallContent/IncomingCall.js.map +1 -1
- package/dist/commonjs/components/Call/RingingCallContent/OutgoingCall.js +6 -7
- package/dist/commonjs/components/Call/RingingCallContent/OutgoingCall.js.map +1 -1
- package/dist/commonjs/components/Call/RingingCallContent/RingingCallContent.js +0 -4
- package/dist/commonjs/components/Call/RingingCallContent/RingingCallContent.js.map +1 -1
- package/dist/commonjs/components/Call/RingingCallContent/TextBasedIndicator.js +3 -3
- package/dist/commonjs/components/Call/RingingCallContent/TextBasedIndicator.js.map +1 -1
- package/dist/commonjs/components/Call/RingingCallContent/UserInfo.js +1 -1
- package/dist/commonjs/components/Call/RingingCallContent/UserInfo.js.map +1 -1
- package/dist/commonjs/components/Call/index.js +0 -11
- package/dist/commonjs/components/Call/index.js.map +1 -1
- package/dist/commonjs/components/Livestream/HostLivestream/HostLivestream.js +31 -20
- package/dist/commonjs/components/Livestream/HostLivestream/HostLivestream.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamControls/HostLivestreamControls.js +1 -1
- package/dist/commonjs/components/Livestream/LivestreamControls/HostLivestreamControls.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamControls/HostStartStreamButton.js +2 -2
- package/dist/commonjs/components/Livestream/LivestreamControls/HostStartStreamButton.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamControls/LivestreamAudioControlButton.js +7 -5
- package/dist/commonjs/components/Livestream/LivestreamControls/LivestreamAudioControlButton.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamControls/LivestreamScreenShareToggleButton.js +5 -3
- package/dist/commonjs/components/Livestream/LivestreamControls/LivestreamScreenShareToggleButton.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamControls/LivestreamVideoControlButton.js +7 -5
- package/dist/commonjs/components/Livestream/LivestreamControls/LivestreamVideoControlButton.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamControls/ViewerLeaveStreamButton.js +2 -2
- package/dist/commonjs/components/Livestream/LivestreamControls/ViewerLeaveStreamButton.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamControls/ViewerLivestreamControls.js +1 -1
- package/dist/commonjs/components/Livestream/LivestreamControls/ViewerLivestreamControls.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamLayout/LivestreamLayout.js +1 -1
- package/dist/commonjs/components/Livestream/LivestreamLayout/LivestreamLayout.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamTopView/DurationBadge.js +2 -2
- package/dist/commonjs/components/Livestream/LivestreamTopView/DurationBadge.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamTopView/FollowerCount.js +2 -2
- package/dist/commonjs/components/Livestream/LivestreamTopView/FollowerCount.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamTopView/HostLivestreamTopView.js +1 -1
- package/dist/commonjs/components/Livestream/LivestreamTopView/HostLivestreamTopView.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamTopView/LiveIndicator.js +2 -2
- package/dist/commonjs/components/Livestream/LivestreamTopView/LiveIndicator.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamTopView/ViewerLivestreamTopView.js +1 -1
- package/dist/commonjs/components/Livestream/LivestreamTopView/ViewerLivestreamTopView.js.map +1 -1
- package/dist/commonjs/components/Livestream/ViewerLivestream/ViewerLivestream.js +16 -5
- package/dist/commonjs/components/Livestream/ViewerLivestream/ViewerLivestream.js.map +1 -1
- package/dist/commonjs/components/Participant/FloatingParticipantView/FloatingView/ReanimatedFloatingView.js.map +1 -1
- package/dist/commonjs/components/Participant/FloatingParticipantView/index.js +6 -5
- package/dist/commonjs/components/Participant/FloatingParticipantView/index.js.map +1 -1
- package/dist/commonjs/components/Participant/ParticipantView/ParticipantLabel.js +72 -49
- package/dist/commonjs/components/Participant/ParticipantView/ParticipantLabel.js.map +1 -1
- package/dist/commonjs/components/Participant/ParticipantView/ParticipantNetworkQualityIndicator.js +5 -5
- package/dist/commonjs/components/Participant/ParticipantView/ParticipantNetworkQualityIndicator.js.map +1 -1
- package/dist/commonjs/components/Participant/ParticipantView/ParticipantReaction.js +28 -15
- package/dist/commonjs/components/Participant/ParticipantView/ParticipantReaction.js.map +1 -1
- package/dist/commonjs/components/Participant/ParticipantView/ParticipantVideoFallback.js +2 -2
- package/dist/commonjs/components/Participant/ParticipantView/ParticipantVideoFallback.js.map +1 -1
- package/dist/commonjs/components/Participant/ParticipantView/ParticipantView.js +29 -21
- package/dist/commonjs/components/Participant/ParticipantView/ParticipantView.js.map +1 -1
- package/dist/commonjs/components/Participant/ParticipantView/SpeechIndicator.js +86 -0
- package/dist/commonjs/components/Participant/ParticipantView/SpeechIndicator.js.map +1 -0
- package/dist/commonjs/components/utility/Avatar.js +1 -1
- package/dist/commonjs/components/utility/Avatar.js.map +1 -1
- package/dist/commonjs/components/utility/ScreenShareOverlay.js +6 -5
- package/dist/commonjs/components/utility/ScreenShareOverlay.js.map +1 -1
- package/dist/commonjs/constants/TestIds.js +1 -1
- package/dist/commonjs/constants/TestIds.js.map +1 -1
- package/dist/commonjs/constants/index.js +24 -5
- package/dist/commonjs/constants/index.js.map +1 -1
- package/dist/commonjs/icons/CameraSwitch.js +6 -3
- package/dist/commonjs/icons/CameraSwitch.js.map +1 -1
- package/dist/commonjs/icons/IconWrapper.js +25 -0
- package/dist/commonjs/icons/IconWrapper.js.map +1 -0
- package/dist/commonjs/icons/Lock.js +26 -0
- package/dist/commonjs/icons/Lock.js.map +1 -0
- package/dist/commonjs/icons/Mic.js +6 -6
- package/dist/commonjs/icons/Mic.js.map +1 -1
- package/dist/commonjs/icons/MicOff.js +6 -3
- package/dist/commonjs/icons/MicOff.js.map +1 -1
- package/dist/commonjs/icons/Phone.js +13 -3
- package/dist/commonjs/icons/Phone.js.map +1 -1
- package/dist/commonjs/icons/PhoneDown.js +6 -3
- package/dist/commonjs/icons/PhoneDown.js.map +1 -1
- package/dist/commonjs/icons/PinVertical.js +5 -2
- package/dist/commonjs/icons/PinVertical.js.map +1 -1
- package/dist/commonjs/icons/Reaction.js +3 -1
- package/dist/commonjs/icons/Reaction.js.map +1 -1
- package/dist/commonjs/icons/ScreenShare.js +6 -3
- package/dist/commonjs/icons/ScreenShare.js.map +1 -1
- package/dist/commonjs/icons/StopScreenShare.js +5 -2
- package/dist/commonjs/icons/StopScreenShare.js.map +1 -1
- package/dist/commonjs/icons/Video.js +6 -3
- package/dist/commonjs/icons/Video.js.map +1 -1
- package/dist/commonjs/icons/VideoSlash.js +6 -3
- package/dist/commonjs/icons/VideoSlash.js.map +1 -1
- package/dist/commonjs/icons/index.js +11 -22
- package/dist/commonjs/icons/index.js.map +1 -1
- package/dist/commonjs/theme/colors.js +22 -39
- package/dist/commonjs/theme/colors.js.map +1 -1
- package/dist/commonjs/theme/constants.js +44 -44
- package/dist/commonjs/theme/constants.js.map +1 -1
- package/dist/commonjs/theme/index.js +11 -10
- package/dist/commonjs/theme/index.js.map +1 -1
- package/dist/commonjs/theme/theme.js +46 -9
- package/dist/commonjs/theme/theme.js.map +1 -1
- package/dist/commonjs/translations/en.json +7 -3
- package/dist/commonjs/version.js +1 -1
- package/dist/module/components/Call/CallContent/CallContent.js +26 -21
- package/dist/module/components/Call/CallContent/CallContent.js.map +1 -1
- package/dist/module/components/Call/CallControls/AcceptCallButton.js +9 -7
- package/dist/module/components/Call/CallControls/AcceptCallButton.js.map +1 -1
- package/dist/module/components/Call/CallControls/CallControls.js +2 -2
- package/dist/module/components/Call/CallControls/CallControls.js.map +1 -1
- package/dist/module/components/Call/CallControls/CallControlsButton.js +11 -18
- package/dist/module/components/Call/CallControls/CallControlsButton.js.map +1 -1
- package/dist/module/components/Call/CallControls/HangupCallButton.js +8 -13
- package/dist/module/components/Call/CallControls/HangupCallButton.js.map +1 -1
- package/dist/module/components/Call/CallControls/IncomingCallControls.js +5 -1
- package/dist/module/components/Call/CallControls/IncomingCallControls.js.map +1 -1
- package/dist/module/components/Call/CallControls/LobbyControls.js +14 -8
- package/dist/module/components/Call/CallControls/LobbyControls.js.map +1 -1
- package/dist/module/components/Call/CallControls/ReactionsButton.js +4 -4
- package/dist/module/components/Call/CallControls/ReactionsButton.js.map +1 -1
- package/dist/module/components/Call/CallControls/RejectCallButton.js +9 -7
- package/dist/module/components/Call/CallControls/RejectCallButton.js.map +1 -1
- package/dist/module/components/Call/CallControls/ScreenShareToggleButton.js +10 -6
- package/dist/module/components/Call/CallControls/ScreenShareToggleButton.js.map +1 -1
- package/dist/module/components/Call/CallControls/ToggleAudioPreviewButton.js +11 -11
- package/dist/module/components/Call/CallControls/ToggleAudioPreviewButton.js.map +1 -1
- package/dist/module/components/Call/CallControls/ToggleAudioPublishingButton.js +10 -7
- package/dist/module/components/Call/CallControls/ToggleAudioPublishingButton.js.map +1 -1
- package/dist/module/components/Call/CallControls/ToggleCameraFaceButton.js +11 -7
- package/dist/module/components/Call/CallControls/ToggleCameraFaceButton.js.map +1 -1
- package/dist/module/components/Call/CallControls/ToggleVideoPreviewButton.js +11 -11
- package/dist/module/components/Call/CallControls/ToggleVideoPreviewButton.js.map +1 -1
- package/dist/module/components/Call/CallControls/ToggleVideoPublishingButton.js +10 -7
- package/dist/module/components/Call/CallControls/ToggleVideoPublishingButton.js.map +1 -1
- package/dist/module/components/Call/CallControls/index.js +0 -1
- package/dist/module/components/Call/CallControls/index.js.map +1 -1
- package/dist/module/components/Call/CallControls/internal/ReactionsPicker.js +33 -29
- package/dist/module/components/Call/CallControls/internal/ReactionsPicker.js.map +1 -1
- package/dist/module/components/Call/CallLayout/CallParticipantsGrid.js +1 -1
- package/dist/module/components/Call/CallLayout/CallParticipantsGrid.js.map +1 -1
- package/dist/module/components/Call/CallLayout/CallParticipantsSpotlight.js +29 -24
- package/dist/module/components/Call/CallLayout/CallParticipantsSpotlight.js.map +1 -1
- package/dist/module/components/Call/CallParticipantsList/CallParticipantsList.js +32 -17
- package/dist/module/components/Call/CallParticipantsList/CallParticipantsList.js.map +1 -1
- package/dist/module/components/Call/Lobby/JoinCallButton.js +19 -13
- package/dist/module/components/Call/Lobby/JoinCallButton.js.map +1 -1
- package/dist/module/components/Call/Lobby/Lobby.js +64 -93
- package/dist/module/components/Call/Lobby/Lobby.js.map +1 -1
- package/dist/module/components/Call/Lobby/LobbyFooter.js +58 -22
- package/dist/module/components/Call/Lobby/LobbyFooter.js.map +1 -1
- package/dist/module/components/Call/RingingCallContent/IncomingCall.js +6 -7
- package/dist/module/components/Call/RingingCallContent/IncomingCall.js.map +1 -1
- package/dist/module/components/Call/RingingCallContent/OutgoingCall.js +6 -7
- package/dist/module/components/Call/RingingCallContent/OutgoingCall.js.map +1 -1
- package/dist/module/components/Call/RingingCallContent/RingingCallContent.js +0 -4
- package/dist/module/components/Call/RingingCallContent/RingingCallContent.js.map +1 -1
- package/dist/module/components/Call/RingingCallContent/TextBasedIndicator.js +3 -3
- package/dist/module/components/Call/RingingCallContent/TextBasedIndicator.js.map +1 -1
- package/dist/module/components/Call/RingingCallContent/UserInfo.js +1 -1
- package/dist/module/components/Call/RingingCallContent/UserInfo.js.map +1 -1
- package/dist/module/components/Call/index.js +0 -1
- package/dist/module/components/Call/index.js.map +1 -1
- package/dist/module/components/Livestream/HostLivestream/HostLivestream.js +32 -21
- package/dist/module/components/Livestream/HostLivestream/HostLivestream.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamControls/HostLivestreamControls.js +1 -1
- package/dist/module/components/Livestream/LivestreamControls/HostLivestreamControls.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamControls/HostStartStreamButton.js +2 -2
- package/dist/module/components/Livestream/LivestreamControls/HostStartStreamButton.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamControls/LivestreamAudioControlButton.js +8 -6
- package/dist/module/components/Livestream/LivestreamControls/LivestreamAudioControlButton.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamControls/LivestreamScreenShareToggleButton.js +5 -3
- package/dist/module/components/Livestream/LivestreamControls/LivestreamScreenShareToggleButton.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamControls/LivestreamVideoControlButton.js +8 -6
- package/dist/module/components/Livestream/LivestreamControls/LivestreamVideoControlButton.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamControls/ViewerLeaveStreamButton.js +2 -2
- package/dist/module/components/Livestream/LivestreamControls/ViewerLeaveStreamButton.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamControls/ViewerLivestreamControls.js +1 -1
- package/dist/module/components/Livestream/LivestreamControls/ViewerLivestreamControls.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamLayout/LivestreamLayout.js +1 -1
- package/dist/module/components/Livestream/LivestreamLayout/LivestreamLayout.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamTopView/DurationBadge.js +2 -2
- package/dist/module/components/Livestream/LivestreamTopView/DurationBadge.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamTopView/FollowerCount.js +2 -2
- package/dist/module/components/Livestream/LivestreamTopView/FollowerCount.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamTopView/HostLivestreamTopView.js +1 -1
- package/dist/module/components/Livestream/LivestreamTopView/HostLivestreamTopView.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamTopView/LiveIndicator.js +2 -2
- package/dist/module/components/Livestream/LivestreamTopView/LiveIndicator.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamTopView/ViewerLivestreamTopView.js +1 -1
- package/dist/module/components/Livestream/LivestreamTopView/ViewerLivestreamTopView.js.map +1 -1
- package/dist/module/components/Livestream/ViewerLivestream/ViewerLivestream.js +17 -6
- package/dist/module/components/Livestream/ViewerLivestream/ViewerLivestream.js.map +1 -1
- package/dist/module/components/Participant/FloatingParticipantView/FloatingView/ReanimatedFloatingView.js.map +1 -1
- package/dist/module/components/Participant/FloatingParticipantView/index.js +6 -5
- package/dist/module/components/Participant/FloatingParticipantView/index.js.map +1 -1
- package/dist/module/components/Participant/ParticipantView/ParticipantLabel.js +70 -49
- package/dist/module/components/Participant/ParticipantView/ParticipantLabel.js.map +1 -1
- package/dist/module/components/Participant/ParticipantView/ParticipantNetworkQualityIndicator.js +5 -5
- package/dist/module/components/Participant/ParticipantView/ParticipantNetworkQualityIndicator.js.map +1 -1
- package/dist/module/components/Participant/ParticipantView/ParticipantReaction.js +29 -16
- package/dist/module/components/Participant/ParticipantView/ParticipantReaction.js.map +1 -1
- package/dist/module/components/Participant/ParticipantView/ParticipantVideoFallback.js +2 -2
- package/dist/module/components/Participant/ParticipantView/ParticipantVideoFallback.js.map +1 -1
- package/dist/module/components/Participant/ParticipantView/ParticipantView.js +27 -20
- package/dist/module/components/Participant/ParticipantView/ParticipantView.js.map +1 -1
- package/dist/module/components/Participant/ParticipantView/SpeechIndicator.js +78 -0
- package/dist/module/components/Participant/ParticipantView/SpeechIndicator.js.map +1 -0
- package/dist/module/components/utility/Avatar.js +1 -1
- package/dist/module/components/utility/Avatar.js.map +1 -1
- package/dist/module/components/utility/ScreenShareOverlay.js +6 -5
- package/dist/module/components/utility/ScreenShareOverlay.js.map +1 -1
- package/dist/module/constants/TestIds.js +1 -1
- package/dist/module/constants/TestIds.js.map +1 -1
- package/dist/module/constants/index.js +23 -4
- package/dist/module/constants/index.js.map +1 -1
- package/dist/module/icons/CameraSwitch.js +6 -3
- package/dist/module/icons/CameraSwitch.js.map +1 -1
- package/dist/module/icons/IconWrapper.js +17 -0
- package/dist/module/icons/IconWrapper.js.map +1 -0
- package/dist/module/icons/Lock.js +16 -0
- package/dist/module/icons/Lock.js.map +1 -0
- package/dist/module/icons/Mic.js +6 -6
- package/dist/module/icons/Mic.js.map +1 -1
- package/dist/module/icons/MicOff.js +6 -3
- package/dist/module/icons/MicOff.js.map +1 -1
- package/dist/module/icons/Phone.js +13 -3
- package/dist/module/icons/Phone.js.map +1 -1
- package/dist/module/icons/PhoneDown.js +6 -3
- package/dist/module/icons/PhoneDown.js.map +1 -1
- package/dist/module/icons/PinVertical.js +5 -2
- package/dist/module/icons/PinVertical.js.map +1 -1
- package/dist/module/icons/Reaction.js +3 -1
- package/dist/module/icons/Reaction.js.map +1 -1
- package/dist/module/icons/ScreenShare.js +6 -3
- package/dist/module/icons/ScreenShare.js.map +1 -1
- package/dist/module/icons/StopScreenShare.js +5 -2
- package/dist/module/icons/StopScreenShare.js.map +1 -1
- package/dist/module/icons/Video.js +6 -3
- package/dist/module/icons/Video.js.map +1 -1
- package/dist/module/icons/VideoSlash.js +6 -3
- package/dist/module/icons/VideoSlash.js.map +1 -1
- package/dist/module/icons/index.js +1 -2
- package/dist/module/icons/index.js.map +1 -1
- package/dist/module/theme/colors.js +22 -39
- package/dist/module/theme/colors.js.map +1 -1
- package/dist/module/theme/constants.js +44 -44
- package/dist/module/theme/constants.js.map +1 -1
- package/dist/module/theme/index.js +1 -5
- package/dist/module/theme/index.js.map +1 -1
- package/dist/module/theme/theme.js +46 -9
- package/dist/module/theme/theme.js.map +1 -1
- package/dist/module/translations/en.json +7 -3
- package/dist/module/version.js +1 -1
- package/dist/typescript/components/Call/CallContent/CallContent.d.ts +2 -7
- package/dist/typescript/components/Call/CallContent/CallContent.d.ts.map +1 -1
- package/dist/typescript/components/Call/CallControls/AcceptCallButton.d.ts.map +1 -1
- package/dist/typescript/components/Call/CallControls/CallControlsButton.d.ts +4 -0
- package/dist/typescript/components/Call/CallControls/CallControlsButton.d.ts.map +1 -1
- package/dist/typescript/components/Call/CallControls/HangupCallButton.d.ts.map +1 -1
- package/dist/typescript/components/Call/CallControls/IncomingCallControls.d.ts.map +1 -1
- package/dist/typescript/components/Call/CallControls/LobbyControls.d.ts.map +1 -1
- package/dist/typescript/components/Call/CallControls/ReactionsButton.d.ts.map +1 -1
- package/dist/typescript/components/Call/CallControls/RejectCallButton.d.ts.map +1 -1
- package/dist/typescript/components/Call/CallControls/ScreenShareToggleButton.d.ts.map +1 -1
- package/dist/typescript/components/Call/CallControls/ToggleAudioPreviewButton.d.ts.map +1 -1
- package/dist/typescript/components/Call/CallControls/ToggleAudioPublishingButton.d.ts.map +1 -1
- package/dist/typescript/components/Call/CallControls/ToggleCameraFaceButton.d.ts +6 -1
- package/dist/typescript/components/Call/CallControls/ToggleCameraFaceButton.d.ts.map +1 -1
- package/dist/typescript/components/Call/CallControls/ToggleVideoPreviewButton.d.ts.map +1 -1
- package/dist/typescript/components/Call/CallControls/ToggleVideoPublishingButton.d.ts.map +1 -1
- package/dist/typescript/components/Call/CallControls/index.d.ts +0 -1
- package/dist/typescript/components/Call/CallControls/index.d.ts.map +1 -1
- package/dist/typescript/components/Call/CallControls/internal/ReactionsPicker.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/JoinCallButton.d.ts.map +1 -1
- package/dist/typescript/components/Call/Lobby/Lobby.d.ts.map +1 -1
- package/dist/typescript/components/Call/Lobby/LobbyFooter.d.ts.map +1 -1
- package/dist/typescript/components/Call/RingingCallContent/IncomingCall.d.ts +2 -6
- package/dist/typescript/components/Call/RingingCallContent/IncomingCall.d.ts.map +1 -1
- package/dist/typescript/components/Call/RingingCallContent/OutgoingCall.d.ts +1 -6
- package/dist/typescript/components/Call/RingingCallContent/OutgoingCall.d.ts.map +1 -1
- package/dist/typescript/components/Call/RingingCallContent/RingingCallContent.d.ts +0 -5
- package/dist/typescript/components/Call/RingingCallContent/RingingCallContent.d.ts.map +1 -1
- package/dist/typescript/components/Call/index.d.ts +0 -1
- package/dist/typescript/components/Call/index.d.ts.map +1 -1
- package/dist/typescript/components/Livestream/HostLivestream/HostLivestream.d.ts.map +1 -1
- package/dist/typescript/components/Livestream/LivestreamControls/LivestreamAudioControlButton.d.ts.map +1 -1
- package/dist/typescript/components/Livestream/LivestreamControls/LivestreamVideoControlButton.d.ts.map +1 -1
- package/dist/typescript/components/Livestream/LivestreamControls/ViewerLeaveStreamButton.d.ts.map +1 -1
- package/dist/typescript/components/Livestream/LivestreamControls/ViewerLivestreamControls.d.ts.map +1 -1
- package/dist/typescript/components/Livestream/ViewerLivestream/ViewerLivestream.d.ts.map +1 -1
- package/dist/typescript/components/Participant/FloatingParticipantView/FloatingView/ReanimatedFloatingView.d.ts.map +1 -1
- package/dist/typescript/components/Participant/FloatingParticipantView/index.d.ts.map +1 -1
- package/dist/typescript/components/Participant/ParticipantView/ParticipantLabel.d.ts.map +1 -1
- package/dist/typescript/components/Participant/ParticipantView/ParticipantReaction.d.ts +1 -1
- package/dist/typescript/components/Participant/ParticipantView/ParticipantReaction.d.ts.map +1 -1
- package/dist/typescript/components/Participant/ParticipantView/ParticipantVideoFallback.d.ts.map +1 -1
- package/dist/typescript/components/Participant/ParticipantView/ParticipantView.d.ts.map +1 -1
- package/dist/typescript/components/Participant/ParticipantView/SpeechIndicator.d.ts +18 -0
- package/dist/typescript/components/Participant/ParticipantView/SpeechIndicator.d.ts.map +1 -0
- package/dist/typescript/components/utility/Avatar.d.ts.map +1 -1
- package/dist/typescript/constants/TestIds.d.ts +2 -2
- package/dist/typescript/constants/TestIds.d.ts.map +1 -1
- package/dist/typescript/constants/index.d.ts +0 -1
- package/dist/typescript/constants/index.d.ts.map +1 -1
- package/dist/typescript/icons/CameraSwitch.d.ts +2 -1
- package/dist/typescript/icons/CameraSwitch.d.ts.map +1 -1
- package/dist/typescript/icons/IconWrapper.d.ts +6 -0
- package/dist/typescript/icons/IconWrapper.d.ts.map +1 -0
- package/dist/typescript/icons/{Chat.d.ts → Lock.d.ts} +3 -2
- package/dist/typescript/icons/Lock.d.ts.map +1 -0
- package/dist/typescript/icons/Mic.d.ts +2 -1
- package/dist/typescript/icons/Mic.d.ts.map +1 -1
- package/dist/typescript/icons/MicOff.d.ts +2 -1
- package/dist/typescript/icons/MicOff.d.ts.map +1 -1
- package/dist/typescript/icons/Phone.d.ts +2 -1
- package/dist/typescript/icons/Phone.d.ts.map +1 -1
- package/dist/typescript/icons/PhoneDown.d.ts +2 -1
- package/dist/typescript/icons/PhoneDown.d.ts.map +1 -1
- package/dist/typescript/icons/PinVertical.d.ts +2 -1
- package/dist/typescript/icons/PinVertical.d.ts.map +1 -1
- package/dist/typescript/icons/ScreenShare.d.ts +2 -1
- package/dist/typescript/icons/ScreenShare.d.ts.map +1 -1
- package/dist/typescript/icons/StopScreenShare.d.ts +2 -1
- package/dist/typescript/icons/StopScreenShare.d.ts.map +1 -1
- package/dist/typescript/icons/Video.d.ts +2 -1
- package/dist/typescript/icons/Video.d.ts.map +1 -1
- package/dist/typescript/icons/VideoSlash.d.ts +2 -1
- package/dist/typescript/icons/VideoSlash.d.ts.map +1 -1
- package/dist/typescript/icons/index.d.ts +1 -2
- package/dist/typescript/icons/index.d.ts.map +1 -1
- package/dist/typescript/theme/colors.d.ts +5 -38
- package/dist/typescript/theme/colors.d.ts.map +1 -1
- package/dist/typescript/theme/constants.d.ts +44 -44
- package/dist/typescript/theme/constants.d.ts.map +1 -1
- package/dist/typescript/theme/index.d.ts +1 -2
- package/dist/typescript/theme/index.d.ts.map +1 -1
- package/dist/typescript/theme/theme.d.ts +23 -31
- package/dist/typescript/theme/theme.d.ts.map +1 -1
- package/dist/typescript/theme/types.d.ts +65 -18
- package/dist/typescript/theme/types.d.ts.map +1 -1
- package/dist/typescript/translations/index.d.ts +5 -1
- package/dist/typescript/translations/index.d.ts.map +1 -1
- package/dist/typescript/version.d.ts +1 -1
- package/package.json +3 -3
- package/src/components/Call/CallContent/CallContent.tsx +25 -33
- package/src/components/Call/CallControls/AcceptCallButton.tsx +7 -5
- package/src/components/Call/CallControls/CallControls.tsx +2 -2
- package/src/components/Call/CallControls/CallControlsButton.tsx +14 -20
- package/src/components/Call/CallControls/HangupCallButton.tsx +6 -11
- package/src/components/Call/CallControls/IncomingCallControls.tsx +5 -1
- package/src/components/Call/CallControls/LobbyControls.tsx +16 -8
- package/src/components/Call/CallControls/ReactionsButton.tsx +4 -2
- package/src/components/Call/CallControls/RejectCallButton.tsx +7 -5
- package/src/components/Call/CallControls/ScreenShareToggleButton.tsx +18 -7
- package/src/components/Call/CallControls/ToggleAudioPreviewButton.tsx +11 -13
- package/src/components/Call/CallControls/ToggleAudioPublishingButton.tsx +12 -8
- package/src/components/Call/CallControls/ToggleCameraFaceButton.tsx +23 -10
- package/src/components/Call/CallControls/ToggleVideoPreviewButton.tsx +11 -14
- package/src/components/Call/CallControls/ToggleVideoPublishingButton.tsx +15 -8
- package/src/components/Call/CallControls/index.tsx +0 -1
- package/src/components/Call/CallControls/internal/ReactionsPicker.tsx +34 -32
- package/src/components/Call/CallLayout/CallParticipantsGrid.tsx +2 -4
- package/src/components/Call/CallLayout/CallParticipantsSpotlight.tsx +29 -23
- package/src/components/Call/CallParticipantsList/CallParticipantsList.tsx +34 -15
- package/src/components/Call/Lobby/JoinCallButton.tsx +21 -15
- package/src/components/Call/Lobby/Lobby.tsx +74 -121
- package/src/components/Call/Lobby/LobbyFooter.tsx +63 -41
- package/src/components/Call/RingingCallContent/IncomingCall.tsx +4 -14
- package/src/components/Call/RingingCallContent/OutgoingCall.tsx +4 -14
- package/src/components/Call/RingingCallContent/RingingCallContent.tsx +3 -17
- package/src/components/Call/RingingCallContent/TextBasedIndicator.tsx +3 -3
- package/src/components/Call/RingingCallContent/UserInfo.tsx +1 -1
- package/src/components/Call/index.ts +0 -1
- package/src/components/Livestream/HostLivestream/HostLivestream.tsx +34 -23
- package/src/components/Livestream/LivestreamControls/HostLivestreamControls.tsx +1 -1
- package/src/components/Livestream/LivestreamControls/HostStartStreamButton.tsx +4 -4
- package/src/components/Livestream/LivestreamControls/LivestreamAudioControlButton.tsx +9 -7
- package/src/components/Livestream/LivestreamControls/LivestreamScreenShareToggleButton.tsx +4 -4
- package/src/components/Livestream/LivestreamControls/LivestreamVideoControlButton.tsx +9 -7
- package/src/components/Livestream/LivestreamControls/ViewerLeaveStreamButton.tsx +2 -4
- package/src/components/Livestream/LivestreamControls/ViewerLivestreamControls.tsx +1 -3
- package/src/components/Livestream/LivestreamLayout/LivestreamLayout.tsx +1 -1
- package/src/components/Livestream/LivestreamTopView/DurationBadge.tsx +2 -2
- package/src/components/Livestream/LivestreamTopView/FollowerCount.tsx +2 -2
- package/src/components/Livestream/LivestreamTopView/HostLivestreamTopView.tsx +1 -1
- package/src/components/Livestream/LivestreamTopView/LiveIndicator.tsx +2 -2
- package/src/components/Livestream/LivestreamTopView/ViewerLivestreamTopView.tsx +1 -1
- package/src/components/Livestream/ViewerLivestream/ViewerLivestream.tsx +19 -6
- package/src/components/Participant/FloatingParticipantView/FloatingView/ReanimatedFloatingView.tsx +0 -1
- package/src/components/Participant/FloatingParticipantView/index.tsx +4 -6
- package/src/components/Participant/ParticipantView/ParticipantLabel.tsx +87 -87
- package/src/components/Participant/ParticipantView/ParticipantNetworkQualityIndicator.tsx +5 -5
- package/src/components/Participant/ParticipantView/ParticipantReaction.tsx +36 -26
- package/src/components/Participant/ParticipantView/ParticipantVideoFallback.tsx +2 -6
- package/src/components/Participant/ParticipantView/ParticipantView.tsx +33 -22
- package/src/components/Participant/ParticipantView/SpeechIndicator.tsx +103 -0
- package/src/components/utility/Avatar.tsx +2 -4
- package/src/components/utility/ScreenShareOverlay.tsx +5 -5
- package/src/constants/TestIds.ts +1 -1
- package/src/constants/index.ts +27 -5
- package/src/icons/CameraSwitch.tsx +4 -3
- package/src/icons/IconWrapper.tsx +15 -0
- package/src/icons/Lock.tsx +19 -0
- package/src/icons/Mic.tsx +4 -7
- package/src/icons/MicOff.tsx +4 -3
- package/src/icons/Phone.tsx +11 -3
- package/src/icons/PhoneDown.tsx +9 -3
- package/src/icons/PinVertical.tsx +3 -2
- package/src/icons/Reaction.tsx +1 -1
- package/src/icons/ScreenShare.tsx +9 -3
- package/src/icons/StopScreenShare.tsx +3 -2
- package/src/icons/Video.tsx +4 -3
- package/src/icons/VideoSlash.tsx +9 -3
- package/src/icons/index.tsx +1 -2
- package/src/theme/colors.ts +27 -42
- package/src/theme/constants.ts +51 -44
- package/src/theme/index.ts +1 -8
- package/src/theme/theme.ts +77 -40
- package/src/theme/types.ts +72 -21
- package/src/translations/en.json +7 -3
- package/src/version.ts +1 -1
- package/dist/commonjs/components/Call/CallControls/ChatButton.js +0 -84
- package/dist/commonjs/components/Call/CallControls/ChatButton.js.map +0 -1
- package/dist/commonjs/components/Call/CallTopView/CallTopView.js +0 -120
- package/dist/commonjs/components/Call/CallTopView/CallTopView.js.map +0 -1
- package/dist/commonjs/components/Call/CallTopView/ParticipantsInfoBadge.js +0 -105
- package/dist/commonjs/components/Call/CallTopView/ParticipantsInfoBadge.js.map +0 -1
- package/dist/commonjs/components/Call/CallTopView/index.js +0 -28
- package/dist/commonjs/components/Call/CallTopView/index.js.map +0 -1
- package/dist/commonjs/icons/Chat.js +0 -19
- package/dist/commonjs/icons/Chat.js.map +0 -1
- package/dist/commonjs/icons/Participants.js +0 -21
- package/dist/commonjs/icons/Participants.js.map +0 -1
- package/dist/module/components/Call/CallControls/ChatButton.js +0 -77
- package/dist/module/components/Call/CallControls/ChatButton.js.map +0 -1
- package/dist/module/components/Call/CallTopView/CallTopView.js +0 -111
- package/dist/module/components/Call/CallTopView/CallTopView.js.map +0 -1
- package/dist/module/components/Call/CallTopView/ParticipantsInfoBadge.js +0 -98
- package/dist/module/components/Call/CallTopView/ParticipantsInfoBadge.js.map +0 -1
- package/dist/module/components/Call/CallTopView/index.js +0 -3
- package/dist/module/components/Call/CallTopView/index.js.map +0 -1
- package/dist/module/icons/Chat.js +0 -11
- package/dist/module/icons/Chat.js.map +0 -1
- package/dist/module/icons/Participants.js +0 -13
- package/dist/module/icons/Participants.js.map +0 -1
- package/dist/typescript/components/Call/CallControls/ChatButton.d.ts +0 -22
- package/dist/typescript/components/Call/CallControls/ChatButton.d.ts.map +0 -1
- package/dist/typescript/components/Call/CallTopView/CallTopView.d.ts +0 -29
- package/dist/typescript/components/Call/CallTopView/CallTopView.d.ts.map +0 -1
- package/dist/typescript/components/Call/CallTopView/ParticipantsInfoBadge.d.ts +0 -12
- package/dist/typescript/components/Call/CallTopView/ParticipantsInfoBadge.d.ts.map +0 -1
- package/dist/typescript/components/Call/CallTopView/index.d.ts +0 -3
- package/dist/typescript/components/Call/CallTopView/index.d.ts.map +0 -1
- package/dist/typescript/icons/Chat.d.ts.map +0 -1
- package/dist/typescript/icons/Participants.d.ts +0 -8
- package/dist/typescript/icons/Participants.d.ts.map +0 -1
- package/src/components/Call/CallControls/ChatButton.tsx +0 -90
- package/src/components/Call/CallTopView/CallTopView.tsx +0 -162
- package/src/components/Call/CallTopView/ParticipantsInfoBadge.tsx +0 -119
- package/src/components/Call/CallTopView/index.ts +0 -2
- package/src/icons/Chat.tsx +0 -16
- package/src/icons/Participants.tsx +0 -18
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { useEffect } from 'react';
|
|
1
|
+
import React, { useEffect, useMemo } from 'react';
|
|
2
2
|
import { StyleSheet, View } from 'react-native';
|
|
3
3
|
import InCallManager from 'react-native-incall-manager';
|
|
4
4
|
|
|
@@ -73,6 +73,7 @@ export const HostLivestream = ({
|
|
|
73
73
|
hls,
|
|
74
74
|
disableStopPublishedStreamsOnEndStream,
|
|
75
75
|
}: HostLivestreamProps) => {
|
|
76
|
+
const styles = useStyles();
|
|
76
77
|
const {
|
|
77
78
|
theme: { colors, hostLivestream },
|
|
78
79
|
} = useTheme();
|
|
@@ -108,9 +109,7 @@ export const HostLivestream = ({
|
|
|
108
109
|
<View
|
|
109
110
|
style={[
|
|
110
111
|
styles.container,
|
|
111
|
-
{
|
|
112
|
-
backgroundColor: colors.dark_gray,
|
|
113
|
-
},
|
|
112
|
+
{ backgroundColor: colors.sheetTertiary },
|
|
114
113
|
hostLivestream.container,
|
|
115
114
|
]}
|
|
116
115
|
>
|
|
@@ -161,22 +160,34 @@ export const HostLivestream = ({
|
|
|
161
160
|
);
|
|
162
161
|
};
|
|
163
162
|
|
|
164
|
-
const
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
163
|
+
const useStyles = () => {
|
|
164
|
+
const { theme } = useTheme();
|
|
165
|
+
return useMemo(
|
|
166
|
+
() =>
|
|
167
|
+
StyleSheet.create({
|
|
168
|
+
container: {
|
|
169
|
+
flex: 1,
|
|
170
|
+
paddingBottom: theme.variants.insets.bottom,
|
|
171
|
+
paddingLeft: theme.variants.insets.left,
|
|
172
|
+
paddingRight: theme.variants.insets.right,
|
|
173
|
+
paddingTop: theme.variants.insets.top,
|
|
174
|
+
backgroundColor: theme.colors.sheetPrimary,
|
|
175
|
+
},
|
|
176
|
+
topViewContainer: {
|
|
177
|
+
position: 'absolute',
|
|
178
|
+
top: 0,
|
|
179
|
+
left: 0,
|
|
180
|
+
right: 0,
|
|
181
|
+
zIndex: Z_INDEX.IN_FRONT,
|
|
182
|
+
},
|
|
183
|
+
controlsViewContainer: {
|
|
184
|
+
position: 'absolute',
|
|
185
|
+
bottom: 0,
|
|
186
|
+
left: 0,
|
|
187
|
+
right: 0,
|
|
188
|
+
zIndex: Z_INDEX.IN_FRONT,
|
|
189
|
+
},
|
|
190
|
+
}),
|
|
191
|
+
[theme]
|
|
192
|
+
);
|
|
193
|
+
};
|
|
@@ -114,10 +114,10 @@ export const HostStartStreamButton = ({
|
|
|
114
114
|
styles.container,
|
|
115
115
|
{
|
|
116
116
|
backgroundColor: isAwaitingResponse
|
|
117
|
-
? colors.
|
|
117
|
+
? colors.sheetTertiary
|
|
118
118
|
: liveOrBroadcasting
|
|
119
|
-
? colors.
|
|
120
|
-
: colors.
|
|
119
|
+
? colors.buttonWarning
|
|
120
|
+
: colors.buttonPrimary,
|
|
121
121
|
},
|
|
122
122
|
hostStartStreamButton.container,
|
|
123
123
|
]}
|
|
@@ -144,7 +144,7 @@ export const HostStartStreamButton = ({
|
|
|
144
144
|
style={[
|
|
145
145
|
styles.text,
|
|
146
146
|
typefaces.subtitleBold,
|
|
147
|
-
{ color: colors.
|
|
147
|
+
{ color: colors.textPrimary },
|
|
148
148
|
hostStartStreamButton.text,
|
|
149
149
|
]}
|
|
150
150
|
>
|
|
@@ -2,7 +2,7 @@ import { useCallStateHooks } from '@stream-io/video-react-bindings';
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { useTheme } from '../../../contexts';
|
|
4
4
|
import { Pressable, StyleSheet, View } from 'react-native';
|
|
5
|
-
import { Mic, MicOff } from '../../../icons';
|
|
5
|
+
import { IconWrapper, Mic, MicOff } from '../../../icons';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* The LivestreamAudioControlButton controls the audio stream publish/unpublish while in the livestream for the host.
|
|
@@ -28,7 +28,7 @@ export const LivestreamAudioControlButton = () => {
|
|
|
28
28
|
style={[
|
|
29
29
|
styles.container,
|
|
30
30
|
{
|
|
31
|
-
backgroundColor: colors.
|
|
31
|
+
backgroundColor: colors.buttonSecondary,
|
|
32
32
|
height: buttonSizes.xs,
|
|
33
33
|
width: buttonSizes.xs,
|
|
34
34
|
},
|
|
@@ -45,11 +45,13 @@ export const LivestreamAudioControlButton = () => {
|
|
|
45
45
|
livestreamAudioControlButton.icon,
|
|
46
46
|
]}
|
|
47
47
|
>
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
48
|
+
<IconWrapper>
|
|
49
|
+
{!optimisticIsMute ? (
|
|
50
|
+
<Mic color={colors.iconPrimary} size={iconSizes.md} />
|
|
51
|
+
) : (
|
|
52
|
+
<MicOff color={colors.iconPrimary} size={iconSizes.md} />
|
|
53
|
+
)}
|
|
54
|
+
</IconWrapper>
|
|
53
55
|
</View>
|
|
54
56
|
</Pressable>
|
|
55
57
|
);
|
|
@@ -33,8 +33,8 @@ export const LivestreamScreenShareToggleButton = () => {
|
|
|
33
33
|
styles.container,
|
|
34
34
|
{
|
|
35
35
|
backgroundColor: hasPublishedScreenShare
|
|
36
|
-
? colors.
|
|
37
|
-
: colors.
|
|
36
|
+
? colors.buttonWarning
|
|
37
|
+
: colors.buttonSecondary,
|
|
38
38
|
height: buttonSizes.xs,
|
|
39
39
|
width: buttonSizes.xs,
|
|
40
40
|
},
|
|
@@ -52,9 +52,9 @@ export const LivestreamScreenShareToggleButton = () => {
|
|
|
52
52
|
]}
|
|
53
53
|
>
|
|
54
54
|
{hasPublishedScreenShare ? (
|
|
55
|
-
<StopScreenShare color={colors.
|
|
55
|
+
<StopScreenShare size={iconSizes.sm} color={colors.iconPrimary} />
|
|
56
56
|
) : (
|
|
57
|
-
<ScreenShare color={colors.
|
|
57
|
+
<ScreenShare size={iconSizes.sm} color={colors.iconPrimary} />
|
|
58
58
|
)}
|
|
59
59
|
</View>
|
|
60
60
|
{Platform.OS === 'ios' && (
|
|
@@ -2,7 +2,7 @@ import { useCallStateHooks } from '@stream-io/video-react-bindings';
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { useTheme } from '../../../contexts';
|
|
4
4
|
import { Pressable, StyleSheet, View } from 'react-native';
|
|
5
|
-
import { Video, VideoSlash } from '../../../icons';
|
|
5
|
+
import { IconWrapper, Video, VideoSlash } from '../../../icons';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* The LivestreamVideoControlButton controls the video stream publish/unpublish while in the livestream for the host.
|
|
@@ -34,7 +34,7 @@ export const LivestreamVideoControlButton = () => {
|
|
|
34
34
|
style={[
|
|
35
35
|
styles.container,
|
|
36
36
|
{
|
|
37
|
-
backgroundColor: colors.
|
|
37
|
+
backgroundColor: colors.buttonSecondary,
|
|
38
38
|
height: buttonSizes.xs,
|
|
39
39
|
width: buttonSizes.xs,
|
|
40
40
|
},
|
|
@@ -51,11 +51,13 @@ export const LivestreamVideoControlButton = () => {
|
|
|
51
51
|
livestreamVideoControlButton.icon,
|
|
52
52
|
]}
|
|
53
53
|
>
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
54
|
+
<IconWrapper>
|
|
55
|
+
{!optimisticIsMute ? (
|
|
56
|
+
<Video color={colors.iconPrimary} size={iconSizes.md} />
|
|
57
|
+
) : (
|
|
58
|
+
<VideoSlash color={colors.iconPrimary} size={iconSizes.md} />
|
|
59
|
+
)}
|
|
60
|
+
</IconWrapper>
|
|
59
61
|
</View>
|
|
60
62
|
</Pressable>
|
|
61
63
|
);
|
|
@@ -59,9 +59,7 @@ export const ViewerLeaveStreamButton = ({
|
|
|
59
59
|
<Pressable
|
|
60
60
|
style={[
|
|
61
61
|
styles.container,
|
|
62
|
-
{
|
|
63
|
-
backgroundColor: colors.dark_gray,
|
|
64
|
-
},
|
|
62
|
+
{ backgroundColor: colors.buttonSecondary },
|
|
65
63
|
viewerLeaveStreamButton.container,
|
|
66
64
|
]}
|
|
67
65
|
onPress={onLeaveStreamButtonPress}
|
|
@@ -79,7 +77,7 @@ export const ViewerLeaveStreamButton = ({
|
|
|
79
77
|
style={[
|
|
80
78
|
styles.text,
|
|
81
79
|
typefaces.subtitleBold,
|
|
82
|
-
{ color: colors.
|
|
80
|
+
{ color: colors.textPrimary },
|
|
83
81
|
viewerLeaveStreamButton.text,
|
|
84
82
|
]}
|
|
85
83
|
>
|
|
@@ -120,7 +120,7 @@ export const DurationBadge = ({ mode }: DurationBadgeProps) => {
|
|
|
120
120
|
<View
|
|
121
121
|
style={[
|
|
122
122
|
styles.container,
|
|
123
|
-
{ backgroundColor: colors.
|
|
123
|
+
{ backgroundColor: colors.sheetTertiary },
|
|
124
124
|
durationBadge.container,
|
|
125
125
|
]}
|
|
126
126
|
>
|
|
@@ -139,7 +139,7 @@ export const DurationBadge = ({ mode }: DurationBadgeProps) => {
|
|
|
139
139
|
<Text
|
|
140
140
|
style={[
|
|
141
141
|
styles.label,
|
|
142
|
-
{ color: colors.
|
|
142
|
+
{ color: colors.textPrimary },
|
|
143
143
|
durationBadge.label,
|
|
144
144
|
]}
|
|
145
145
|
>
|
|
@@ -26,7 +26,7 @@ export const FollowerCount = ({}: FollowerCountProps) => {
|
|
|
26
26
|
<View
|
|
27
27
|
style={[
|
|
28
28
|
styles.container,
|
|
29
|
-
{ backgroundColor: colors.
|
|
29
|
+
{ backgroundColor: colors.sheetTertiary },
|
|
30
30
|
followerCount.container,
|
|
31
31
|
]}
|
|
32
32
|
>
|
|
@@ -42,7 +42,7 @@ export const FollowerCount = ({}: FollowerCountProps) => {
|
|
|
42
42
|
<Text
|
|
43
43
|
style={[
|
|
44
44
|
styles.label,
|
|
45
|
-
{ color: colors.
|
|
45
|
+
{ color: colors.textPrimary },
|
|
46
46
|
followerCount.label,
|
|
47
47
|
]}
|
|
48
48
|
>
|
|
@@ -20,14 +20,14 @@ export const LiveIndicator = ({}: LiveIndicatorProps) => {
|
|
|
20
20
|
<View
|
|
21
21
|
style={[
|
|
22
22
|
styles.container,
|
|
23
|
-
{ backgroundColor: colors.
|
|
23
|
+
{ backgroundColor: colors.buttonPrimary },
|
|
24
24
|
liveIndicator.container,
|
|
25
25
|
]}
|
|
26
26
|
>
|
|
27
27
|
<Text
|
|
28
28
|
style={[
|
|
29
29
|
styles.label,
|
|
30
|
-
{ color: colors.
|
|
30
|
+
{ color: colors.textPrimary },
|
|
31
31
|
typefaces.subtitleBold,
|
|
32
32
|
liveIndicator.label,
|
|
33
33
|
]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { useEffect } from 'react';
|
|
1
|
+
import React, { useEffect, useMemo } from 'react';
|
|
2
2
|
|
|
3
3
|
import { StyleSheet, View } from 'react-native';
|
|
4
4
|
import InCallManager from 'react-native-incall-manager';
|
|
@@ -61,6 +61,7 @@ export const ViewerLivestream = ({
|
|
|
61
61
|
ViewerLeaveStreamButton,
|
|
62
62
|
onLeaveStreamHandler,
|
|
63
63
|
}: ViewerLivestreamProps) => {
|
|
64
|
+
const styles = useStyles();
|
|
64
65
|
const {
|
|
65
66
|
theme: { viewerLivestream },
|
|
66
67
|
} = useTheme();
|
|
@@ -123,8 +124,20 @@ export const ViewerLivestream = ({
|
|
|
123
124
|
);
|
|
124
125
|
};
|
|
125
126
|
|
|
126
|
-
const
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
127
|
+
const useStyles = () => {
|
|
128
|
+
const { theme } = useTheme();
|
|
129
|
+
return useMemo(
|
|
130
|
+
() =>
|
|
131
|
+
StyleSheet.create({
|
|
132
|
+
container: {
|
|
133
|
+
flex: 1,
|
|
134
|
+
paddingBottom: theme.variants.insets.bottom,
|
|
135
|
+
paddingLeft: theme.variants.insets.left,
|
|
136
|
+
paddingRight: theme.variants.insets.right,
|
|
137
|
+
paddingTop: theme.variants.insets.top,
|
|
138
|
+
backgroundColor: theme.colors.sheetPrimary,
|
|
139
|
+
},
|
|
140
|
+
}),
|
|
141
|
+
[theme]
|
|
142
|
+
);
|
|
143
|
+
};
|
|
@@ -66,6 +66,7 @@ const CustomLocalParticipantViewVideoFallback = () => {
|
|
|
66
66
|
colors,
|
|
67
67
|
floatingParticipantsView,
|
|
68
68
|
variants: { iconSizes },
|
|
69
|
+
defaults,
|
|
69
70
|
},
|
|
70
71
|
} = useTheme();
|
|
71
72
|
|
|
@@ -73,12 +74,12 @@ const CustomLocalParticipantViewVideoFallback = () => {
|
|
|
73
74
|
<View
|
|
74
75
|
style={[
|
|
75
76
|
styles.videoFallback,
|
|
76
|
-
{ backgroundColor: colors.
|
|
77
|
+
{ backgroundColor: colors.sheetSecondary },
|
|
77
78
|
floatingParticipantsView.videoFallback,
|
|
78
79
|
]}
|
|
79
80
|
>
|
|
80
81
|
<View style={{ height: iconSizes.md, width: iconSizes.md }}>
|
|
81
|
-
<VideoSlash color={colors.
|
|
82
|
+
<VideoSlash color={colors.iconPrimary} size={defaults.iconSize} />
|
|
82
83
|
</View>
|
|
83
84
|
</View>
|
|
84
85
|
);
|
|
@@ -170,9 +171,7 @@ export const FloatingParticipantView = ({
|
|
|
170
171
|
style={[
|
|
171
172
|
styles.participantViewContainer,
|
|
172
173
|
participantViewStyle,
|
|
173
|
-
{
|
|
174
|
-
shadowColor: colors.static_black,
|
|
175
|
-
},
|
|
174
|
+
{ shadowColor: colors.sheetPrimary },
|
|
176
175
|
floatingParticipantsView.participantViewContainer,
|
|
177
176
|
]}
|
|
178
177
|
// video z order must be one above the one used in grid view
|
|
@@ -192,7 +191,6 @@ export const FloatingParticipantView = ({
|
|
|
192
191
|
|
|
193
192
|
const styles = StyleSheet.create({
|
|
194
193
|
container: {
|
|
195
|
-
margin: 8,
|
|
196
194
|
// Needed to make the view on top and draggable
|
|
197
195
|
zIndex: Z_INDEX.IN_MIDDLE,
|
|
198
196
|
flex: 1,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, { useMemo } from 'react';
|
|
2
2
|
import { Pressable, StyleSheet, Text, View } from 'react-native';
|
|
3
3
|
import {
|
|
4
4
|
MicOff,
|
|
@@ -12,6 +12,7 @@ import { ParticipantViewProps } from './ParticipantView';
|
|
|
12
12
|
import { Z_INDEX } from '../../../constants';
|
|
13
13
|
import { hasAudio, hasVideo } from '@stream-io/video-client';
|
|
14
14
|
import { useTheme } from '../../../contexts/ThemeContext';
|
|
15
|
+
import SpeechIndicator from './SpeechIndicator';
|
|
15
16
|
|
|
16
17
|
/**
|
|
17
18
|
* Props for the ParticipantLabel component.
|
|
@@ -43,6 +44,7 @@ export const ParticipantLabel = ({
|
|
|
43
44
|
},
|
|
44
45
|
},
|
|
45
46
|
} = useTheme();
|
|
47
|
+
const styles = useStyles();
|
|
46
48
|
const { name, userId, pin, sessionId, isLocalParticipant } = participant;
|
|
47
49
|
const call = useCall();
|
|
48
50
|
const { t } = useI18n();
|
|
@@ -67,7 +69,7 @@ export const ParticipantLabel = ({
|
|
|
67
69
|
<View
|
|
68
70
|
style={[
|
|
69
71
|
styles.container,
|
|
70
|
-
{ backgroundColor: colors.
|
|
72
|
+
{ backgroundColor: colors.sheetOverlay },
|
|
71
73
|
container,
|
|
72
74
|
]}
|
|
73
75
|
testID={ComponentTestIds.PARTICIPANT_SCREEN_SHARING}
|
|
@@ -75,19 +77,16 @@ export const ParticipantLabel = ({
|
|
|
75
77
|
<View
|
|
76
78
|
style={[
|
|
77
79
|
styles.screenShareIconContainer,
|
|
78
|
-
{
|
|
79
|
-
height: iconSizes.md,
|
|
80
|
-
width: iconSizes.md,
|
|
81
|
-
},
|
|
80
|
+
{ height: iconSizes.md, width: iconSizes.md },
|
|
82
81
|
screenShareIconContainer,
|
|
83
82
|
]}
|
|
84
83
|
>
|
|
85
|
-
<ScreenShareIndicator color={colors.
|
|
84
|
+
<ScreenShareIndicator color={colors.iconPrimary} />
|
|
86
85
|
</View>
|
|
87
86
|
<Text
|
|
88
87
|
style={[
|
|
89
88
|
styles.userNameLabel,
|
|
90
|
-
{ color: colors.
|
|
89
|
+
{ color: colors.textPrimary },
|
|
91
90
|
typefaces.caption,
|
|
92
91
|
userNameLabel,
|
|
93
92
|
]}
|
|
@@ -103,90 +102,91 @@ export const ParticipantLabel = ({
|
|
|
103
102
|
<View
|
|
104
103
|
style={[
|
|
105
104
|
styles.container,
|
|
106
|
-
{ backgroundColor: colors.
|
|
105
|
+
{ backgroundColor: colors.sheetOverlay },
|
|
107
106
|
container,
|
|
108
107
|
]}
|
|
109
108
|
>
|
|
110
|
-
<
|
|
111
|
-
style={[
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
{
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
<View
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
height: iconSizes.xs,
|
|
141
|
-
width: iconSizes.xs,
|
|
142
|
-
},
|
|
143
|
-
videoMutedIconContainer,
|
|
144
|
-
]}
|
|
145
|
-
>
|
|
146
|
-
<VideoSlash color={colors.error} />
|
|
109
|
+
<View style={styles.wrapper}>
|
|
110
|
+
<Text style={[styles.userNameLabel, userNameLabel]} numberOfLines={1}>
|
|
111
|
+
{participantLabel}
|
|
112
|
+
</Text>
|
|
113
|
+
{isAudioMuted && (
|
|
114
|
+
<View
|
|
115
|
+
style={[styles.audioMutedIconContainer, audioMutedIconContainer]}
|
|
116
|
+
>
|
|
117
|
+
<MicOff color={colors.iconPrimary} size={iconSizes.sm} />
|
|
118
|
+
</View>
|
|
119
|
+
)}
|
|
120
|
+
{isVideoMuted && (
|
|
121
|
+
<View
|
|
122
|
+
style={[styles.videoMutedIconContainer, videoMutedIconContainer]}
|
|
123
|
+
>
|
|
124
|
+
<VideoSlash color={colors.iconPrimary} size={iconSizes.sm} />
|
|
125
|
+
</View>
|
|
126
|
+
)}
|
|
127
|
+
{isPinningEnabled && (
|
|
128
|
+
<Pressable
|
|
129
|
+
style={[styles.pinIconContainer, pinIconContainer]}
|
|
130
|
+
onPress={unPinParticipantHandler}
|
|
131
|
+
>
|
|
132
|
+
<PinVertical color={colors.iconPrimary} size={iconSizes.sm} />
|
|
133
|
+
</Pressable>
|
|
134
|
+
)}
|
|
135
|
+
<View style={styles.indicatorWrapper}>
|
|
136
|
+
<SpeechIndicator
|
|
137
|
+
isSpeaking={!isAudioMuted && participant.isDominantSpeaker}
|
|
138
|
+
/>
|
|
147
139
|
</View>
|
|
148
|
-
|
|
149
|
-
{isPinningEnabled && (
|
|
150
|
-
<Pressable
|
|
151
|
-
style={[
|
|
152
|
-
styles.pinIconContainer,
|
|
153
|
-
{
|
|
154
|
-
height: iconSizes.xs,
|
|
155
|
-
width: iconSizes.xs,
|
|
156
|
-
},
|
|
157
|
-
pinIconContainer,
|
|
158
|
-
]}
|
|
159
|
-
onPress={unPinParticipantHandler}
|
|
160
|
-
>
|
|
161
|
-
<PinVertical color={colors.static_white} />
|
|
162
|
-
</Pressable>
|
|
163
|
-
)}
|
|
140
|
+
</View>
|
|
164
141
|
</View>
|
|
165
142
|
);
|
|
166
143
|
};
|
|
167
144
|
|
|
168
|
-
const
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
145
|
+
const useStyles = () => {
|
|
146
|
+
const { theme } = useTheme();
|
|
147
|
+
return useMemo(
|
|
148
|
+
() =>
|
|
149
|
+
StyleSheet.create({
|
|
150
|
+
indicatorWrapper: {
|
|
151
|
+
marginLeft: theme.variants.spacingSizes.sm,
|
|
152
|
+
},
|
|
153
|
+
wrapper: {
|
|
154
|
+
flexDirection: 'row',
|
|
155
|
+
},
|
|
156
|
+
container: {
|
|
157
|
+
flexDirection: 'row',
|
|
158
|
+
alignItems: 'center',
|
|
159
|
+
padding: theme.variants.spacingSizes.sm,
|
|
160
|
+
maxHeight: 30,
|
|
161
|
+
borderTopRightRadius: 5,
|
|
162
|
+
marginBottom: -2,
|
|
163
|
+
flexShrink: 1,
|
|
164
|
+
zIndex: Z_INDEX.IN_FRONT,
|
|
165
|
+
},
|
|
166
|
+
userNameLabel: {
|
|
167
|
+
flexShrink: 1,
|
|
168
|
+
marginTop: 3,
|
|
169
|
+
fontSize: 13,
|
|
170
|
+
fontWeight: '400',
|
|
171
|
+
color: theme.colors.textPrimary,
|
|
172
|
+
},
|
|
173
|
+
screenShareIconContainer: {
|
|
174
|
+
marginRight: theme.variants.spacingSizes.sm,
|
|
175
|
+
justifyContent: 'center',
|
|
176
|
+
},
|
|
177
|
+
audioMutedIconContainer: {
|
|
178
|
+
marginLeft: theme.variants.spacingSizes.xs,
|
|
179
|
+
justifyContent: 'center',
|
|
180
|
+
},
|
|
181
|
+
videoMutedIconContainer: {
|
|
182
|
+
marginLeft: theme.variants.spacingSizes.xs,
|
|
183
|
+
justifyContent: 'center',
|
|
184
|
+
},
|
|
185
|
+
pinIconContainer: {
|
|
186
|
+
marginLeft: theme.variants.spacingSizes.xs,
|
|
187
|
+
justifyContent: 'center',
|
|
188
|
+
},
|
|
189
|
+
}),
|
|
190
|
+
[theme]
|
|
191
|
+
);
|
|
192
|
+
};
|