@stream-io/video-react-native-sdk 0.8.6 → 0.8.8
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 +13 -0
- package/dist/commonjs/components/Call/CallContent/CallContent.js +5 -5
- package/dist/commonjs/components/Call/CallContent/CallContent.js.map +1 -1
- package/dist/commonjs/components/Call/CallContent/index.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/AcceptCallButton.js +2 -2
- package/dist/commonjs/components/Call/CallControls/AcceptCallButton.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/CallControls.js +1 -1
- package/dist/commonjs/components/Call/CallControls/CallControls.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/CallControlsButton.js +3 -3
- package/dist/commonjs/components/Call/CallControls/CallControlsButton.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/ChatButton.js +1 -1
- package/dist/commonjs/components/Call/CallControls/ChatButton.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/HangupCallButton.js +2 -2
- package/dist/commonjs/components/Call/CallControls/HangupCallButton.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/IncomingCallControls.js +1 -1
- package/dist/commonjs/components/Call/CallControls/IncomingCallControls.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/LobbyControls.js +1 -1
- package/dist/commonjs/components/Call/CallControls/LobbyControls.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/OutgoingCallControls.js +1 -1
- package/dist/commonjs/components/Call/CallControls/OutgoingCallControls.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/ReactionsButton.js +2 -2
- package/dist/commonjs/components/Call/CallControls/ReactionsButton.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/RejectCallButton.js +3 -3
- package/dist/commonjs/components/Call/CallControls/RejectCallButton.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/ScreenShareToggleButton.js +8 -80
- package/dist/commonjs/components/Call/CallControls/ScreenShareToggleButton.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/ToggleAudioPreviewButton.js +1 -1
- package/dist/commonjs/components/Call/CallControls/ToggleAudioPreviewButton.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/ToggleAudioPublishingButton.js +1 -1
- package/dist/commonjs/components/Call/CallControls/ToggleAudioPublishingButton.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/ToggleCameraFaceButton.js +2 -2
- package/dist/commonjs/components/Call/CallControls/ToggleCameraFaceButton.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/ToggleVideoPreviewButton.js +2 -2
- package/dist/commonjs/components/Call/CallControls/ToggleVideoPreviewButton.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/ToggleVideoPublishingButton.js +2 -2
- package/dist/commonjs/components/Call/CallControls/ToggleVideoPublishingButton.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/index.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/internal/ReactionsPicker.js +8 -8
- package/dist/commonjs/components/Call/CallControls/internal/ReactionsPicker.js.map +1 -1
- package/dist/commonjs/components/Call/CallLayout/CallParticipantsGrid.js +2 -2
- package/dist/commonjs/components/Call/CallLayout/CallParticipantsGrid.js.map +1 -1
- package/dist/commonjs/components/Call/CallLayout/CallParticipantsSpotlight.js +3 -3
- package/dist/commonjs/components/Call/CallLayout/CallParticipantsSpotlight.js.map +1 -1
- package/dist/commonjs/components/Call/CallLayout/index.js.map +1 -1
- package/dist/commonjs/components/Call/CallParticipantsList/CallParticipantsList.js +4 -5
- package/dist/commonjs/components/Call/CallParticipantsList/CallParticipantsList.js.map +1 -1
- package/dist/commonjs/components/Call/CallParticipantsList/index.js.map +1 -1
- package/dist/commonjs/components/Call/CallTopView/CallTopView.js +2 -2
- package/dist/commonjs/components/Call/CallTopView/CallTopView.js.map +1 -1
- package/dist/commonjs/components/Call/CallTopView/ParticipantsInfoBadge.js +1 -1
- package/dist/commonjs/components/Call/CallTopView/ParticipantsInfoBadge.js.map +1 -1
- package/dist/commonjs/components/Call/CallTopView/index.js.map +1 -1
- package/dist/commonjs/components/Call/Lobby/JoinCallButton.js +3 -3
- package/dist/commonjs/components/Call/Lobby/JoinCallButton.js.map +1 -1
- package/dist/commonjs/components/Call/Lobby/Lobby.js +6 -6
- package/dist/commonjs/components/Call/Lobby/Lobby.js.map +1 -1
- package/dist/commonjs/components/Call/Lobby/LobbyFooter.js +3 -3
- package/dist/commonjs/components/Call/Lobby/LobbyFooter.js.map +1 -1
- package/dist/commonjs/components/Call/Lobby/index.js.map +1 -1
- package/dist/commonjs/components/Call/RingingCallContent/IncomingCall.js +2 -2
- package/dist/commonjs/components/Call/RingingCallContent/IncomingCall.js.map +1 -1
- package/dist/commonjs/components/Call/RingingCallContent/JoiningCallIndicator.js +1 -1
- package/dist/commonjs/components/Call/RingingCallContent/JoiningCallIndicator.js.map +1 -1
- package/dist/commonjs/components/Call/RingingCallContent/OutgoingCall.js +1 -1
- package/dist/commonjs/components/Call/RingingCallContent/OutgoingCall.js.map +1 -1
- package/dist/commonjs/components/Call/RingingCallContent/RingingCallContent.js +2 -2
- package/dist/commonjs/components/Call/RingingCallContent/RingingCallContent.js.map +1 -1
- package/dist/commonjs/components/Call/RingingCallContent/UserInfo.js +4 -4
- package/dist/commonjs/components/Call/RingingCallContent/UserInfo.js.map +1 -1
- package/dist/commonjs/components/Call/RingingCallContent/index.js.map +1 -1
- package/dist/commonjs/components/Call/index.js.map +1 -1
- package/dist/commonjs/components/Livestream/HostLivestream/HostLivestream.js +3 -3
- package/dist/commonjs/components/Livestream/HostLivestream/HostLivestream.js.map +1 -1
- package/dist/commonjs/components/Livestream/HostLivestream/index.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 +8 -8
- package/dist/commonjs/components/Livestream/LivestreamControls/HostStartStreamButton.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamControls/LivestreamAudioControlButton.js +1 -1
- package/dist/commonjs/components/Livestream/LivestreamControls/LivestreamAudioControlButton.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamControls/LivestreamMediaControls.js +1 -1
- package/dist/commonjs/components/Livestream/LivestreamControls/LivestreamMediaControls.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamControls/LivestreamScreenShareToggleButton.js +7 -69
- package/dist/commonjs/components/Livestream/LivestreamControls/LivestreamScreenShareToggleButton.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamControls/LivestreamVideoControlButton.js +2 -2
- package/dist/commonjs/components/Livestream/LivestreamControls/LivestreamVideoControlButton.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamControls/ViewerLeaveStreamButton.js +3 -3
- 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/LivestreamControls/index.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamLayout/LivestreamLayout.js +5 -6
- package/dist/commonjs/components/Livestream/LivestreamLayout/LivestreamLayout.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamLayout/index.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamPlayer/LivestreamPlayer.js +10 -9
- package/dist/commonjs/components/Livestream/LivestreamPlayer/LivestreamPlayer.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamPlayer/index.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamTopView/DurationBadge.js +5 -5
- package/dist/commonjs/components/Livestream/LivestreamTopView/DurationBadge.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamTopView/FollowerCount.js +1 -1
- 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 +1 -1
- 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/LivestreamTopView/index.js.map +1 -1
- package/dist/commonjs/components/Livestream/ViewerLivestream/ViewerLivestream.js +3 -3
- package/dist/commonjs/components/Livestream/ViewerLivestream/ViewerLivestream.js.map +1 -1
- package/dist/commonjs/components/Livestream/ViewerLivestream/index.js.map +1 -1
- package/dist/commonjs/components/Livestream/index.js.map +1 -1
- package/dist/commonjs/components/Participant/FloatingParticipantView/FloatingView/AnimatedFloatingView.js +5 -6
- package/dist/commonjs/components/Participant/FloatingParticipantView/FloatingView/AnimatedFloatingView.js.map +1 -1
- package/dist/commonjs/components/Participant/FloatingParticipantView/FloatingView/ReanimatedFloatingView.js +4 -4
- package/dist/commonjs/components/Participant/FloatingParticipantView/FloatingView/ReanimatedFloatingView.js.map +1 -1
- package/dist/commonjs/components/Participant/FloatingParticipantView/FloatingView/common.js.map +1 -1
- package/dist/commonjs/components/Participant/FloatingParticipantView/FloatingView/index.js.map +1 -1
- package/dist/commonjs/components/Participant/FloatingParticipantView/index.js +2 -2
- package/dist/commonjs/components/Participant/FloatingParticipantView/index.js.map +1 -1
- package/dist/commonjs/components/Participant/ParticipantView/ParticipantLabel.js +3 -3
- package/dist/commonjs/components/Participant/ParticipantView/ParticipantLabel.js.map +1 -1
- package/dist/commonjs/components/Participant/ParticipantView/ParticipantNetworkQualityIndicator.js +1 -1
- package/dist/commonjs/components/Participant/ParticipantView/ParticipantNetworkQualityIndicator.js.map +1 -1
- package/dist/commonjs/components/Participant/ParticipantView/ParticipantReaction.js +3 -3
- package/dist/commonjs/components/Participant/ParticipantView/ParticipantReaction.js.map +1 -1
- package/dist/commonjs/components/Participant/ParticipantView/ParticipantVideoFallback.js +1 -1
- package/dist/commonjs/components/Participant/ParticipantView/ParticipantVideoFallback.js.map +1 -1
- package/dist/commonjs/components/Participant/ParticipantView/ParticipantView.js +1 -1
- package/dist/commonjs/components/Participant/ParticipantView/ParticipantView.js.map +1 -1
- package/dist/commonjs/components/Participant/ParticipantView/VideoRenderer.js +7 -8
- package/dist/commonjs/components/Participant/ParticipantView/VideoRenderer.js.map +1 -1
- package/dist/commonjs/components/Participant/ParticipantView/index.js.map +1 -1
- package/dist/commonjs/components/Participant/index.js.map +1 -1
- package/dist/commonjs/components/index.js.map +1 -1
- package/dist/commonjs/components/utility/Avatar.js +4 -4
- package/dist/commonjs/components/utility/Avatar.js.map +1 -1
- package/dist/commonjs/components/utility/ScreenShareOverlay.js +2 -2
- package/dist/commonjs/components/utility/ScreenShareOverlay.js.map +1 -1
- package/dist/commonjs/components/utility/index.js.map +1 -1
- package/dist/commonjs/constants/TestIds.js.map +1 -1
- package/dist/commonjs/constants/index.js.map +1 -1
- package/dist/commonjs/contexts/BackgroundFilters.js +7 -12
- package/dist/commonjs/contexts/BackgroundFilters.js.map +1 -1
- package/dist/commonjs/contexts/StreamVideoContext.js +2 -2
- package/dist/commonjs/contexts/StreamVideoContext.js.map +1 -1
- package/dist/commonjs/contexts/ThemeContext.js +3 -3
- package/dist/commonjs/contexts/ThemeContext.js.map +1 -1
- package/dist/commonjs/contexts/index.js.map +1 -1
- package/dist/commonjs/hooks/index.js +11 -0
- package/dist/commonjs/hooks/index.js.map +1 -1
- package/dist/commonjs/hooks/internal/useCallMediaStreamCleanup.js +2 -3
- package/dist/commonjs/hooks/internal/useCallMediaStreamCleanup.js.map +1 -1
- package/dist/commonjs/hooks/push/index.js.map +1 -1
- package/dist/commonjs/hooks/push/useInitAndroidTokenAndRest.js +1 -2
- package/dist/commonjs/hooks/push/useInitAndroidTokenAndRest.js.map +1 -1
- package/dist/commonjs/hooks/push/useIosCallKeepEventsSetupEffect.js +1 -1
- package/dist/commonjs/hooks/push/useIosCallKeepEventsSetupEffect.js.map +1 -1
- package/dist/commonjs/hooks/push/useIosCallkeepWithCallingStateEffect.js +7 -7
- package/dist/commonjs/hooks/push/useIosCallkeepWithCallingStateEffect.js.map +1 -1
- package/dist/commonjs/hooks/push/useIosInitRemoteNotifications.js +1 -2
- package/dist/commonjs/hooks/push/useIosInitRemoteNotifications.js.map +1 -1
- package/dist/commonjs/hooks/push/useIosVoipPushEventsSetupEffect.js +6 -8
- package/dist/commonjs/hooks/push/useIosVoipPushEventsSetupEffect.js.map +1 -1
- package/dist/commonjs/hooks/push/useProcessPushCallEffect.js +1 -2
- package/dist/commonjs/hooks/push/useProcessPushCallEffect.js.map +1 -1
- package/dist/commonjs/hooks/push/useProcessPushNonRingingCallEffect.js +1 -3
- package/dist/commonjs/hooks/push/useProcessPushNonRingingCallEffect.js.map +1 -1
- package/dist/commonjs/hooks/useAndroidKeepCallAliveEffect.js +3 -5
- package/dist/commonjs/hooks/useAndroidKeepCallAliveEffect.js.map +1 -1
- package/dist/commonjs/hooks/useApplyDefaultMediaStreamSettings.js +7 -7
- package/dist/commonjs/hooks/useApplyDefaultMediaStreamSettings.js.map +1 -1
- package/dist/commonjs/hooks/useAutoEnterPiPEffect.js.map +1 -1
- package/dist/commonjs/hooks/useIsInPiPMode.js +1 -2
- package/dist/commonjs/hooks/useIsInPiPMode.js.map +1 -1
- package/dist/commonjs/hooks/useIsIosScreenshareBroadcastStarted.js.map +1 -1
- package/dist/commonjs/hooks/usePaginatedLayoutSortPreset.js.map +1 -1
- package/dist/commonjs/hooks/usePermissionNotification.js.map +1 -1
- package/dist/commonjs/hooks/usePermissionRequest.js +2 -2
- package/dist/commonjs/hooks/usePermissionRequest.js.map +1 -1
- package/dist/commonjs/hooks/useScreenShareButton.js +89 -0
- package/dist/commonjs/hooks/useScreenShareButton.js.map +1 -0
- package/dist/commonjs/icons/Back.js +1 -1
- package/dist/commonjs/icons/Back.js.map +1 -1
- package/dist/commonjs/icons/CameraSwitch.js +1 -1
- package/dist/commonjs/icons/CameraSwitch.js.map +1 -1
- package/dist/commonjs/icons/Chat.js +1 -1
- package/dist/commonjs/icons/Chat.js.map +1 -1
- package/dist/commonjs/icons/EndStreamIcon.js +1 -1
- package/dist/commonjs/icons/EndStreamIcon.js.map +1 -1
- package/dist/commonjs/icons/Eye.js +1 -1
- package/dist/commonjs/icons/Eye.js.map +1 -1
- package/dist/commonjs/icons/LeaveStreamIcon.js +1 -1
- package/dist/commonjs/icons/LeaveStreamIcon.js.map +1 -1
- package/dist/commonjs/icons/Mic.js +1 -1
- package/dist/commonjs/icons/Mic.js.map +1 -1
- package/dist/commonjs/icons/MicOff.js +1 -1
- package/dist/commonjs/icons/MicOff.js.map +1 -1
- package/dist/commonjs/icons/Participants.js +1 -1
- package/dist/commonjs/icons/Participants.js.map +1 -1
- package/dist/commonjs/icons/Phone.js +1 -1
- package/dist/commonjs/icons/Phone.js.map +1 -1
- package/dist/commonjs/icons/PhoneDown.js +1 -1
- package/dist/commonjs/icons/PhoneDown.js.map +1 -1
- package/dist/commonjs/icons/PinVertical.js +1 -1
- package/dist/commonjs/icons/PinVertical.js.map +1 -1
- package/dist/commonjs/icons/Reaction.js +1 -1
- package/dist/commonjs/icons/Reaction.js.map +1 -1
- package/dist/commonjs/icons/ScreenShare.js +3 -3
- package/dist/commonjs/icons/ScreenShare.js.map +1 -1
- package/dist/commonjs/icons/ScreenShareIndicator.js +3 -3
- package/dist/commonjs/icons/ScreenShareIndicator.js.map +1 -1
- package/dist/commonjs/icons/Settings.js +3 -3
- package/dist/commonjs/icons/Settings.js.map +1 -1
- package/dist/commonjs/icons/ShieldBadge.js +1 -1
- package/dist/commonjs/icons/ShieldBadge.js.map +1 -1
- package/dist/commonjs/icons/Spotlight.js +1 -1
- package/dist/commonjs/icons/Spotlight.js.map +1 -1
- package/dist/commonjs/icons/StartStreamIcon.js +1 -1
- package/dist/commonjs/icons/StartStreamIcon.js.map +1 -1
- package/dist/commonjs/icons/StopScreenShare.js +3 -3
- package/dist/commonjs/icons/StopScreenShare.js.map +1 -1
- package/dist/commonjs/icons/ThreeDots.js +1 -1
- package/dist/commonjs/icons/ThreeDots.js.map +1 -1
- package/dist/commonjs/icons/TopViewBackground.js +1 -1
- package/dist/commonjs/icons/TopViewBackground.js.map +1 -1
- package/dist/commonjs/icons/Video.js +1 -1
- package/dist/commonjs/icons/Video.js.map +1 -1
- package/dist/commonjs/icons/VideoSlash.js +1 -1
- package/dist/commonjs/icons/VideoSlash.js.map +1 -1
- package/dist/commonjs/icons/index.js.map +1 -1
- package/dist/commonjs/index.js +2 -1
- package/dist/commonjs/index.js.map +1 -1
- package/dist/commonjs/providers/StreamCall.js +6 -10
- package/dist/commonjs/providers/StreamCall.js.map +1 -1
- package/dist/commonjs/providers/StreamVideo.js +4 -5
- package/dist/commonjs/providers/StreamVideo.js.map +1 -1
- package/dist/commonjs/theme/colors.js.map +1 -1
- package/dist/commonjs/theme/constants.js.map +1 -1
- package/dist/commonjs/theme/index.js.map +1 -1
- package/dist/commonjs/theme/theme.js.map +1 -1
- package/dist/commonjs/theme/types.js.map +1 -1
- package/dist/commonjs/translations/index.js +1 -1
- package/dist/commonjs/translations/index.js.map +1 -1
- package/dist/commonjs/utils/StreamVideoRN/index.js +3 -5
- package/dist/commonjs/utils/StreamVideoRN/index.js.map +1 -1
- package/dist/commonjs/utils/StreamVideoRN/types.js.map +1 -1
- package/dist/commonjs/utils/enterPiPAndroid.js +1 -2
- package/dist/commonjs/utils/enterPiPAndroid.js.map +1 -1
- package/dist/commonjs/utils/getAndroidDefaultRingtoneUrl.js +1 -2
- package/dist/commonjs/utils/getAndroidDefaultRingtoneUrl.js.map +1 -1
- package/dist/commonjs/utils/hooks/index.js.map +1 -1
- package/dist/commonjs/utils/hooks/useDebouncedValue.js.map +1 -1
- package/dist/commonjs/utils/hooks/usePrevious.js.map +1 -1
- package/dist/commonjs/utils/index.js.map +1 -1
- package/dist/commonjs/utils/internal/newNotificationCallbacks.js.map +1 -1
- package/dist/commonjs/utils/internal/optionallibs/gestureHandler.js.map +1 -1
- package/dist/commonjs/utils/internal/optionallibs/index.js.map +1 -1
- package/dist/commonjs/utils/internal/optionallibs/reanimated.js.map +1 -1
- package/dist/commonjs/utils/internal/pushLogoutCallback.js.map +1 -1
- package/dist/commonjs/utils/push/android.js +11 -19
- package/dist/commonjs/utils/push/android.js.map +1 -1
- package/dist/commonjs/utils/push/ios.js +7 -10
- package/dist/commonjs/utils/push/ios.js.map +1 -1
- package/dist/commonjs/utils/push/libs/callkeep.js.map +1 -1
- package/dist/commonjs/utils/push/libs/expoNotifications.js.map +1 -1
- package/dist/commonjs/utils/push/libs/expoTaskManager.js.map +1 -1
- package/dist/commonjs/utils/push/libs/firebaseMessaging.js.map +1 -1
- package/dist/commonjs/utils/push/libs/index.js.map +1 -1
- package/dist/commonjs/utils/push/libs/iosPushNotification.js.map +1 -1
- package/dist/commonjs/utils/push/libs/voipPushNotification.js.map +1 -1
- package/dist/commonjs/utils/push/rxSubjects.js.map +1 -1
- package/dist/commonjs/utils/push/utils.js +2 -2
- package/dist/commonjs/utils/push/utils.js.map +1 -1
- package/dist/commonjs/utils/setClientDetails.js +1 -1
- package/dist/commonjs/utils/setClientDetails.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 +2 -2
- package/dist/module/components/Call/CallContent/CallContent.js.map +1 -1
- package/dist/module/components/Call/CallContent/index.js.map +1 -1
- package/dist/module/components/Call/CallControls/AcceptCallButton.js +1 -1
- package/dist/module/components/Call/CallControls/AcceptCallButton.js.map +1 -1
- package/dist/module/components/Call/CallControls/CallControls.js.map +1 -1
- package/dist/module/components/Call/CallControls/CallControlsButton.js +2 -2
- package/dist/module/components/Call/CallControls/CallControlsButton.js.map +1 -1
- package/dist/module/components/Call/CallControls/ChatButton.js.map +1 -1
- package/dist/module/components/Call/CallControls/HangupCallButton.js +1 -1
- package/dist/module/components/Call/CallControls/HangupCallButton.js.map +1 -1
- package/dist/module/components/Call/CallControls/IncomingCallControls.js.map +1 -1
- package/dist/module/components/Call/CallControls/LobbyControls.js.map +1 -1
- package/dist/module/components/Call/CallControls/OutgoingCallControls.js.map +1 -1
- package/dist/module/components/Call/CallControls/ReactionsButton.js.map +1 -1
- package/dist/module/components/Call/CallControls/RejectCallButton.js +2 -2
- package/dist/module/components/Call/CallControls/RejectCallButton.js.map +1 -1
- package/dist/module/components/Call/CallControls/ScreenShareToggleButton.js +8 -80
- package/dist/module/components/Call/CallControls/ScreenShareToggleButton.js.map +1 -1
- package/dist/module/components/Call/CallControls/ToggleAudioPreviewButton.js.map +1 -1
- package/dist/module/components/Call/CallControls/ToggleAudioPublishingButton.js.map +1 -1
- package/dist/module/components/Call/CallControls/ToggleCameraFaceButton.js +1 -1
- package/dist/module/components/Call/CallControls/ToggleCameraFaceButton.js.map +1 -1
- package/dist/module/components/Call/CallControls/ToggleVideoPreviewButton.js +1 -1
- package/dist/module/components/Call/CallControls/ToggleVideoPreviewButton.js.map +1 -1
- package/dist/module/components/Call/CallControls/ToggleVideoPublishingButton.js +1 -1
- package/dist/module/components/Call/CallControls/ToggleVideoPublishingButton.js.map +1 -1
- package/dist/module/components/Call/CallControls/index.js.map +1 -1
- package/dist/module/components/Call/CallControls/internal/ReactionsPicker.js +6 -6
- 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 +2 -2
- package/dist/module/components/Call/CallLayout/CallParticipantsSpotlight.js.map +1 -1
- package/dist/module/components/Call/CallLayout/index.js.map +1 -1
- package/dist/module/components/Call/CallParticipantsList/CallParticipantsList.js +2 -3
- package/dist/module/components/Call/CallParticipantsList/CallParticipantsList.js.map +1 -1
- package/dist/module/components/Call/CallParticipantsList/index.js.map +1 -1
- package/dist/module/components/Call/CallTopView/CallTopView.js.map +1 -1
- package/dist/module/components/Call/CallTopView/ParticipantsInfoBadge.js.map +1 -1
- package/dist/module/components/Call/CallTopView/index.js.map +1 -1
- package/dist/module/components/Call/Lobby/JoinCallButton.js +2 -2
- package/dist/module/components/Call/Lobby/JoinCallButton.js.map +1 -1
- package/dist/module/components/Call/Lobby/Lobby.js +5 -5
- package/dist/module/components/Call/Lobby/Lobby.js.map +1 -1
- package/dist/module/components/Call/Lobby/LobbyFooter.js +2 -2
- package/dist/module/components/Call/Lobby/LobbyFooter.js.map +1 -1
- package/dist/module/components/Call/Lobby/index.js.map +1 -1
- package/dist/module/components/Call/RingingCallContent/IncomingCall.js +1 -1
- package/dist/module/components/Call/RingingCallContent/IncomingCall.js.map +1 -1
- package/dist/module/components/Call/RingingCallContent/JoiningCallIndicator.js.map +1 -1
- package/dist/module/components/Call/RingingCallContent/OutgoingCall.js.map +1 -1
- package/dist/module/components/Call/RingingCallContent/RingingCallContent.js +1 -1
- package/dist/module/components/Call/RingingCallContent/RingingCallContent.js.map +1 -1
- package/dist/module/components/Call/RingingCallContent/UserInfo.js +3 -3
- package/dist/module/components/Call/RingingCallContent/UserInfo.js.map +1 -1
- package/dist/module/components/Call/RingingCallContent/index.js.map +1 -1
- package/dist/module/components/Call/index.js.map +1 -1
- package/dist/module/components/Livestream/HostLivestream/HostLivestream.js.map +1 -1
- package/dist/module/components/Livestream/HostLivestream/index.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamControls/HostLivestreamControls.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamControls/HostStartStreamButton.js +6 -6
- package/dist/module/components/Livestream/LivestreamControls/HostStartStreamButton.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamControls/LivestreamAudioControlButton.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamControls/LivestreamMediaControls.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamControls/LivestreamScreenShareToggleButton.js +7 -68
- package/dist/module/components/Livestream/LivestreamControls/LivestreamScreenShareToggleButton.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamControls/LivestreamVideoControlButton.js +1 -1
- package/dist/module/components/Livestream/LivestreamControls/LivestreamVideoControlButton.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamControls/ViewerLeaveStreamButton.js +1 -1
- package/dist/module/components/Livestream/LivestreamControls/ViewerLeaveStreamButton.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamControls/ViewerLivestreamControls.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamControls/index.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamLayout/LivestreamLayout.js +3 -4
- package/dist/module/components/Livestream/LivestreamLayout/LivestreamLayout.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamLayout/index.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamPlayer/LivestreamPlayer.js +5 -4
- package/dist/module/components/Livestream/LivestreamPlayer/LivestreamPlayer.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamPlayer/index.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamTopView/DurationBadge.js +3 -3
- package/dist/module/components/Livestream/LivestreamTopView/DurationBadge.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamTopView/FollowerCount.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamTopView/HostLivestreamTopView.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamTopView/LiveIndicator.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamTopView/ViewerLivestreamTopView.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamTopView/index.js.map +1 -1
- package/dist/module/components/Livestream/ViewerLivestream/ViewerLivestream.js.map +1 -1
- package/dist/module/components/Livestream/ViewerLivestream/index.js.map +1 -1
- package/dist/module/components/Livestream/index.js.map +1 -1
- package/dist/module/components/Participant/FloatingParticipantView/FloatingView/AnimatedFloatingView.js +3 -4
- package/dist/module/components/Participant/FloatingParticipantView/FloatingView/AnimatedFloatingView.js.map +1 -1
- package/dist/module/components/Participant/FloatingParticipantView/FloatingView/ReanimatedFloatingView.js +2 -2
- package/dist/module/components/Participant/FloatingParticipantView/FloatingView/ReanimatedFloatingView.js.map +1 -1
- package/dist/module/components/Participant/FloatingParticipantView/FloatingView/common.js.map +1 -1
- package/dist/module/components/Participant/FloatingParticipantView/FloatingView/index.js.map +1 -1
- package/dist/module/components/Participant/FloatingParticipantView/index.js +1 -1
- package/dist/module/components/Participant/FloatingParticipantView/index.js.map +1 -1
- package/dist/module/components/Participant/ParticipantView/ParticipantLabel.js +2 -2
- package/dist/module/components/Participant/ParticipantView/ParticipantLabel.js.map +1 -1
- package/dist/module/components/Participant/ParticipantView/ParticipantNetworkQualityIndicator.js.map +1 -1
- package/dist/module/components/Participant/ParticipantView/ParticipantReaction.js +1 -1
- package/dist/module/components/Participant/ParticipantView/ParticipantReaction.js.map +1 -1
- package/dist/module/components/Participant/ParticipantView/ParticipantVideoFallback.js.map +1 -1
- package/dist/module/components/Participant/ParticipantView/ParticipantView.js.map +1 -1
- package/dist/module/components/Participant/ParticipantView/VideoRenderer.js +5 -6
- package/dist/module/components/Participant/ParticipantView/VideoRenderer.js.map +1 -1
- package/dist/module/components/Participant/ParticipantView/index.js.map +1 -1
- package/dist/module/components/Participant/index.js.map +1 -1
- package/dist/module/components/index.js.map +1 -1
- package/dist/module/components/utility/Avatar.js +3 -3
- package/dist/module/components/utility/Avatar.js.map +1 -1
- package/dist/module/components/utility/ScreenShareOverlay.js +1 -1
- package/dist/module/components/utility/ScreenShareOverlay.js.map +1 -1
- package/dist/module/components/utility/index.js.map +1 -1
- package/dist/module/constants/TestIds.js.map +1 -1
- package/dist/module/constants/index.js.map +1 -1
- package/dist/module/contexts/BackgroundFilters.js +5 -10
- package/dist/module/contexts/BackgroundFilters.js.map +1 -1
- package/dist/module/contexts/StreamVideoContext.js.map +1 -1
- package/dist/module/contexts/ThemeContext.js.map +1 -1
- package/dist/module/contexts/index.js.map +1 -1
- package/dist/module/hooks/index.js +1 -0
- package/dist/module/hooks/index.js.map +1 -1
- package/dist/module/hooks/internal/useCallMediaStreamCleanup.js +2 -3
- package/dist/module/hooks/internal/useCallMediaStreamCleanup.js.map +1 -1
- package/dist/module/hooks/push/index.js.map +1 -1
- package/dist/module/hooks/push/useInitAndroidTokenAndRest.js +1 -2
- package/dist/module/hooks/push/useInitAndroidTokenAndRest.js.map +1 -1
- package/dist/module/hooks/push/useIosCallKeepEventsSetupEffect.js +1 -1
- package/dist/module/hooks/push/useIosCallKeepEventsSetupEffect.js.map +1 -1
- package/dist/module/hooks/push/useIosCallkeepWithCallingStateEffect.js +7 -7
- package/dist/module/hooks/push/useIosCallkeepWithCallingStateEffect.js.map +1 -1
- package/dist/module/hooks/push/useIosInitRemoteNotifications.js +1 -2
- package/dist/module/hooks/push/useIosInitRemoteNotifications.js.map +1 -1
- package/dist/module/hooks/push/useIosVoipPushEventsSetupEffect.js +6 -8
- package/dist/module/hooks/push/useIosVoipPushEventsSetupEffect.js.map +1 -1
- package/dist/module/hooks/push/useProcessPushCallEffect.js +1 -2
- package/dist/module/hooks/push/useProcessPushCallEffect.js.map +1 -1
- package/dist/module/hooks/push/useProcessPushNonRingingCallEffect.js +1 -3
- package/dist/module/hooks/push/useProcessPushNonRingingCallEffect.js.map +1 -1
- package/dist/module/hooks/useAndroidKeepCallAliveEffect.js +1 -3
- package/dist/module/hooks/useAndroidKeepCallAliveEffect.js.map +1 -1
- package/dist/module/hooks/useApplyDefaultMediaStreamSettings.js +7 -7
- package/dist/module/hooks/useApplyDefaultMediaStreamSettings.js.map +1 -1
- package/dist/module/hooks/useAutoEnterPiPEffect.js.map +1 -1
- package/dist/module/hooks/useIsInPiPMode.js +1 -2
- package/dist/module/hooks/useIsInPiPMode.js.map +1 -1
- package/dist/module/hooks/useIsIosScreenshareBroadcastStarted.js.map +1 -1
- package/dist/module/hooks/usePaginatedLayoutSortPreset.js.map +1 -1
- package/dist/module/hooks/usePermissionNotification.js.map +1 -1
- package/dist/module/hooks/usePermissionRequest.js +2 -2
- package/dist/module/hooks/usePermissionRequest.js.map +1 -1
- package/dist/module/hooks/useScreenShareButton.js +83 -0
- package/dist/module/hooks/useScreenShareButton.js.map +1 -0
- package/dist/module/icons/Back.js.map +1 -1
- package/dist/module/icons/CameraSwitch.js.map +1 -1
- package/dist/module/icons/Chat.js.map +1 -1
- package/dist/module/icons/EndStreamIcon.js.map +1 -1
- package/dist/module/icons/Eye.js.map +1 -1
- package/dist/module/icons/LeaveStreamIcon.js.map +1 -1
- package/dist/module/icons/Mic.js.map +1 -1
- package/dist/module/icons/MicOff.js.map +1 -1
- package/dist/module/icons/Participants.js.map +1 -1
- package/dist/module/icons/Phone.js.map +1 -1
- package/dist/module/icons/PhoneDown.js.map +1 -1
- package/dist/module/icons/PinVertical.js.map +1 -1
- package/dist/module/icons/Reaction.js.map +1 -1
- package/dist/module/icons/ScreenShare.js.map +1 -1
- package/dist/module/icons/ScreenShareIndicator.js.map +1 -1
- package/dist/module/icons/Settings.js.map +1 -1
- package/dist/module/icons/ShieldBadge.js.map +1 -1
- package/dist/module/icons/Spotlight.js.map +1 -1
- package/dist/module/icons/StartStreamIcon.js.map +1 -1
- package/dist/module/icons/StopScreenShare.js.map +1 -1
- package/dist/module/icons/ThreeDots.js.map +1 -1
- package/dist/module/icons/TopViewBackground.js.map +1 -1
- package/dist/module/icons/Video.js.map +1 -1
- package/dist/module/icons/VideoSlash.js.map +1 -1
- package/dist/module/icons/index.js.map +1 -1
- package/dist/module/index.js.map +1 -1
- package/dist/module/providers/StreamCall.js +4 -8
- package/dist/module/providers/StreamCall.js.map +1 -1
- package/dist/module/providers/StreamVideo.js +1 -2
- package/dist/module/providers/StreamVideo.js.map +1 -1
- package/dist/module/theme/colors.js.map +1 -1
- package/dist/module/theme/constants.js.map +1 -1
- package/dist/module/theme/index.js.map +1 -1
- package/dist/module/theme/theme.js.map +1 -1
- package/dist/module/theme/types.js.map +1 -1
- package/dist/module/translations/index.js.map +1 -1
- package/dist/module/utils/StreamVideoRN/index.js +2 -4
- package/dist/module/utils/StreamVideoRN/index.js.map +1 -1
- package/dist/module/utils/StreamVideoRN/types.js.map +1 -1
- package/dist/module/utils/enterPiPAndroid.js +1 -2
- package/dist/module/utils/enterPiPAndroid.js.map +1 -1
- package/dist/module/utils/getAndroidDefaultRingtoneUrl.js +1 -2
- package/dist/module/utils/getAndroidDefaultRingtoneUrl.js.map +1 -1
- package/dist/module/utils/hooks/index.js.map +1 -1
- package/dist/module/utils/hooks/useDebouncedValue.js.map +1 -1
- package/dist/module/utils/hooks/usePrevious.js.map +1 -1
- package/dist/module/utils/index.js.map +1 -1
- package/dist/module/utils/internal/newNotificationCallbacks.js.map +1 -1
- package/dist/module/utils/internal/optionallibs/gestureHandler.js.map +1 -1
- package/dist/module/utils/internal/optionallibs/index.js.map +1 -1
- package/dist/module/utils/internal/optionallibs/reanimated.js.map +1 -1
- package/dist/module/utils/internal/pushLogoutCallback.js.map +1 -1
- package/dist/module/utils/push/android.js +9 -17
- package/dist/module/utils/push/android.js.map +1 -1
- package/dist/module/utils/push/ios.js +5 -8
- package/dist/module/utils/push/ios.js.map +1 -1
- package/dist/module/utils/push/libs/callkeep.js.map +1 -1
- package/dist/module/utils/push/libs/expoNotifications.js.map +1 -1
- package/dist/module/utils/push/libs/expoTaskManager.js.map +1 -1
- package/dist/module/utils/push/libs/firebaseMessaging.js.map +1 -1
- package/dist/module/utils/push/libs/index.js.map +1 -1
- package/dist/module/utils/push/libs/iosPushNotification.js.map +1 -1
- package/dist/module/utils/push/libs/voipPushNotification.js.map +1 -1
- package/dist/module/utils/push/rxSubjects.js.map +1 -1
- package/dist/module/utils/push/utils.js +2 -2
- package/dist/module/utils/push/utils.js.map +1 -1
- package/dist/module/utils/setClientDetails.js.map +1 -1
- package/dist/module/version.js +1 -1
- package/dist/module/version.js.map +1 -1
- package/dist/typescript/components/Call/CallControls/CallControlsButton.d.ts.map +1 -1
- package/dist/typescript/components/Call/CallControls/ScreenShareToggleButton.d.ts.map +1 -1
- package/dist/typescript/components/Livestream/LivestreamControls/LivestreamScreenShareToggleButton.d.ts +1 -1
- package/dist/typescript/components/Livestream/LivestreamControls/LivestreamScreenShareToggleButton.d.ts.map +1 -1
- package/dist/typescript/components/Livestream/LivestreamPlayer/LivestreamPlayer.d.ts +1 -1
- package/dist/typescript/components/Livestream/LivestreamPlayer/LivestreamPlayer.d.ts.map +1 -1
- package/dist/typescript/components/Participant/FloatingParticipantView/FloatingView/common.d.ts +0 -1
- package/dist/typescript/components/Participant/FloatingParticipantView/FloatingView/common.d.ts.map +1 -1
- package/dist/typescript/components/Participant/FloatingParticipantView/FloatingView/index.d.ts +0 -1
- package/dist/typescript/components/Participant/FloatingParticipantView/FloatingView/index.d.ts.map +1 -1
- package/dist/typescript/contexts/StreamVideoContext.d.ts.map +1 -1
- package/dist/typescript/hooks/index.d.ts +1 -0
- package/dist/typescript/hooks/index.d.ts.map +1 -1
- package/dist/typescript/hooks/useScreenShareButton.d.ts +9 -0
- package/dist/typescript/hooks/useScreenShareButton.d.ts.map +1 -0
- package/dist/typescript/providers/StreamCall.d.ts.map +1 -1
- package/dist/typescript/providers/StreamVideo.d.ts.map +1 -1
- package/dist/typescript/utils/internal/optionallibs/reanimated.d.ts +0 -1
- package/dist/typescript/utils/internal/optionallibs/reanimated.d.ts.map +1 -1
- package/dist/typescript/utils/push/libs/callkeep.d.ts +0 -1
- package/dist/typescript/utils/push/libs/callkeep.d.ts.map +1 -1
- package/dist/typescript/utils/push/libs/voipPushNotification.d.ts +0 -1
- package/dist/typescript/utils/push/libs/voipPushNotification.d.ts.map +1 -1
- package/dist/typescript/utils/push/utils.d.ts +1 -1
- package/dist/typescript/utils/push/utils.d.ts.map +1 -1
- package/dist/typescript/version.d.ts +1 -1
- package/expo-config-plugin/dist/common/addNewLinesToAppDelegate.js +1 -1
- package/expo-config-plugin/dist/common/addNewLinesToMainActivity.js +1 -1
- package/expo-config-plugin/dist/withAndroidManifest.js +6 -6
- package/expo-config-plugin/dist/withIosScreenCapture/addBroadcastExtensionXcodeTarget.js +1 -1
- package/expo-config-plugin/dist/withMainActivity.js +17 -0
- package/package.json +17 -21
- package/src/components/Call/CallControls/ScreenShareToggleButton.tsx +9 -95
- package/src/components/Livestream/LivestreamControls/LivestreamScreenShareToggleButton.tsx +6 -91
- package/src/components/Livestream/LivestreamPlayer/LivestreamPlayer.tsx +4 -3
- package/src/components/Livestream/LivestreamTopView/DurationBadge.tsx +2 -2
- package/src/hooks/index.ts +1 -0
- package/src/hooks/useScreenShareButton.ts +128 -0
- package/src/version.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stream-io/video-react-native-sdk",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.8",
|
|
4
4
|
"packageManager": "yarn@3.2.4",
|
|
5
5
|
"main": "dist/commonjs/index.js",
|
|
6
6
|
"module": "dist/module/index.js",
|
|
@@ -46,8 +46,8 @@
|
|
|
46
46
|
"!**/.*"
|
|
47
47
|
],
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@stream-io/video-client": "^1.4.
|
|
50
|
-
"@stream-io/video-react-bindings": "^0.4.
|
|
49
|
+
"@stream-io/video-client": "^1.4.3",
|
|
50
|
+
"@stream-io/video-react-bindings": "^0.4.47",
|
|
51
51
|
"intl-pluralrules": "2.0.1",
|
|
52
52
|
"lodash.merge": "^4.6.2",
|
|
53
53
|
"react-native-url-polyfill": "1.3.0",
|
|
@@ -113,14 +113,14 @@
|
|
|
113
113
|
}
|
|
114
114
|
},
|
|
115
115
|
"devDependencies": {
|
|
116
|
-
"@babel/preset-typescript": "^7.
|
|
117
|
-
"@expo/config-plugins": "~7.8.
|
|
116
|
+
"@babel/preset-typescript": "^7.24.7",
|
|
117
|
+
"@expo/config-plugins": "~7.8.4",
|
|
118
118
|
"@notifee/react-native": "7.8.0",
|
|
119
119
|
"@react-native-community/netinfo": "9.3.9",
|
|
120
120
|
"@react-native-community/push-notification-ios": "1.11.0",
|
|
121
121
|
"@react-native-firebase/app": "17.5.0",
|
|
122
122
|
"@react-native-firebase/messaging": "17.5.0",
|
|
123
|
-
"@react-native/eslint-config": "^0.74.
|
|
123
|
+
"@react-native/eslint-config": "^0.74.84",
|
|
124
124
|
"@stream-io/react-native-webrtc": "118.1.0",
|
|
125
125
|
"@stream-io/video-filters-react-native": "^0.2.1",
|
|
126
126
|
"@testing-library/jest-native": "^5.4.2",
|
|
@@ -132,18 +132,14 @@
|
|
|
132
132
|
"@types/react-native": "^0.70.4",
|
|
133
133
|
"@types/react-native-incall-manager": "^3.2.1",
|
|
134
134
|
"@types/react-test-renderer": "^18",
|
|
135
|
-
"
|
|
136
|
-
"
|
|
137
|
-
"
|
|
138
|
-
"expo": "
|
|
139
|
-
"expo-
|
|
140
|
-
"
|
|
141
|
-
"expo-notifications": "0.20.1",
|
|
142
|
-
"expo-task-manager": "11.3.0",
|
|
143
|
-
"jest": "^29.5.0",
|
|
144
|
-
"prettier": "^3.3.0",
|
|
135
|
+
"expo": "50.0.19",
|
|
136
|
+
"expo-build-properties": "^0.12.3",
|
|
137
|
+
"expo-modules-core": "1.12.16",
|
|
138
|
+
"expo-notifications": "~0.27.8",
|
|
139
|
+
"expo-task-manager": "~11.7.3",
|
|
140
|
+
"jest": "^29.7.0",
|
|
145
141
|
"react-native": "0.71.8",
|
|
146
|
-
"react-native-builder-bob": "^0.
|
|
142
|
+
"react-native-builder-bob": "^0.23.2",
|
|
147
143
|
"react-native-callkeep": "4.3.11",
|
|
148
144
|
"react-native-gesture-handler": "2.16.2",
|
|
149
145
|
"react-native-incall-manager": "^4.0.0",
|
|
@@ -151,10 +147,10 @@
|
|
|
151
147
|
"react-native-svg": "^13.6.0",
|
|
152
148
|
"react-native-voip-push-notification": "3.3.1",
|
|
153
149
|
"react-test-renderer": "^18.2.0",
|
|
154
|
-
"rimraf": "^5.0.
|
|
155
|
-
"ts-jest": "^29.1.
|
|
156
|
-
"ts-node": "^10.9.
|
|
157
|
-
"typescript": "^5.
|
|
150
|
+
"rimraf": "^5.0.7",
|
|
151
|
+
"ts-jest": "^29.1.5",
|
|
152
|
+
"ts-node": "^10.9.2",
|
|
153
|
+
"typescript": "^5.5.2"
|
|
158
154
|
},
|
|
159
155
|
"resolutions": {
|
|
160
156
|
"@types/react": "^18.2.44"
|
|
@@ -1,21 +1,11 @@
|
|
|
1
|
-
import React, {
|
|
2
|
-
import {
|
|
1
|
+
import React, { useRef } from 'react';
|
|
2
|
+
import { Platform } from 'react-native';
|
|
3
3
|
import { ScreenCapturePickerView } from '@stream-io/react-native-webrtc';
|
|
4
4
|
import { ScreenShare } from '../../../icons/ScreenShare';
|
|
5
5
|
import { StopScreenShare } from '../../../icons/StopScreenShare';
|
|
6
6
|
import { CallControlsButton } from './CallControlsButton';
|
|
7
7
|
import { useTheme } from '../../../contexts/ThemeContext';
|
|
8
|
-
import {
|
|
9
|
-
import { useIsIosScreenshareBroadcastStarted } from '../../../hooks/useIsIosScreenshareBroadcastStarted';
|
|
10
|
-
import { hasScreenShare, SfuModels } from '@stream-io/video-client';
|
|
11
|
-
import { usePrevious } from '../../../utils/hooks/usePrevious';
|
|
12
|
-
|
|
13
|
-
// ios >= 14.0 or android - platform restrictions
|
|
14
|
-
const CanDeviceScreenShare =
|
|
15
|
-
(Platform.OS === 'ios' &&
|
|
16
|
-
// @ts-ignore
|
|
17
|
-
Number.parseInt(Platform.Version.split('.')[0], 10) >= 14) ||
|
|
18
|
-
Platform.OS === 'android';
|
|
8
|
+
import { useScreenShareButton } from '../../../hooks/useScreenShareButton';
|
|
19
9
|
|
|
20
10
|
/**
|
|
21
11
|
* The props for the Screen Share button in the Call Controls.
|
|
@@ -45,94 +35,18 @@ export const ScreenShareToggleButton = ({
|
|
|
45
35
|
theme: { colors, screenShareToggleButton },
|
|
46
36
|
} = useTheme();
|
|
47
37
|
|
|
48
|
-
const
|
|
49
|
-
const { useLocalParticipant, useCallSettings } = useCallStateHooks();
|
|
50
|
-
const callSettings = useCallSettings();
|
|
51
|
-
const isScreenSharingEnabledInCall = callSettings?.screensharing.enabled;
|
|
52
|
-
const isScreenSharingAccessRequestEnabled =
|
|
53
|
-
callSettings?.screensharing.access_request_enabled;
|
|
54
|
-
|
|
55
|
-
const onScreenShareStartedHandlerRef = useRef(onScreenShareStartedHandler);
|
|
56
|
-
onScreenShareStartedHandlerRef.current = onScreenShareStartedHandler;
|
|
57
|
-
const onScreenShareStoppedHandlerRef = useRef(onScreenShareStoppedHandler);
|
|
58
|
-
onScreenShareStoppedHandlerRef.current = onScreenShareStoppedHandler;
|
|
38
|
+
const screenCapturePickerViewiOSRef = useRef(null);
|
|
59
39
|
|
|
60
|
-
const
|
|
61
|
-
|
|
62
|
-
|
|
40
|
+
const { onPress, hasPublishedScreenShare } = useScreenShareButton(
|
|
41
|
+
screenCapturePickerViewiOSRef,
|
|
42
|
+
onScreenShareStartedHandler,
|
|
43
|
+
onScreenShareStoppedHandler
|
|
63
44
|
);
|
|
64
45
|
|
|
65
|
-
|
|
66
|
-
const hasPublishedScreenShare =
|
|
67
|
-
localParticipant && hasScreenShare(localParticipant);
|
|
68
|
-
|
|
69
|
-
// listens to iOS screen share broadcast started event from the system
|
|
70
|
-
useEffect(() => {
|
|
71
|
-
const run = async () => {
|
|
72
|
-
if (Platform.OS !== 'ios') {
|
|
73
|
-
return;
|
|
74
|
-
}
|
|
75
|
-
if (
|
|
76
|
-
iosScreenShareStartedFromSystem &&
|
|
77
|
-
!prevIosScreenShareStartedFromSystem
|
|
78
|
-
) {
|
|
79
|
-
onScreenShareStartedHandlerRef.current?.();
|
|
80
|
-
const media = await navigator.mediaDevices.getDisplayMedia({
|
|
81
|
-
// @ts-ignore
|
|
82
|
-
deviceId: 'broadcast',
|
|
83
|
-
video: true,
|
|
84
|
-
audio: true,
|
|
85
|
-
});
|
|
86
|
-
await call?.publishScreenShareStream(media);
|
|
87
|
-
} else if (
|
|
88
|
-
!iosScreenShareStartedFromSystem &&
|
|
89
|
-
prevIosScreenShareStartedFromSystem
|
|
90
|
-
) {
|
|
91
|
-
onScreenShareStoppedHandlerRef.current?.();
|
|
92
|
-
await call?.stopPublish(SfuModels.TrackType.SCREEN_SHARE);
|
|
93
|
-
}
|
|
94
|
-
};
|
|
95
|
-
run();
|
|
96
|
-
}, [
|
|
97
|
-
call,
|
|
98
|
-
iosScreenShareStartedFromSystem,
|
|
99
|
-
prevIosScreenShareStartedFromSystem,
|
|
100
|
-
]);
|
|
101
|
-
|
|
102
|
-
const screenCapturePickerViewiOSRef = React.useRef(null);
|
|
103
|
-
|
|
104
|
-
const onPress = async () => {
|
|
105
|
-
if (!hasPublishedScreenShare) {
|
|
106
|
-
if (Platform.OS === 'ios') {
|
|
107
|
-
const reactTag = findNodeHandle(screenCapturePickerViewiOSRef.current);
|
|
108
|
-
await NativeModules.ScreenCapturePickerViewManager.show(reactTag);
|
|
109
|
-
// After this the iOS screen share broadcast started/stopped event will be triggered
|
|
110
|
-
// and the useEffect listener will handle the rest
|
|
111
|
-
} else {
|
|
112
|
-
try {
|
|
113
|
-
const media = await navigator.mediaDevices.getDisplayMedia({
|
|
114
|
-
video: true,
|
|
115
|
-
audio: true,
|
|
116
|
-
});
|
|
117
|
-
onScreenShareStartedHandler?.();
|
|
118
|
-
await call?.publishScreenShareStream(media);
|
|
119
|
-
} catch (e) {
|
|
120
|
-
// ignored.. user didnt allow the screen share in the popup
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
} else if (hasPublishedScreenShare) {
|
|
124
|
-
onScreenShareStoppedHandler?.();
|
|
125
|
-
await call?.stopPublish(SfuModels.TrackType.SCREEN_SHARE);
|
|
126
|
-
}
|
|
127
|
-
};
|
|
128
|
-
|
|
129
|
-
if (!isScreenSharingEnabledInCall || !CanDeviceScreenShare) {
|
|
130
|
-
return null;
|
|
131
|
-
}
|
|
46
|
+
if (!onPress) return null;
|
|
132
47
|
|
|
133
48
|
return (
|
|
134
49
|
<CallControlsButton
|
|
135
|
-
disabled={!isScreenSharingAccessRequestEnabled}
|
|
136
50
|
onPress={onPress}
|
|
137
51
|
color={hasPublishedScreenShare ? colors.error : colors.static_white}
|
|
138
52
|
style={{
|
|
@@ -1,30 +1,13 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { useTheme } from '../../../contexts/ThemeContext';
|
|
3
|
-
import {
|
|
4
|
-
findNodeHandle,
|
|
5
|
-
NativeModules,
|
|
6
|
-
Platform,
|
|
7
|
-
Pressable,
|
|
8
|
-
StyleSheet,
|
|
9
|
-
View,
|
|
10
|
-
} from 'react-native';
|
|
3
|
+
import { Platform, Pressable, StyleSheet, View } from 'react-native';
|
|
11
4
|
import { ScreenShare } from '../../../icons/ScreenShare';
|
|
12
5
|
import { StopScreenShare } from '../../../icons/StopScreenShare';
|
|
13
6
|
import { ScreenCapturePickerView } from '@stream-io/react-native-webrtc';
|
|
14
|
-
import {
|
|
15
|
-
import { useCall, useCallStateHooks } from '@stream-io/video-react-bindings';
|
|
16
|
-
import { useIsIosScreenshareBroadcastStarted } from '../../../hooks/useIsIosScreenshareBroadcastStarted';
|
|
17
|
-
import { usePrevious } from '../../../utils/hooks/usePrevious';
|
|
7
|
+
import { useScreenShareButton } from '../../../hooks/useScreenShareButton';
|
|
18
8
|
|
|
19
9
|
export type LivestreamScreenShareToggleButtonProps = {};
|
|
20
10
|
|
|
21
|
-
// ios >= 14.0 or android - platform restrictions
|
|
22
|
-
const CanDeviceScreenShare =
|
|
23
|
-
(Platform.OS === 'ios' &&
|
|
24
|
-
// @ts-ignore
|
|
25
|
-
Number.parseInt(Platform.Version.split('.')[0], 10) >= 14) ||
|
|
26
|
-
Platform.OS === 'android';
|
|
27
|
-
|
|
28
11
|
/**
|
|
29
12
|
* The LivestreamVideoControlButton controls the screenshare stream publish/unpublish while in the livestream for the host.
|
|
30
13
|
*/
|
|
@@ -37,79 +20,11 @@ export const LivestreamScreenShareToggleButton = () => {
|
|
|
37
20
|
},
|
|
38
21
|
} = useTheme();
|
|
39
22
|
|
|
40
|
-
const call = useCall();
|
|
41
|
-
const { useLocalParticipant, useCallSettings } = useCallStateHooks();
|
|
42
|
-
const callSettings = useCallSettings();
|
|
43
|
-
const isScreenSharingEnabledInCall = callSettings?.screensharing.enabled;
|
|
44
|
-
|
|
45
|
-
const iosScreenShareStartedFromSystem = useIsIosScreenshareBroadcastStarted();
|
|
46
|
-
const prevIosScreenShareStartedFromSystem = usePrevious(
|
|
47
|
-
iosScreenShareStartedFromSystem
|
|
48
|
-
);
|
|
49
|
-
|
|
50
|
-
const localParticipant = useLocalParticipant();
|
|
51
|
-
const hasPublishedScreenShare =
|
|
52
|
-
localParticipant && hasScreenShare(localParticipant);
|
|
53
|
-
|
|
54
|
-
// listens to iOS screen share broadcast started event from the system
|
|
55
|
-
useEffect(() => {
|
|
56
|
-
const run = async () => {
|
|
57
|
-
if (Platform.OS !== 'ios') {
|
|
58
|
-
return;
|
|
59
|
-
}
|
|
60
|
-
if (
|
|
61
|
-
iosScreenShareStartedFromSystem &&
|
|
62
|
-
!prevIosScreenShareStartedFromSystem
|
|
63
|
-
) {
|
|
64
|
-
const media = await navigator.mediaDevices.getDisplayMedia({
|
|
65
|
-
// @ts-ignore
|
|
66
|
-
deviceId: 'broadcast',
|
|
67
|
-
video: true,
|
|
68
|
-
audio: true,
|
|
69
|
-
});
|
|
70
|
-
await call?.publishScreenShareStream(media);
|
|
71
|
-
} else if (
|
|
72
|
-
!iosScreenShareStartedFromSystem &&
|
|
73
|
-
prevIosScreenShareStartedFromSystem
|
|
74
|
-
) {
|
|
75
|
-
await call?.stopPublish(SfuModels.TrackType.SCREEN_SHARE);
|
|
76
|
-
}
|
|
77
|
-
};
|
|
78
|
-
run();
|
|
79
|
-
}, [
|
|
80
|
-
call,
|
|
81
|
-
iosScreenShareStartedFromSystem,
|
|
82
|
-
prevIosScreenShareStartedFromSystem,
|
|
83
|
-
]);
|
|
84
|
-
|
|
85
23
|
const screenCapturePickerViewiOSRef = React.useRef(null);
|
|
86
24
|
|
|
87
|
-
const onPress =
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
const reactTag = findNodeHandle(screenCapturePickerViewiOSRef.current);
|
|
91
|
-
await NativeModules.ScreenCapturePickerViewManager.show(reactTag);
|
|
92
|
-
// After this the iOS screen share broadcast started/stopped event will be triggered
|
|
93
|
-
// and the useEffect listener will handle the rest
|
|
94
|
-
} else {
|
|
95
|
-
try {
|
|
96
|
-
const media = await navigator.mediaDevices.getDisplayMedia({
|
|
97
|
-
video: true,
|
|
98
|
-
audio: true,
|
|
99
|
-
});
|
|
100
|
-
await call?.publishScreenShareStream(media);
|
|
101
|
-
} catch (e) {
|
|
102
|
-
// ignored.. user didnt allow the screen share in the popup
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
} else if (hasPublishedScreenShare) {
|
|
106
|
-
await call?.stopPublish(SfuModels.TrackType.SCREEN_SHARE);
|
|
107
|
-
}
|
|
108
|
-
};
|
|
109
|
-
|
|
110
|
-
if (!isScreenSharingEnabledInCall || !CanDeviceScreenShare) {
|
|
111
|
-
return null;
|
|
112
|
-
}
|
|
25
|
+
const { onPress, hasPublishedScreenShare } = useScreenShareButton(
|
|
26
|
+
screenCapturePickerViewiOSRef
|
|
27
|
+
);
|
|
113
28
|
|
|
114
29
|
return (
|
|
115
30
|
<Pressable
|
|
@@ -2,9 +2,10 @@ import React, { useEffect, useState } from 'react';
|
|
|
2
2
|
import {
|
|
3
3
|
ViewerLivestream as DefaultViewerLivestream,
|
|
4
4
|
ViewerLivestreamProps,
|
|
5
|
-
} from '
|
|
6
|
-
import { Call,
|
|
7
|
-
import {
|
|
5
|
+
} from '../ViewerLivestream';
|
|
6
|
+
import { Call, CallingState, getLogger } from '@stream-io/video-client';
|
|
7
|
+
import { StreamCall } from '../../../providers/StreamCall';
|
|
8
|
+
import { useStreamVideoClient } from '@stream-io/video-react-bindings';
|
|
8
9
|
|
|
9
10
|
export type LivestreamPlayerProps = {
|
|
10
11
|
/**
|
|
@@ -42,7 +42,7 @@ export const DurationBadge = ({ mode }: DurationBadgeProps) => {
|
|
|
42
42
|
if (mode !== 'host') {
|
|
43
43
|
return;
|
|
44
44
|
}
|
|
45
|
-
let intervalId: NodeJS.
|
|
45
|
+
let intervalId: NodeJS.Timeout;
|
|
46
46
|
|
|
47
47
|
const handleLiveStarted = () => {
|
|
48
48
|
intervalId = setInterval(() => {
|
|
@@ -86,7 +86,7 @@ export const DurationBadge = ({ mode }: DurationBadgeProps) => {
|
|
|
86
86
|
if (mode !== 'viewer') {
|
|
87
87
|
return;
|
|
88
88
|
}
|
|
89
|
-
let intervalId: NodeJS.
|
|
89
|
+
let intervalId: NodeJS.Timeout;
|
|
90
90
|
const handleLiveStarted = () => {
|
|
91
91
|
intervalId = setInterval(() => {
|
|
92
92
|
setDuration((d) => d + 1);
|
package/src/hooks/index.ts
CHANGED
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getLogger,
|
|
3
|
+
hasScreenShare,
|
|
4
|
+
OwnCapability,
|
|
5
|
+
} from '@stream-io/video-client';
|
|
6
|
+
import { useCall, useCallStateHooks } from '@stream-io/video-react-bindings';
|
|
7
|
+
import React, { useRef, useEffect } from 'react';
|
|
8
|
+
import { Platform, findNodeHandle, NativeModules } from 'react-native';
|
|
9
|
+
import { usePrevious } from '../utils/hooks';
|
|
10
|
+
import { useIsIosScreenshareBroadcastStarted } from './useIsIosScreenshareBroadcastStarted';
|
|
11
|
+
|
|
12
|
+
// ios >= 14.0 or android - platform restrictions
|
|
13
|
+
const CanDeviceScreenShare =
|
|
14
|
+
(Platform.OS === 'ios' &&
|
|
15
|
+
// @ts-ignore
|
|
16
|
+
Number.parseInt(Platform.Version.split('.')[0], 10) >= 14,
|
|
17
|
+
10) || Platform.OS === 'android';
|
|
18
|
+
|
|
19
|
+
export const useScreenShareButton = (
|
|
20
|
+
/**
|
|
21
|
+
* Ref of the ScreenCapturePickerView component.
|
|
22
|
+
*
|
|
23
|
+
*/
|
|
24
|
+
screenCapturePickerViewiOSRef: React.MutableRefObject<any>,
|
|
25
|
+
/**
|
|
26
|
+
* Handler to be called when the screen-share has been started.
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
onScreenShareStartedHandler?: () => void,
|
|
30
|
+
/**
|
|
31
|
+
* Handler to be called when the screen-share has been stopped.
|
|
32
|
+
*
|
|
33
|
+
*/
|
|
34
|
+
onScreenShareStoppedHandler?: () => void,
|
|
35
|
+
/**
|
|
36
|
+
* Handler to be called when the permissions to stream screen share media is missing
|
|
37
|
+
*
|
|
38
|
+
*/
|
|
39
|
+
onMissingScreenShareStreamPermission?: () => void
|
|
40
|
+
) => {
|
|
41
|
+
const call = useCall();
|
|
42
|
+
const { useLocalParticipant, useCallSettings, useOwnCapabilities } =
|
|
43
|
+
useCallStateHooks();
|
|
44
|
+
const callSettings = useCallSettings();
|
|
45
|
+
const ownCapabilities = useOwnCapabilities();
|
|
46
|
+
const hasScreenSharingPermissions = ownCapabilities?.includes(
|
|
47
|
+
OwnCapability.SCREENSHARE
|
|
48
|
+
);
|
|
49
|
+
const isScreenSharingEnabledInCall = callSettings?.screensharing.enabled;
|
|
50
|
+
|
|
51
|
+
const onScreenShareStartedHandlerRef = useRef(onScreenShareStartedHandler);
|
|
52
|
+
onScreenShareStartedHandlerRef.current = onScreenShareStartedHandler;
|
|
53
|
+
const onScreenShareStoppedHandlerRef = useRef(onScreenShareStoppedHandler);
|
|
54
|
+
onScreenShareStoppedHandlerRef.current = onScreenShareStoppedHandler;
|
|
55
|
+
|
|
56
|
+
const iosScreenShareStartedFromSystem = useIsIosScreenshareBroadcastStarted();
|
|
57
|
+
const prevIosScreenShareStartedFromSystem = usePrevious(
|
|
58
|
+
iosScreenShareStartedFromSystem
|
|
59
|
+
);
|
|
60
|
+
|
|
61
|
+
const localParticipant = useLocalParticipant();
|
|
62
|
+
const hasPublishedScreenShare =
|
|
63
|
+
localParticipant && hasScreenShare(localParticipant);
|
|
64
|
+
|
|
65
|
+
// listens to iOS screen share broadcast started event from the system
|
|
66
|
+
useEffect(() => {
|
|
67
|
+
if (Platform.OS !== 'ios') {
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
70
|
+
if (
|
|
71
|
+
iosScreenShareStartedFromSystem &&
|
|
72
|
+
!prevIosScreenShareStartedFromSystem
|
|
73
|
+
) {
|
|
74
|
+
onScreenShareStartedHandlerRef.current?.();
|
|
75
|
+
call?.screenShare.enable();
|
|
76
|
+
} else if (
|
|
77
|
+
!iosScreenShareStartedFromSystem &&
|
|
78
|
+
prevIosScreenShareStartedFromSystem
|
|
79
|
+
) {
|
|
80
|
+
onScreenShareStoppedHandlerRef.current?.();
|
|
81
|
+
call?.screenShare.disable(true);
|
|
82
|
+
}
|
|
83
|
+
}, [
|
|
84
|
+
call,
|
|
85
|
+
iosScreenShareStartedFromSystem,
|
|
86
|
+
prevIosScreenShareStartedFromSystem,
|
|
87
|
+
]);
|
|
88
|
+
|
|
89
|
+
const onPress = async () => {
|
|
90
|
+
if (!hasScreenSharingPermissions) {
|
|
91
|
+
const logger = getLogger(['useScreenShareButton']);
|
|
92
|
+
logger(
|
|
93
|
+
'info',
|
|
94
|
+
'User does not have permissions to stream the screen share media, calling onMissingScreenShareStreamPermission handler if present'
|
|
95
|
+
);
|
|
96
|
+
onMissingScreenShareStreamPermission?.();
|
|
97
|
+
}
|
|
98
|
+
if (!hasPublishedScreenShare) {
|
|
99
|
+
if (Platform.OS === 'ios') {
|
|
100
|
+
const reactTag = findNodeHandle(screenCapturePickerViewiOSRef.current);
|
|
101
|
+
await NativeModules.ScreenCapturePickerViewManager.show(reactTag);
|
|
102
|
+
// After this the iOS screen share broadcast started/stopped event will be triggered
|
|
103
|
+
// and the useEffect listener will handle the rest
|
|
104
|
+
} else {
|
|
105
|
+
try {
|
|
106
|
+
await call?.screenShare.enable();
|
|
107
|
+
onScreenShareStartedHandler?.();
|
|
108
|
+
} catch (error) {
|
|
109
|
+
// ignored.. user didnt allow the screen share in the popup
|
|
110
|
+
const logger = getLogger(['useScreenShareButton']);
|
|
111
|
+
logger(
|
|
112
|
+
'info',
|
|
113
|
+
'User opted to not give permissions to start a screen share stream',
|
|
114
|
+
error
|
|
115
|
+
);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
} else if (hasPublishedScreenShare) {
|
|
119
|
+
onScreenShareStoppedHandler?.();
|
|
120
|
+
await call?.screenShare.disable(true);
|
|
121
|
+
}
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
if (!isScreenSharingEnabledInCall || !CanDeviceScreenShare) {
|
|
125
|
+
return { onPress: undefined, hasPublishedScreenShare: false };
|
|
126
|
+
}
|
|
127
|
+
return { onPress, hasPublishedScreenShare };
|
|
128
|
+
};
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '0.8.
|
|
1
|
+
export const version = '0.8.8';
|