@100mslive/react-native-room-kit 1.1.9-beta.1 → 1.2.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/lib/commonjs/HMSRoomSetup.js +1 -1
- package/lib/commonjs/HMSRoomSetup.js.map +1 -1
- package/lib/commonjs/Icons/100ms/index.js +2 -2
- package/lib/commonjs/Icons/100ms/index.js.map +1 -1
- package/lib/commonjs/Icons/Add/index.js +2 -2
- package/lib/commonjs/Icons/Add/index.js.map +1 -1
- package/lib/commonjs/Icons/AddImage/index.js +2 -2
- package/lib/commonjs/Icons/AddImage/index.js.map +1 -1
- package/lib/commonjs/Icons/Alert/index.js +2 -2
- package/lib/commonjs/Icons/Alert/index.js.map +1 -1
- package/lib/commonjs/Icons/AlertTriangle/index.js +2 -2
- package/lib/commonjs/Icons/AlertTriangle/index.js.map +1 -1
- package/lib/commonjs/Icons/AnswerPhone/index.js +2 -2
- package/lib/commonjs/Icons/AnswerPhone/index.js.map +1 -1
- package/lib/commonjs/Icons/BRB/index.js +2 -2
- package/lib/commonjs/Icons/BRB/index.js.map +1 -1
- package/lib/commonjs/Icons/Bluetooth/index.js +2 -2
- package/lib/commonjs/Icons/Bluetooth/index.js.map +1 -1
- package/lib/commonjs/Icons/BlurPeople/index.js +2 -2
- package/lib/commonjs/Icons/BlurPeople/index.js.map +1 -1
- package/lib/commonjs/Icons/CC/index.js +2 -2
- package/lib/commonjs/Icons/CC/index.js.map +1 -1
- package/lib/commonjs/Icons/Camera/index.js +2 -2
- package/lib/commonjs/Icons/Camera/index.js.map +1 -1
- package/lib/commonjs/Icons/Chat/index.js +2 -2
- package/lib/commonjs/Icons/Chat/index.js.map +1 -1
- package/lib/commonjs/Icons/Check/index.js +2 -2
- package/lib/commonjs/Icons/Check/index.js.map +1 -1
- package/lib/commonjs/Icons/CheckBox/index.js +2 -2
- package/lib/commonjs/Icons/CheckBox/index.js.map +1 -1
- package/lib/commonjs/Icons/Chevron/index.js +2 -2
- package/lib/commonjs/Icons/Chevron/index.js.map +1 -1
- package/lib/commonjs/Icons/Clock/index.js +2 -2
- package/lib/commonjs/Icons/Clock/index.js.map +1 -1
- package/lib/commonjs/Icons/Close/index.js +2 -2
- package/lib/commonjs/Icons/Close/index.js.map +1 -1
- package/lib/commonjs/Icons/CrossCircle/index.js +2 -2
- package/lib/commonjs/Icons/CrossCircle/index.js.map +1 -1
- package/lib/commonjs/Icons/End/index.js +2 -2
- package/lib/commonjs/Icons/End/index.js.map +1 -1
- package/lib/commonjs/Icons/Eye/index.js +2 -2
- package/lib/commonjs/Icons/Eye/index.js.map +1 -1
- package/lib/commonjs/Icons/GenericLogo/index.js +2 -2
- package/lib/commonjs/Icons/GenericLogo/index.js.map +1 -1
- package/lib/commonjs/Icons/Hamburger/index.js +2 -2
- package/lib/commonjs/Icons/Hamburger/index.js.map +1 -1
- package/lib/commonjs/Icons/Hand/index.js +2 -2
- package/lib/commonjs/Icons/Hand/index.js.map +1 -1
- package/lib/commonjs/Icons/Headphones/index.js +2 -2
- package/lib/commonjs/Icons/Headphones/index.js.map +1 -1
- package/lib/commonjs/Icons/Leave/index.js +2 -2
- package/lib/commonjs/Icons/Leave/index.js.map +1 -1
- package/lib/commonjs/Icons/Maximize/index.js +2 -2
- package/lib/commonjs/Icons/Maximize/index.js.map +1 -1
- package/lib/commonjs/Icons/Mic/index.js +2 -2
- package/lib/commonjs/Icons/Mic/index.js.map +1 -1
- package/lib/commonjs/Icons/Minimize/index.js +2 -2
- package/lib/commonjs/Icons/Minimize/index.js.map +1 -1
- package/lib/commonjs/Icons/NetworkQuality/index.js +2 -2
- package/lib/commonjs/Icons/NetworkQuality/index.js.map +1 -1
- package/lib/commonjs/Icons/NoEntry/index.js +2 -2
- package/lib/commonjs/Icons/NoEntry/index.js.map +1 -1
- package/lib/commonjs/Icons/Participants/index.js +2 -2
- package/lib/commonjs/Icons/Participants/index.js.map +1 -1
- package/lib/commonjs/Icons/Pause/index.js +2 -2
- package/lib/commonjs/Icons/Pause/index.js.map +1 -1
- package/lib/commonjs/Icons/PauseCircle/index.js +2 -2
- package/lib/commonjs/Icons/PauseCircle/index.js.map +1 -1
- package/lib/commonjs/Icons/Pencil/index.js +2 -2
- package/lib/commonjs/Icons/Pencil/index.js.map +1 -1
- package/lib/commonjs/Icons/Person/index.js +2 -2
- package/lib/commonjs/Icons/Person/index.js.map +1 -1
- package/lib/commonjs/Icons/Pin/index.js +2 -2
- package/lib/commonjs/Icons/Pin/index.js.map +1 -1
- package/lib/commonjs/Icons/Play/index.js +2 -2
- package/lib/commonjs/Icons/Play/index.js.map +1 -1
- package/lib/commonjs/Icons/Poll/index.js +2 -2
- package/lib/commonjs/Icons/Poll/index.js.map +1 -1
- package/lib/commonjs/Icons/PollVote/index.js +2 -2
- package/lib/commonjs/Icons/PollVote/index.js.map +1 -1
- package/lib/commonjs/Icons/Quiz/index.js +2 -2
- package/lib/commonjs/Icons/Quiz/index.js.map +1 -1
- package/lib/commonjs/Icons/Radio/index.js +2 -2
- package/lib/commonjs/Icons/Radio/index.js.map +1 -1
- package/lib/commonjs/Icons/Recording/index.js +2 -2
- package/lib/commonjs/Icons/Recording/index.js.map +1 -1
- package/lib/commonjs/Icons/RotateCamera/index.js +2 -2
- package/lib/commonjs/Icons/RotateCamera/index.js.map +1 -1
- package/lib/commonjs/Icons/ScreenShare/index.js +2 -2
- package/lib/commonjs/Icons/ScreenShare/index.js.map +1 -1
- package/lib/commonjs/Icons/Search/index.js +2 -2
- package/lib/commonjs/Icons/Search/index.js.map +1 -1
- package/lib/commonjs/Icons/SeekArrow/index.js +2 -2
- package/lib/commonjs/Icons/SeekArrow/index.js.map +1 -1
- package/lib/commonjs/Icons/Send/index.js +2 -2
- package/lib/commonjs/Icons/Send/index.js.map +1 -1
- package/lib/commonjs/Icons/Settings/index.js +2 -2
- package/lib/commonjs/Icons/Settings/index.js.map +1 -1
- package/lib/commonjs/Icons/Speaker/index.js +2 -2
- package/lib/commonjs/Icons/Speaker/index.js.map +1 -1
- package/lib/commonjs/Icons/Star/index.js +2 -2
- package/lib/commonjs/Icons/Star/index.js.map +1 -1
- package/lib/commonjs/Icons/Stop/index.js +2 -2
- package/lib/commonjs/Icons/Stop/index.js.map +1 -1
- package/lib/commonjs/Icons/ThreeDots/index.js +2 -2
- package/lib/commonjs/Icons/ThreeDots/index.js.map +1 -1
- package/lib/commonjs/Icons/TrashBin/index.js +2 -2
- package/lib/commonjs/Icons/TrashBin/index.js.map +1 -1
- package/lib/commonjs/Icons/VirtualBackground/index.js +2 -2
- package/lib/commonjs/Icons/VirtualBackground/index.js.map +1 -1
- package/lib/commonjs/Icons/Wave/index.js +2 -2
- package/lib/commonjs/Icons/Wave/index.js.map +1 -1
- package/lib/commonjs/Icons/WelcomeHand/index.js +2 -2
- package/lib/commonjs/Icons/WelcomeHand/index.js.map +1 -1
- package/lib/commonjs/components/BottomSheet.js +2 -2
- package/lib/commonjs/components/BottomSheet.js.map +1 -1
- package/lib/commonjs/components/CaptionsModalContent.js +163 -0
- package/lib/commonjs/components/CaptionsModalContent.js.map +1 -0
- package/lib/commonjs/components/ChangeNameModalContent.js.map +1 -1
- package/lib/commonjs/components/Chat/ChatBanner.js.map +1 -1
- package/lib/commonjs/components/Chat/ChatFilterBottomSheetOpener.js.map +1 -1
- package/lib/commonjs/components/Chat/ChatFilterItem.js.map +1 -1
- package/lib/commonjs/components/Chat/ChatFilterView.js +4 -1
- package/lib/commonjs/components/Chat/ChatFilterView.js.map +1 -1
- package/lib/commonjs/components/Chat/ChatMessage.js.map +1 -1
- package/lib/commonjs/components/Chat/ChatMoreActionsView.js.map +1 -1
- package/lib/commonjs/components/Chat/ChatPaused.js.map +1 -1
- package/lib/commonjs/components/Chat/MessageOptionsView.js.map +1 -1
- package/lib/commonjs/components/Chat/PeerBlockedFromChat.js.map +1 -1
- package/lib/commonjs/components/Chat/PinnedMessages.js.map +1 -1
- package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsHeader.js.map +1 -1
- package/lib/commonjs/components/CheckboxInputRow.js +1 -1
- package/lib/commonjs/components/CheckboxInputRow.js.map +1 -1
- package/lib/commonjs/components/CompanyLogo.js +2 -2
- package/lib/commonjs/components/CompanyLogo.js.map +1 -1
- package/lib/commonjs/components/CreatePoll.js.map +1 -1
- package/lib/commonjs/components/CustomButton.js +1 -1
- package/lib/commonjs/components/CustomButton.js.map +1 -1
- package/lib/commonjs/components/DefaultModal.js +1 -1
- package/lib/commonjs/components/DefaultModal.js.map +1 -1
- package/lib/commonjs/components/DisplayView.js.map +1 -1
- package/lib/commonjs/components/EndRoomModalContent.js.map +1 -1
- package/lib/commonjs/components/FullScreenIndicator.js +1 -1
- package/lib/commonjs/components/FullScreenIndicator.js.map +1 -1
- package/lib/commonjs/components/FullScreenVideoView.js +1 -1
- package/lib/commonjs/components/FullScreenVideoView.js.map +1 -1
- package/lib/commonjs/components/FullScreenWhiteboard.js +1 -1
- package/lib/commonjs/components/FullScreenWhiteboard.js.map +1 -1
- package/lib/commonjs/components/GridView.js.map +1 -1
- package/lib/commonjs/components/HLSChatHeaderView.js.map +1 -1
- package/lib/commonjs/components/HLSCloseMeetingControl.js +1 -1
- package/lib/commonjs/components/HLSCloseMeetingControl.js.map +1 -1
- package/lib/commonjs/components/HLSDescriptionPane.js.map +1 -1
- package/lib/commonjs/components/HLSDescriptionPaneHeader.js.map +1 -1
- package/lib/commonjs/components/HLSDistanceFromLive.js +1 -1
- package/lib/commonjs/components/HLSDistanceFromLive.js.map +1 -1
- package/lib/commonjs/components/HLSFullScreenControl.js +1 -1
- package/lib/commonjs/components/HLSFullScreenControl.js.map +1 -1
- package/lib/commonjs/components/HLSGoLiveControl.js +1 -1
- package/lib/commonjs/components/HLSGoLiveControl.js.map +1 -1
- package/lib/commonjs/components/HLSPlayer.js +1 -1
- package/lib/commonjs/components/HLSPlayer.js.map +1 -1
- package/lib/commonjs/components/HLSPlayerContainer.js +1 -1
- package/lib/commonjs/components/HLSPlayerContainer.js.map +1 -1
- package/lib/commonjs/components/HLSPlayerControls.js +1 -1
- package/lib/commonjs/components/HLSPlayerControls.js.map +1 -1
- package/lib/commonjs/components/HLSPlayerEmoticons.js +1 -1
- package/lib/commonjs/components/HLSPlayerEmoticons.js.map +1 -1
- package/lib/commonjs/components/HLSPlayerStatsView.js +1 -1
- package/lib/commonjs/components/HLSPlayerStatsView.js.map +1 -1
- package/lib/commonjs/components/HLSSeekbackwardControl.js.map +1 -1
- package/lib/commonjs/components/HLSSeekforwardControl.js.map +1 -1
- package/lib/commonjs/components/HLSStreamStartedTime.js.map +1 -1
- package/lib/commonjs/components/HLSViewerScreenContent.js +1 -1
- package/lib/commonjs/components/HLSViewerScreenContent.js.map +1 -1
- package/lib/commonjs/components/HMSDangerButton.js.map +1 -1
- package/lib/commonjs/components/HMSHLSMessage.js.map +1 -1
- package/lib/commonjs/components/HMSHLSNotStarted.js.map +1 -1
- package/lib/commonjs/components/HMSHLSStreamLoading.js.map +1 -1
- package/lib/commonjs/components/HMSHandRaiseNotification.js.map +1 -1
- package/lib/commonjs/components/HMSKeyboardAvoidingView.android.js +1 -1
- package/lib/commonjs/components/HMSKeyboardAvoidingView.android.js.map +1 -1
- package/lib/commonjs/components/HMSLiveIndicator.js.map +1 -1
- package/lib/commonjs/components/HMSLiveViewerCount.js.map +1 -1
- package/lib/commonjs/components/HMSManageAudioOutput.js +1 -1
- package/lib/commonjs/components/HMSManageAudioOutput.js.map +1 -1
- package/lib/commonjs/components/HMSManageNoiseCancellation.js +1 -1
- package/lib/commonjs/components/HMSManageNoiseCancellation.js.map +1 -1
- package/lib/commonjs/components/HMSNotification.js +7 -0
- package/lib/commonjs/components/HMSNotification.js.map +1 -1
- package/lib/commonjs/components/HMSNotifications.js +1 -1
- package/lib/commonjs/components/HMSNotifications.js.map +1 -1
- package/lib/commonjs/components/HMSOverlayChatView.js +1 -1
- package/lib/commonjs/components/HMSOverlayChatView.js.map +1 -1
- package/lib/commonjs/components/HMSOverlayMessageView.js.map +1 -1
- package/lib/commonjs/components/HMSPollsQuizzesNotification.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewHLSLiveIndicator.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewPeersList.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewSubtitle.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewTile.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewTitle.js.map +1 -1
- package/lib/commonjs/components/HMSPrimaryButton.js.map +1 -1
- package/lib/commonjs/components/HMSRoleChangeDeclinedNotification.js.map +1 -1
- package/lib/commonjs/components/HMSRoomOptions.js +6 -0
- package/lib/commonjs/components/HMSRoomOptions.js.map +1 -1
- package/lib/commonjs/components/HMSSecondaryButton.js.map +1 -1
- package/lib/commonjs/components/HMSTerminalErrorNotification.js.map +1 -1
- package/lib/commonjs/components/HMSTextInput.js +1 -1
- package/lib/commonjs/components/HMSTextInput.js.map +1 -1
- package/lib/commonjs/components/HMSVideoView.js +1 -1
- package/lib/commonjs/components/HMSVideoView.js.map +1 -1
- package/lib/commonjs/components/LeaderboardEntry.js.map +1 -1
- package/lib/commonjs/components/LeaveRoomBottomSheet.js.map +1 -1
- package/lib/commonjs/components/MeetingScreenContent.js +16 -0
- package/lib/commonjs/components/MeetingScreenContent.js.map +1 -1
- package/lib/commonjs/components/MenuModal/Menu.js +1 -1
- package/lib/commonjs/components/MenuModal/Menu.js.map +1 -1
- package/lib/commonjs/components/MenuModal/MenuDivider.js +1 -1
- package/lib/commonjs/components/MenuModal/MenuDivider.js.map +1 -1
- package/lib/commonjs/components/MenuModal/MenuItem.js +2 -2
- package/lib/commonjs/components/MenuModal/MenuItem.js.map +1 -1
- package/lib/commonjs/components/Modals.js +1 -1
- package/lib/commonjs/components/Modals.js.map +1 -1
- package/lib/commonjs/components/OverlayContainer.js +1 -1
- package/lib/commonjs/components/OverlayContainer.js.map +1 -1
- package/lib/commonjs/components/Participants/MultiRoleParticipantsList.js.map +1 -1
- package/lib/commonjs/components/Participants/ParticipantsAccordian.js.map +1 -1
- package/lib/commonjs/components/Participants/ParticipantsGroupFooter.js.map +1 -1
- package/lib/commonjs/components/Participants/ParticipantsGroupHeader.js.map +1 -1
- package/lib/commonjs/components/Participants/ParticipantsItem.js.map +1 -1
- package/lib/commonjs/components/Participants/ParticipantsItemOption.js.map +1 -1
- package/lib/commonjs/components/Participants/ParticipantsItemOptions.js.map +1 -1
- package/lib/commonjs/components/Participants/ParticipantsList.js +4 -1
- package/lib/commonjs/components/Participants/ParticipantsList.js.map +1 -1
- package/lib/commonjs/components/ParticipantsCount.js.map +1 -1
- package/lib/commonjs/components/PeerDisplayView.js +2 -2
- package/lib/commonjs/components/PeerDisplayView.js.map +1 -1
- package/lib/commonjs/components/PeerMinimizedView.js.map +1 -1
- package/lib/commonjs/components/PeerRTCStatsContainer.js +1 -1
- package/lib/commonjs/components/PeerRTCStatsContainer.js.map +1 -1
- package/lib/commonjs/components/PeerRTCStatsView.js +1 -1
- package/lib/commonjs/components/PeerRTCStatsView.js.map +1 -1
- package/lib/commonjs/components/PeerSettingsModalContent.js +1 -1
- package/lib/commonjs/components/PeerSettingsModalContent.js.map +1 -1
- package/lib/commonjs/components/PeerVideoTile/AvatarView.js.map +1 -1
- package/lib/commonjs/components/PeerVideoTile/PeerAudioIndicator.js +1 -1
- package/lib/commonjs/components/PeerVideoTile/PeerAudioIndicator.js.map +1 -1
- package/lib/commonjs/components/PeerVideoTile/PeerNameAndNetwork.js.map +1 -1
- package/lib/commonjs/components/PeerVideoTile/PeerVideoTileView.js +2 -2
- package/lib/commonjs/components/PeerVideoTile/PeerVideoTileView.js.map +1 -1
- package/lib/commonjs/components/PeerVideoTile/VideoView.js.map +1 -1
- package/lib/commonjs/components/PollAndQuizQuestionResponseCard.js.map +1 -1
- package/lib/commonjs/components/PollAndQuizVoting.js.map +1 -1
- package/lib/commonjs/components/PollAndQuizzStateLabel.js.map +1 -1
- package/lib/commonjs/components/PollQuestion.js.map +1 -1
- package/lib/commonjs/components/PollQuestionDeleteConfirmation.js.map +1 -1
- package/lib/commonjs/components/PollQuestions.js.map +1 -1
- package/lib/commonjs/components/PollResponseProgressView.js.map +1 -1
- package/lib/commonjs/components/PollsAndQuizzesCard.js.map +1 -1
- package/lib/commonjs/components/PollsConfigAndList.js.map +1 -1
- package/lib/commonjs/components/PressableIcon.js +1 -1
- package/lib/commonjs/components/PressableIcon.js.map +1 -1
- package/lib/commonjs/components/Preview.js +1 -1
- package/lib/commonjs/components/Preview.js.map +1 -1
- package/lib/commonjs/components/PreviewForRoleChangeModal.js +1 -1
- package/lib/commonjs/components/PreviewForRoleChangeModal.js.map +1 -1
- package/lib/commonjs/components/PreviousPollsAndQuizzesList.js.map +1 -1
- package/lib/commonjs/components/QuizEndOptionsView.js.map +1 -1
- package/lib/commonjs/components/QuizLeaderboardEntriesScreen.js.map +1 -1
- package/lib/commonjs/components/QuizLeaderboardScreen.js.map +1 -1
- package/lib/commonjs/components/QuizLeaderboardSummary.js.map +1 -1
- package/lib/commonjs/components/RadioInput.js +1 -1
- package/lib/commonjs/components/RadioInput.js.map +1 -1
- package/lib/commonjs/components/RadioInputRow.js +1 -1
- package/lib/commonjs/components/RadioInputRow.js.map +1 -1
- package/lib/commonjs/components/ReconnectionView.js.map +1 -1
- package/lib/commonjs/components/RoomSettingsModalContent.js +42 -0
- package/lib/commonjs/components/RoomSettingsModalContent.js.map +1 -1
- package/lib/commonjs/components/RoomSettingsModalDebugModeContent.js +1 -1
- package/lib/commonjs/components/RoomSettingsModalDebugModeContent.js.map +1 -1
- package/lib/commonjs/components/StatusBar.js +1 -1
- package/lib/commonjs/components/StatusBar.js.map +1 -1
- package/lib/commonjs/components/StopRecordingModalContent.js.map +1 -1
- package/lib/commonjs/components/SwitchRow.js +1 -1
- package/lib/commonjs/components/SwitchRow.js.map +1 -1
- package/lib/commonjs/components/Tile.js +1 -1
- package/lib/commonjs/components/Tile.js.map +1 -1
- package/lib/commonjs/components/TilesContainer.js +1 -1
- package/lib/commonjs/components/TilesContainer.js.map +1 -1
- package/lib/commonjs/components/VirtualBackgroundModalContent.js.map +1 -1
- package/lib/commonjs/components/VoterParticipationSummary.js.map +1 -1
- package/lib/commonjs/components/WebrtcTranscriptOverlayView.js +121 -0
- package/lib/commonjs/components/WebrtcTranscriptOverlayView.js.map +1 -0
- package/lib/commonjs/components/WebrtcView.js +4 -1
- package/lib/commonjs/components/WebrtcView.js.map +1 -1
- package/lib/commonjs/components/WelcomeInMeeting.js.map +1 -1
- package/lib/commonjs/components/Whiteboard.js +1 -1
- package/lib/commonjs/components/Whiteboard.js.map +1 -1
- package/lib/commonjs/hooks-util.js +42 -2
- package/lib/commonjs/hooks-util.js.map +1 -1
- package/lib/commonjs/redux/actionTypes.js +3 -1
- package/lib/commonjs/redux/actionTypes.js.map +1 -1
- package/lib/commonjs/redux/actions/index.js +9 -2
- package/lib/commonjs/redux/actions/index.js.map +1 -1
- package/lib/commonjs/redux/index.js +1 -1
- package/lib/commonjs/redux/index.js.map +1 -1
- package/lib/commonjs/redux/reducers/appState.js +9 -1
- package/lib/commonjs/redux/reducers/appState.js.map +1 -1
- package/lib/commonjs/redux/reducers/index.js +1 -1
- package/lib/commonjs/redux/reducers/index.js.map +1 -1
- package/lib/commonjs/utils/functions.js +1 -1
- package/lib/commonjs/utils/functions.js.map +1 -1
- package/lib/commonjs/utils/hooks.js.map +1 -1
- package/lib/commonjs/utils/theme.js.map +1 -1
- package/lib/commonjs/utils/types.js +1 -0
- package/lib/commonjs/utils/types.js.map +1 -1
- package/lib/module/HMSRoomSetup.js.map +1 -1
- package/lib/module/Icons/100ms/index.js +1 -1
- package/lib/module/Icons/Add/index.js +1 -1
- package/lib/module/Icons/AddImage/index.js +1 -1
- package/lib/module/Icons/Alert/index.js +1 -1
- package/lib/module/Icons/AlertTriangle/index.js +1 -1
- package/lib/module/Icons/AnswerPhone/index.js +1 -1
- package/lib/module/Icons/BRB/index.js +1 -1
- package/lib/module/Icons/Bluetooth/index.js +1 -1
- package/lib/module/Icons/BlurPeople/index.js +1 -1
- package/lib/module/Icons/CC/index.js +1 -1
- package/lib/module/Icons/Camera/index.js +1 -1
- package/lib/module/Icons/Chat/index.js +1 -1
- package/lib/module/Icons/Check/index.js +1 -1
- package/lib/module/Icons/CheckBox/index.js +1 -1
- package/lib/module/Icons/Chevron/index.js +1 -1
- package/lib/module/Icons/Clock/index.js +1 -1
- package/lib/module/Icons/Close/index.js +1 -1
- package/lib/module/Icons/CrossCircle/index.js +1 -1
- package/lib/module/Icons/End/index.js +1 -1
- package/lib/module/Icons/Eye/index.js +1 -1
- package/lib/module/Icons/GenericLogo/index.js +1 -1
- package/lib/module/Icons/Hamburger/index.js +1 -1
- package/lib/module/Icons/Hand/index.js +1 -1
- package/lib/module/Icons/Headphones/index.js +1 -1
- package/lib/module/Icons/Leave/index.js +1 -1
- package/lib/module/Icons/Maximize/index.js +1 -1
- package/lib/module/Icons/Mic/index.js +1 -1
- package/lib/module/Icons/Minimize/index.js +1 -1
- package/lib/module/Icons/NetworkQuality/index.js +1 -1
- package/lib/module/Icons/NoEntry/index.js +1 -1
- package/lib/module/Icons/Participants/index.js +1 -1
- package/lib/module/Icons/Pause/index.js +1 -1
- package/lib/module/Icons/PauseCircle/index.js +1 -1
- package/lib/module/Icons/Pencil/index.js +1 -1
- package/lib/module/Icons/Person/index.js +1 -1
- package/lib/module/Icons/Pin/index.js +1 -1
- package/lib/module/Icons/Play/index.js +1 -1
- package/lib/module/Icons/Poll/index.js +1 -1
- package/lib/module/Icons/PollVote/index.js +1 -1
- package/lib/module/Icons/Quiz/index.js +1 -1
- package/lib/module/Icons/Radio/index.js +1 -1
- package/lib/module/Icons/Recording/index.js +1 -1
- package/lib/module/Icons/RotateCamera/index.js +1 -1
- package/lib/module/Icons/ScreenShare/index.js +1 -1
- package/lib/module/Icons/Search/index.js +1 -1
- package/lib/module/Icons/SeekArrow/index.js +1 -1
- package/lib/module/Icons/Send/index.js +1 -1
- package/lib/module/Icons/Settings/index.js +1 -1
- package/lib/module/Icons/Speaker/index.js +1 -1
- package/lib/module/Icons/Star/index.js +1 -1
- package/lib/module/Icons/Stop/index.js +1 -1
- package/lib/module/Icons/ThreeDots/index.js +1 -1
- package/lib/module/Icons/TrashBin/index.js +1 -1
- package/lib/module/Icons/VirtualBackground/index.js +1 -1
- package/lib/module/Icons/Wave/index.js +1 -1
- package/lib/module/Icons/WelcomeHand/index.js +1 -1
- package/lib/module/components/BottomSheet.js +1 -1
- package/lib/module/components/BottomSheet.js.map +1 -1
- package/lib/module/components/CaptionsModalContent.js +154 -0
- package/lib/module/components/CaptionsModalContent.js.map +1 -0
- package/lib/module/components/ChangeNameModalContent.js.map +1 -1
- package/lib/module/components/Chat/ChatBanner.js.map +1 -1
- package/lib/module/components/Chat/ChatFilterBottomSheetOpener.js.map +1 -1
- package/lib/module/components/Chat/ChatFilterItem.js.map +1 -1
- package/lib/module/components/Chat/ChatFilterView.js +4 -1
- package/lib/module/components/Chat/ChatFilterView.js.map +1 -1
- package/lib/module/components/Chat/ChatMessage.js.map +1 -1
- package/lib/module/components/Chat/ChatMoreActionsView.js.map +1 -1
- package/lib/module/components/Chat/ChatPaused.js.map +1 -1
- package/lib/module/components/Chat/MessageOptionsView.js.map +1 -1
- package/lib/module/components/Chat/PeerBlockedFromChat.js.map +1 -1
- package/lib/module/components/Chat/PinnedMessages.js.map +1 -1
- package/lib/module/components/ChatAndParticipants/ChatAndParticipantsHeader.js.map +1 -1
- package/lib/module/components/CheckboxInputRow.js.map +1 -1
- package/lib/module/components/CompanyLogo.js +1 -1
- package/lib/module/components/CreatePoll.js.map +1 -1
- package/lib/module/components/DisplayView.js.map +1 -1
- package/lib/module/components/EndRoomModalContent.js.map +1 -1
- package/lib/module/components/GridView.js.map +1 -1
- package/lib/module/components/HLSChatHeaderView.js.map +1 -1
- package/lib/module/components/HLSDescriptionPane.js.map +1 -1
- package/lib/module/components/HLSDescriptionPaneHeader.js.map +1 -1
- package/lib/module/components/HLSDistanceFromLive.js.map +1 -1
- package/lib/module/components/HLSGoLiveControl.js.map +1 -1
- package/lib/module/components/HLSPlayer.js.map +1 -1
- package/lib/module/components/HLSPlayerEmoticons.js.map +1 -1
- package/lib/module/components/HLSSeekbackwardControl.js.map +1 -1
- package/lib/module/components/HLSSeekforwardControl.js.map +1 -1
- package/lib/module/components/HLSStreamStartedTime.js.map +1 -1
- package/lib/module/components/HMSDangerButton.js.map +1 -1
- package/lib/module/components/HMSHLSMessage.js.map +1 -1
- package/lib/module/components/HMSHLSNotStarted.js.map +1 -1
- package/lib/module/components/HMSHLSStreamLoading.js.map +1 -1
- package/lib/module/components/HMSHandRaiseNotification.js.map +1 -1
- package/lib/module/components/HMSLiveIndicator.js.map +1 -1
- package/lib/module/components/HMSLiveViewerCount.js.map +1 -1
- package/lib/module/components/HMSManageAudioOutput.js.map +1 -1
- package/lib/module/components/HMSNotification.js +8 -1
- package/lib/module/components/HMSNotification.js.map +1 -1
- package/lib/module/components/HMSNotifications.js +1 -1
- package/lib/module/components/HMSNotifications.js.map +1 -1
- package/lib/module/components/HMSOverlayMessageView.js.map +1 -1
- package/lib/module/components/HMSPollsQuizzesNotification.js.map +1 -1
- package/lib/module/components/HMSPreviewHLSLiveIndicator.js.map +1 -1
- package/lib/module/components/HMSPreviewPeersList.js.map +1 -1
- package/lib/module/components/HMSPreviewSubtitle.js.map +1 -1
- package/lib/module/components/HMSPreviewTile.js.map +1 -1
- package/lib/module/components/HMSPreviewTitle.js.map +1 -1
- package/lib/module/components/HMSPrimaryButton.js.map +1 -1
- package/lib/module/components/HMSRoleChangeDeclinedNotification.js.map +1 -1
- package/lib/module/components/HMSRoomOptions.js +6 -0
- package/lib/module/components/HMSRoomOptions.js.map +1 -1
- package/lib/module/components/HMSSecondaryButton.js.map +1 -1
- package/lib/module/components/HMSTerminalErrorNotification.js.map +1 -1
- package/lib/module/components/HMSTextInput.js +1 -1
- package/lib/module/components/HMSTextInput.js.map +1 -1
- package/lib/module/components/HMSVideoView.js +1 -1
- package/lib/module/components/LeaderboardEntry.js.map +1 -1
- package/lib/module/components/LeaveRoomBottomSheet.js.map +1 -1
- package/lib/module/components/MeetingScreenContent.js +16 -0
- package/lib/module/components/MeetingScreenContent.js.map +1 -1
- package/lib/module/components/MenuModal/MenuItem.js +1 -1
- package/lib/module/components/Modals.js.map +1 -1
- package/lib/module/components/Participants/MultiRoleParticipantsList.js.map +1 -1
- package/lib/module/components/Participants/ParticipantsAccordian.js.map +1 -1
- package/lib/module/components/Participants/ParticipantsGroupFooter.js.map +1 -1
- package/lib/module/components/Participants/ParticipantsGroupHeader.js.map +1 -1
- package/lib/module/components/Participants/ParticipantsItem.js.map +1 -1
- package/lib/module/components/Participants/ParticipantsItemOption.js.map +1 -1
- package/lib/module/components/Participants/ParticipantsItemOptions.js.map +1 -1
- package/lib/module/components/Participants/ParticipantsList.js +4 -1
- package/lib/module/components/Participants/ParticipantsList.js.map +1 -1
- package/lib/module/components/ParticipantsCount.js.map +1 -1
- package/lib/module/components/PeerDisplayView.js +1 -1
- package/lib/module/components/PeerDisplayView.js.map +1 -1
- package/lib/module/components/PeerMinimizedView.js.map +1 -1
- package/lib/module/components/PeerSettingsModalContent.js.map +1 -1
- package/lib/module/components/PeerVideoTile/AvatarView.js.map +1 -1
- package/lib/module/components/PeerVideoTile/PeerNameAndNetwork.js.map +1 -1
- package/lib/module/components/PeerVideoTile/PeerVideoTileView.js +2 -2
- package/lib/module/components/PeerVideoTile/PeerVideoTileView.js.map +1 -1
- package/lib/module/components/PeerVideoTile/VideoView.js.map +1 -1
- package/lib/module/components/PollAndQuizQuestionResponseCard.js.map +1 -1
- package/lib/module/components/PollAndQuizVoting.js.map +1 -1
- package/lib/module/components/PollAndQuizzStateLabel.js.map +1 -1
- package/lib/module/components/PollQuestion.js.map +1 -1
- package/lib/module/components/PollQuestionDeleteConfirmation.js.map +1 -1
- package/lib/module/components/PollQuestions.js.map +1 -1
- package/lib/module/components/PollResponseProgressView.js.map +1 -1
- package/lib/module/components/PollsAndQuizzesCard.js.map +1 -1
- package/lib/module/components/PollsConfigAndList.js.map +1 -1
- package/lib/module/components/PressableIcon.js +1 -1
- package/lib/module/components/PreviewForRoleChangeModal.js.map +1 -1
- package/lib/module/components/PreviousPollsAndQuizzesList.js.map +1 -1
- package/lib/module/components/QuizEndOptionsView.js.map +1 -1
- package/lib/module/components/QuizLeaderboardEntriesScreen.js.map +1 -1
- package/lib/module/components/QuizLeaderboardScreen.js.map +1 -1
- package/lib/module/components/QuizLeaderboardSummary.js.map +1 -1
- package/lib/module/components/RadioInputRow.js.map +1 -1
- package/lib/module/components/ReconnectionView.js.map +1 -1
- package/lib/module/components/RoomSettingsModalContent.js +45 -3
- package/lib/module/components/RoomSettingsModalContent.js.map +1 -1
- package/lib/module/components/RoomSettingsModalDebugModeContent.js.map +1 -1
- package/lib/module/components/StatusBar.js +1 -1
- package/lib/module/components/StopRecordingModalContent.js.map +1 -1
- package/lib/module/components/VirtualBackgroundModalContent.js.map +1 -1
- package/lib/module/components/VoterParticipationSummary.js.map +1 -1
- package/lib/module/components/WebrtcTranscriptOverlayView.js +113 -0
- package/lib/module/components/WebrtcTranscriptOverlayView.js.map +1 -0
- package/lib/module/components/WebrtcView.js +3 -0
- package/lib/module/components/WebrtcView.js.map +1 -1
- package/lib/module/components/WelcomeInMeeting.js.map +1 -1
- package/lib/module/components/Whiteboard.js +1 -1
- package/lib/module/hooks-util.js +42 -2
- package/lib/module/hooks-util.js.map +1 -1
- package/lib/module/redux/actionTypes.js +3 -1
- package/lib/module/redux/actionTypes.js.map +1 -1
- package/lib/module/redux/actions/index.js +6 -0
- package/lib/module/redux/actions/index.js.map +1 -1
- package/lib/module/redux/reducers/appState.js +9 -1
- package/lib/module/redux/reducers/appState.js.map +1 -1
- package/lib/module/utils/hooks.js.map +1 -1
- package/lib/module/utils/theme.js.map +1 -1
- package/lib/module/utils/types.js +1 -0
- package/lib/module/utils/types.js.map +1 -1
- package/lib/typescript/components/CaptionsModalContent.d.ts +6 -0
- package/lib/typescript/components/CaptionsModalContent.d.ts.map +1 -0
- package/lib/typescript/components/HMSRoomOptions.d.ts.map +1 -1
- package/lib/typescript/components/MeetingScreenContent.d.ts.map +1 -1
- package/lib/typescript/components/Participants/ParticipantsList.d.ts.map +1 -1
- package/lib/typescript/components/RoomSettingsModalContent.d.ts.map +1 -1
- package/lib/typescript/components/WebrtcTranscriptOverlayView.d.ts +7 -0
- package/lib/typescript/components/WebrtcTranscriptOverlayView.d.ts.map +1 -0
- package/lib/typescript/components/WebrtcView.d.ts.map +1 -1
- package/lib/typescript/hooks-util.d.ts.map +1 -1
- package/lib/typescript/redux/actionTypes.d.ts +1 -0
- package/lib/typescript/redux/actionTypes.d.ts.map +1 -1
- package/lib/typescript/redux/actions/index.d.ts +6 -0
- package/lib/typescript/redux/actions/index.d.ts.map +1 -1
- package/lib/typescript/redux/index.d.ts +1 -0
- package/lib/typescript/redux/index.d.ts.map +1 -1
- package/lib/typescript/redux/reducers/appState.d.ts +1 -0
- package/lib/typescript/redux/reducers/appState.d.ts.map +1 -1
- package/lib/typescript/redux/reducers/index.d.ts +1 -0
- package/lib/typescript/redux/reducers/index.d.ts.map +1 -1
- package/lib/typescript/types.d.ts +4 -3
- package/lib/typescript/types.d.ts.map +1 -1
- package/lib/typescript/utils/types.d.ts +1 -0
- package/lib/typescript/utils/types.d.ts.map +1 -1
- package/package.json +20 -5
- package/src/components/CaptionsModalContent.tsx +217 -0
- package/src/components/Chat/ChatFilterView.tsx +1 -1
- package/src/components/HMSNotification.tsx +3 -2
- package/src/components/HMSNotifications.tsx +1 -1
- package/src/components/HMSRoomOptions.tsx +8 -0
- package/src/components/MeetingScreenContent.tsx +21 -0
- package/src/components/Participants/ParticipantsList.tsx +3 -1
- package/src/components/PeerDisplayView.tsx +1 -1
- package/src/components/PeerVideoTile/PeerVideoTileView.tsx +2 -2
- package/src/components/RoomSettingsModalContent.tsx +61 -2
- package/src/components/WebrtcTranscriptOverlayView.tsx +176 -0
- package/src/components/WebrtcView.tsx +3 -0
- package/src/hooks-util.ts +50 -1
- package/src/redux/actionTypes.ts +3 -0
- package/src/redux/actions/index.ts +5 -0
- package/src/redux/reducers/appState.ts +8 -0
- package/src/types.ts +8 -3
- package/src/utils/types.ts +1 -0
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { interpolate } from 'react-native-reanimated';
|
|
3
|
+
import type { SharedValue } from 'react-native-reanimated';
|
|
4
|
+
import { useSelector } from 'react-redux';
|
|
5
|
+
import { View, Text, StyleSheet, Platform } from 'react-native';
|
|
6
|
+
import { useSafeAreaInsets } from 'react-native-safe-area-context';
|
|
7
|
+
|
|
8
|
+
import {
|
|
9
|
+
useHMSInstance,
|
|
10
|
+
useHMSRoomStyleSheet,
|
|
11
|
+
useShowChatAndParticipants,
|
|
12
|
+
} from '../hooks-util';
|
|
13
|
+
import { useIsPortraitOrientation } from '../utils/dimension';
|
|
14
|
+
import { COLORS, hexToRgbA } from '../utils/theme';
|
|
15
|
+
import type { RootState } from '../redux';
|
|
16
|
+
import {
|
|
17
|
+
HMSUpdateListenerActions,
|
|
18
|
+
TranscriptionState,
|
|
19
|
+
} from '@100mslive/react-native-hms';
|
|
20
|
+
import type { HMSTranscript } from '@100mslive/react-native-hms';
|
|
21
|
+
|
|
22
|
+
export type WebrtcTranscriptOverlayViewProps = {
|
|
23
|
+
offset: SharedValue<number>;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
const _WebrtcTranscriptOverlayView: React.FC<
|
|
27
|
+
WebrtcTranscriptOverlayViewProps
|
|
28
|
+
> = ({ offset }) => {
|
|
29
|
+
const hmsInstance = useHMSInstance();
|
|
30
|
+
const isPortrait = useIsPortraitOrientation();
|
|
31
|
+
const { overlayChatVisible } = useShowChatAndParticipants();
|
|
32
|
+
const { bottom } = useSafeAreaInsets();
|
|
33
|
+
let timerId = React.useRef<NodeJS.Timeout | null>(null);
|
|
34
|
+
|
|
35
|
+
const [transcripts, setTranscripts] =
|
|
36
|
+
React.useState<Array<HMSTranscript> | null>(null);
|
|
37
|
+
const ccEnabledForSelf = useSelector(
|
|
38
|
+
(state: RootState) => state.app.showClosedCaptions
|
|
39
|
+
);
|
|
40
|
+
const ccEnabledForEveryone = useSelector((state: RootState) => {
|
|
41
|
+
return (
|
|
42
|
+
state.hmsStates.room?.transcriptions?.some(
|
|
43
|
+
(transcription) => transcription.state === TranscriptionState.STARTED
|
|
44
|
+
) || false
|
|
45
|
+
);
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
React.useEffect(() => {
|
|
49
|
+
if (!ccEnabledForSelf) return;
|
|
50
|
+
|
|
51
|
+
let mounted = true;
|
|
52
|
+
|
|
53
|
+
const onTranscriptsListener = (data: any) => {
|
|
54
|
+
if (timerId.current != null) {
|
|
55
|
+
clearTimeout(timerId.current);
|
|
56
|
+
}
|
|
57
|
+
setTranscripts(data.transcripts);
|
|
58
|
+
|
|
59
|
+
timerId.current = setTimeout(() => {
|
|
60
|
+
if (mounted) {
|
|
61
|
+
setTranscripts(null);
|
|
62
|
+
}
|
|
63
|
+
timerId.current = null;
|
|
64
|
+
}, 4000);
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
hmsInstance.addEventListener(
|
|
68
|
+
HMSUpdateListenerActions.ON_TRANSCRIPTS,
|
|
69
|
+
onTranscriptsListener
|
|
70
|
+
);
|
|
71
|
+
|
|
72
|
+
return () => {
|
|
73
|
+
mounted = false;
|
|
74
|
+
if (timerId.current !== null) {
|
|
75
|
+
clearTimeout(timerId.current);
|
|
76
|
+
timerId.current = null;
|
|
77
|
+
}
|
|
78
|
+
hmsInstance.removeEventListener(HMSUpdateListenerActions.ON_TRANSCRIPTS);
|
|
79
|
+
};
|
|
80
|
+
}, [ccEnabledForSelf, hmsInstance]);
|
|
81
|
+
|
|
82
|
+
const notificationsCount = useSelector((state: RootState) => {
|
|
83
|
+
const isLocalScreenShared = state.hmsStates.isLocalScreenShared;
|
|
84
|
+
return Math.min(
|
|
85
|
+
state.app.notifications.length + (isLocalScreenShared ? 1 : 0),
|
|
86
|
+
3
|
|
87
|
+
);
|
|
88
|
+
});
|
|
89
|
+
|
|
90
|
+
const hmsRoomStyles = useHMSRoomStyleSheet(
|
|
91
|
+
(theme, typography) => ({
|
|
92
|
+
container: {
|
|
93
|
+
backgroundColor:
|
|
94
|
+
theme.palette.background_dim &&
|
|
95
|
+
hexToRgbA(theme.palette.background_dim, 0.64),
|
|
96
|
+
},
|
|
97
|
+
regularWhite: {
|
|
98
|
+
color: COLORS.WHITE,
|
|
99
|
+
fontFamily: `${typography.font_family}-Regular`,
|
|
100
|
+
},
|
|
101
|
+
semiBoldWhite: {
|
|
102
|
+
color: COLORS.WHITE,
|
|
103
|
+
fontFamily: `${typography.font_family}-SemiBold`,
|
|
104
|
+
},
|
|
105
|
+
}),
|
|
106
|
+
[]
|
|
107
|
+
);
|
|
108
|
+
|
|
109
|
+
const extraBottomOffset =
|
|
110
|
+
notificationsCount > 0 ? 44 + notificationsCount * 16 : 32;
|
|
111
|
+
|
|
112
|
+
const dynamicStyles = {
|
|
113
|
+
top: overlayChatVisible ? 0 : undefined,
|
|
114
|
+
bottom: overlayChatVisible
|
|
115
|
+
? undefined
|
|
116
|
+
: interpolate(
|
|
117
|
+
offset.value,
|
|
118
|
+
[0, 1],
|
|
119
|
+
[(!isPortrait ? bottom : 0) + extraBottomOffset, extraBottomOffset]
|
|
120
|
+
),
|
|
121
|
+
};
|
|
122
|
+
|
|
123
|
+
if (ccEnabledForEveryone && ccEnabledForSelf && transcripts !== null) {
|
|
124
|
+
return (
|
|
125
|
+
<View
|
|
126
|
+
pointerEvents="box-none"
|
|
127
|
+
style={[styles.absoluteContainer, dynamicStyles]}
|
|
128
|
+
>
|
|
129
|
+
<View style={[styles.container, hmsRoomStyles.container]}>
|
|
130
|
+
{transcripts.map((transcript, idx) => {
|
|
131
|
+
const isFirst = idx === 0;
|
|
132
|
+
return (
|
|
133
|
+
<Text
|
|
134
|
+
key={transcript.transcript}
|
|
135
|
+
style={[
|
|
136
|
+
styles.transcriptText,
|
|
137
|
+
hmsRoomStyles.regularWhite,
|
|
138
|
+
isFirst ? null : { marginTop: 8 },
|
|
139
|
+
]}
|
|
140
|
+
>
|
|
141
|
+
<Text style={hmsRoomStyles.semiBoldWhite}>
|
|
142
|
+
{transcript.peer.name}:
|
|
143
|
+
</Text>{' '}
|
|
144
|
+
{transcript.transcript}
|
|
145
|
+
</Text>
|
|
146
|
+
);
|
|
147
|
+
})}
|
|
148
|
+
</View>
|
|
149
|
+
</View>
|
|
150
|
+
);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
return null;
|
|
154
|
+
};
|
|
155
|
+
|
|
156
|
+
const styles = StyleSheet.create({
|
|
157
|
+
absoluteContainer: {
|
|
158
|
+
position: 'absolute',
|
|
159
|
+
width: '100%',
|
|
160
|
+
bottom: 0,
|
|
161
|
+
zIndex: 1,
|
|
162
|
+
},
|
|
163
|
+
container: {
|
|
164
|
+
margin: 8,
|
|
165
|
+
padding: 12,
|
|
166
|
+
borderRadius: 8,
|
|
167
|
+
},
|
|
168
|
+
transcriptText: {
|
|
169
|
+
fontSize: 14,
|
|
170
|
+
lineHeight: Platform.OS === 'android' ? 20 : undefined,
|
|
171
|
+
},
|
|
172
|
+
});
|
|
173
|
+
|
|
174
|
+
export const WebrtcTranscriptOverlayView = React.memo(
|
|
175
|
+
_WebrtcTranscriptOverlayView
|
|
176
|
+
);
|
|
@@ -25,6 +25,7 @@ import { OverlayedViews } from './OverlayedViews';
|
|
|
25
25
|
import { useFooterHeight } from './Footer';
|
|
26
26
|
import { useHeaderHeight } from './Header';
|
|
27
27
|
import { View } from 'react-native';
|
|
28
|
+
import { WebrtcTranscriptOverlayView } from './WebrtcTranscriptOverlayView';
|
|
28
29
|
|
|
29
30
|
interface WebrtcViewProps {
|
|
30
31
|
offset: SharedValue<number>;
|
|
@@ -145,6 +146,8 @@ export const WebrtcView = React.forwardRef<GridViewRefAttrs, WebrtcViewProps>(
|
|
|
145
146
|
/>
|
|
146
147
|
)}
|
|
147
148
|
|
|
149
|
+
<WebrtcTranscriptOverlayView offset={offset} />
|
|
150
|
+
|
|
148
151
|
<OverlayedViews
|
|
149
152
|
animatedStyle={overlayedAnimatedStyles}
|
|
150
153
|
offset={offset}
|
package/src/hooks-util.ts
CHANGED
|
@@ -26,6 +26,8 @@ import {
|
|
|
26
26
|
HMSPollUpdateType,
|
|
27
27
|
useHMSHLSPlayerPlaybackState,
|
|
28
28
|
HMSHLSPlayerPlaybackState,
|
|
29
|
+
TranscriptionsMode,
|
|
30
|
+
TranscriptionState,
|
|
29
31
|
} from '@100mslive/react-native-hms';
|
|
30
32
|
import type { Chat as ChatConfig } from '@100mslive/types-prebuilt/elements/chat';
|
|
31
33
|
import { SoftInputModes } from '@100mslive/react-native-hms';
|
|
@@ -207,6 +209,53 @@ const useHMSRoomUpdate = (hmsInstance: HMSSDK) => {
|
|
|
207
209
|
}
|
|
208
210
|
} else if (type === HMSRoomUpdate.HLS_STREAMING_STATE_UPDATED) {
|
|
209
211
|
dispatch(changeStartingHLSStream(false));
|
|
212
|
+
} else if (type === HMSRoomUpdate.TRANSCRIPTIONS_UPDATED) {
|
|
213
|
+
const captionTranscription = room.transcriptions?.find(
|
|
214
|
+
(transcription) => transcription.mode === TranscriptionsMode.CAPTION
|
|
215
|
+
);
|
|
216
|
+
|
|
217
|
+
if (captionTranscription?.state === TranscriptionState.STARTED) {
|
|
218
|
+
batch(() => {
|
|
219
|
+
dispatch(removeNotification('enable-cc'));
|
|
220
|
+
dispatch(
|
|
221
|
+
addNotification({
|
|
222
|
+
id: Math.random().toString(16).slice(2),
|
|
223
|
+
type: NotificationTypes.INFO,
|
|
224
|
+
icon: 'cc',
|
|
225
|
+
title: 'Closed Captioning enabled for everyone',
|
|
226
|
+
})
|
|
227
|
+
);
|
|
228
|
+
});
|
|
229
|
+
} else if (captionTranscription?.state === TranscriptionState.STOPPED) {
|
|
230
|
+
batch(() => {
|
|
231
|
+
dispatch(removeNotification('disable-cc'));
|
|
232
|
+
dispatch(
|
|
233
|
+
addNotification({
|
|
234
|
+
id: Math.random().toString(16).slice(2),
|
|
235
|
+
type: NotificationTypes.INFO,
|
|
236
|
+
icon: 'cc',
|
|
237
|
+
title: 'Closed Captioning disabled for everyone',
|
|
238
|
+
})
|
|
239
|
+
);
|
|
240
|
+
});
|
|
241
|
+
} else if (captionTranscription?.state === TranscriptionState.FAILED) {
|
|
242
|
+
const transcriptionError = captionTranscription.error;
|
|
243
|
+
batch(() => {
|
|
244
|
+
dispatch(removeNotification('enable-cc'));
|
|
245
|
+
dispatch(removeNotification('disable-cc'));
|
|
246
|
+
if (transcriptionError !== undefined) {
|
|
247
|
+
dispatch(
|
|
248
|
+
addNotification({
|
|
249
|
+
id: Math.random().toString(16).slice(2),
|
|
250
|
+
title:
|
|
251
|
+
transcriptionError.message ||
|
|
252
|
+
'Failed to enable/disable Closed Captions',
|
|
253
|
+
type: NotificationTypes.ERROR,
|
|
254
|
+
})
|
|
255
|
+
);
|
|
256
|
+
}
|
|
257
|
+
});
|
|
258
|
+
}
|
|
210
259
|
}
|
|
211
260
|
};
|
|
212
261
|
|
|
@@ -2096,7 +2145,7 @@ export const useFilteredParticipants = (filterText: string) => {
|
|
|
2096
2145
|
const filteredList =
|
|
2097
2146
|
Array.isArray(list) && formattedSearchText.length > 0
|
|
2098
2147
|
? list.filter((peer) =>
|
|
2099
|
-
peer.name
|
|
2148
|
+
peer.name?.toLowerCase().includes(formattedSearchText)
|
|
2100
2149
|
)
|
|
2101
2150
|
: list;
|
|
2102
2151
|
|
package/src/redux/actionTypes.ts
CHANGED
|
@@ -115,6 +115,8 @@ const SET_HLS_DESC_PANE_VISIBLE = 'SET_HLS_DESC_PANE_VISIBLE';
|
|
|
115
115
|
|
|
116
116
|
const SET_HLS_FULL_SCREEN = 'SET_HLS_FULL_SCREEN';
|
|
117
117
|
|
|
118
|
+
const SET_SHOW_CLOSED_CAPTIONS = 'SET_SHOW_CLOSED_CAPTIONS';
|
|
119
|
+
|
|
118
120
|
const SET_ANDROID_HLS_STREAM_PAUSED = 'SET_ANDROID_HLS_STREAM_PAUSED';
|
|
119
121
|
|
|
120
122
|
const SET_SELECTED_VIRTUAL_BG = 'SET_SELECTED_VIRTUAL_BG';
|
|
@@ -174,6 +176,7 @@ export default {
|
|
|
174
176
|
SET_ANDROID_HLS_STREAM_PAUSED,
|
|
175
177
|
SET_SELECTED_VIRTUAL_BG,
|
|
176
178
|
FILTER_OUT_BLOCKED_MSGS,
|
|
179
|
+
SET_SHOW_CLOSED_CAPTIONS,
|
|
177
180
|
};
|
|
178
181
|
|
|
179
182
|
export enum HmsStateActionTypes {
|
|
@@ -513,6 +513,11 @@ export const setSelectedVirtualBackground = (vb: string | null) => ({
|
|
|
513
513
|
payload: { selectedVirtualBackground: vb },
|
|
514
514
|
});
|
|
515
515
|
|
|
516
|
+
export const setShowClosedCaptions = (showClosedCaptions: boolean) => ({
|
|
517
|
+
type: actionTypes.SET_SHOW_CLOSED_CAPTIONS,
|
|
518
|
+
payload: { showClosedCaptions },
|
|
519
|
+
});
|
|
520
|
+
|
|
516
521
|
/**
|
|
517
522
|
* POLLS
|
|
518
523
|
*/
|
|
@@ -67,6 +67,7 @@ type IntialStateType = {
|
|
|
67
67
|
hlsFullScreen: boolean;
|
|
68
68
|
hlsStreamPaused_android: boolean;
|
|
69
69
|
selectedVirtualBackground: string | null;
|
|
70
|
+
showClosedCaptions: boolean;
|
|
70
71
|
};
|
|
71
72
|
|
|
72
73
|
const INITIAL_STATE: IntialStateType = {
|
|
@@ -109,6 +110,7 @@ const INITIAL_STATE: IntialStateType = {
|
|
|
109
110
|
hlsFullScreen: false,
|
|
110
111
|
hlsStreamPaused_android: false,
|
|
111
112
|
selectedVirtualBackground: null,
|
|
113
|
+
showClosedCaptions: false,
|
|
112
114
|
};
|
|
113
115
|
|
|
114
116
|
const appReducer = (
|
|
@@ -397,6 +399,12 @@ const appReducer = (
|
|
|
397
399
|
selectedVirtualBackground: action.payload.selectedVirtualBackground,
|
|
398
400
|
};
|
|
399
401
|
}
|
|
402
|
+
case ActionTypes.SET_SHOW_CLOSED_CAPTIONS: {
|
|
403
|
+
return {
|
|
404
|
+
...state,
|
|
405
|
+
showClosedCaptions: action.payload.showClosedCaptions,
|
|
406
|
+
};
|
|
407
|
+
}
|
|
400
408
|
case HmsStateActionTypes.CLEAR_STATES:
|
|
401
409
|
return INITIAL_STATE;
|
|
402
410
|
default:
|
package/src/types.ts
CHANGED
|
@@ -91,16 +91,21 @@ export type Notification =
|
|
|
91
91
|
| {
|
|
92
92
|
id: string;
|
|
93
93
|
type: NotificationTypes;
|
|
94
|
-
icon?: string;
|
|
94
|
+
icon?: string | React.ReactElement;
|
|
95
95
|
message?: string;
|
|
96
96
|
title: string;
|
|
97
97
|
payload?: any;
|
|
98
98
|
}
|
|
99
|
-
| { id: string; type: NotificationTypes; icon?: string; peer: HMSPeer }
|
|
100
99
|
| {
|
|
101
100
|
id: string;
|
|
102
101
|
type: NotificationTypes;
|
|
103
|
-
icon?: string;
|
|
102
|
+
icon?: string | React.ReactElement;
|
|
103
|
+
peer: HMSPeer;
|
|
104
|
+
}
|
|
105
|
+
| {
|
|
106
|
+
id: string;
|
|
107
|
+
type: NotificationTypes;
|
|
108
|
+
icon?: string | React.ReactElement;
|
|
104
109
|
exception: HMSException;
|
|
105
110
|
};
|
|
106
111
|
|
package/src/utils/types.ts
CHANGED