@stream-io/video-react-native-sdk 0.6.2 → 0.6.3
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 +7 -0
- package/dist/commonjs/components/Call/CallContent/CallContent.js +3 -0
- package/dist/commonjs/components/Call/CallContent/CallContent.js.map +1 -1
- package/dist/commonjs/components/Call/CallControls/{ScreenShareButton.js → ScreenShareToggleButton.js} +44 -43
- package/dist/commonjs/components/Call/CallControls/ScreenShareToggleButton.js.map +1 -0
- package/dist/commonjs/components/Call/CallControls/index.js +4 -4
- package/dist/commonjs/components/Call/CallControls/index.js.map +1 -1
- package/dist/commonjs/components/Call/CallLayout/CallParticipantsSpotlight.js +3 -2
- package/dist/commonjs/components/Call/CallLayout/CallParticipantsSpotlight.js.map +1 -1
- package/dist/commonjs/components/Livestream/HostLivestream/HostLivestream.js +59 -6
- package/dist/commonjs/components/Livestream/HostLivestream/HostLivestream.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamControls/HostLivestreamControls.js +7 -3
- package/dist/commonjs/components/Livestream/LivestreamControls/HostLivestreamControls.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamControls/HostStartStreamButton.js +13 -9
- package/dist/commonjs/components/Livestream/LivestreamControls/HostStartStreamButton.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamControls/LivestreamScreenShareToggleButton.js +126 -0
- package/dist/commonjs/components/Livestream/LivestreamControls/LivestreamScreenShareToggleButton.js.map +1 -0
- package/dist/commonjs/components/Livestream/LivestreamControls/ViewerLivestreamControls.js +4 -2
- package/dist/commonjs/components/Livestream/LivestreamControls/ViewerLivestreamControls.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamControls/index.js +44 -11
- package/dist/commonjs/components/Livestream/LivestreamControls/index.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamLayout/LivestreamLayout.js +45 -6
- package/dist/commonjs/components/Livestream/LivestreamLayout/LivestreamLayout.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamTopView/HostLivestreamTopView.js +4 -2
- package/dist/commonjs/components/Livestream/LivestreamTopView/HostLivestreamTopView.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamTopView/ViewerLivestreamTopView.js +4 -2
- package/dist/commonjs/components/Livestream/LivestreamTopView/ViewerLivestreamTopView.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamTopView/index.js +11 -0
- package/dist/commonjs/components/Livestream/LivestreamTopView/index.js.map +1 -1
- package/dist/commonjs/components/Livestream/ViewerLivestream/ViewerLivestream.js +24 -23
- package/dist/commonjs/components/Livestream/ViewerLivestream/ViewerLivestream.js.map +1 -1
- package/dist/commonjs/components/Participant/FloatingParticipantView/index.js +4 -3
- package/dist/commonjs/components/Participant/FloatingParticipantView/index.js.map +1 -1
- package/dist/commonjs/components/Participant/ParticipantView/VideoRenderer.js +33 -9
- package/dist/commonjs/components/Participant/ParticipantView/VideoRenderer.js.map +1 -1
- package/dist/commonjs/components/utility/ScreenShareOverlay.js +92 -0
- package/dist/commonjs/components/utility/ScreenShareOverlay.js.map +1 -0
- package/dist/commonjs/components/utility/index.js +11 -0
- package/dist/commonjs/components/utility/index.js.map +1 -1
- package/dist/commonjs/hooks/push/useIosVoipPushEventsSetupEffect.js +5 -3
- package/dist/commonjs/hooks/push/useIosVoipPushEventsSetupEffect.js.map +1 -1
- package/dist/commonjs/icons/StopScreenShare.js +26 -0
- package/dist/commonjs/icons/StopScreenShare.js.map +1 -0
- package/dist/commonjs/icons/index.js +11 -0
- package/dist/commonjs/icons/index.js.map +1 -1
- package/dist/commonjs/theme/theme.js +13 -4
- package/dist/commonjs/theme/theme.js.map +1 -1
- package/dist/commonjs/translations/en.json +2 -0
- package/dist/commonjs/utils/StreamVideoRN/index.js +2 -1
- package/dist/commonjs/utils/StreamVideoRN/index.js.map +1 -1
- package/dist/commonjs/utils/internal/pushLogoutCallback.js.map +1 -1
- package/dist/commonjs/utils/push/android.js +6 -4
- package/dist/commonjs/utils/push/android.js.map +1 -1
- package/dist/commonjs/utils/push/ios.js +6 -4
- package/dist/commonjs/utils/push/ios.js.map +1 -1
- package/dist/commonjs/version.js +1 -1
- package/dist/module/components/Call/CallContent/CallContent.js +3 -0
- package/dist/module/components/Call/CallContent/CallContent.js.map +1 -1
- package/dist/module/components/Call/CallControls/{ScreenShareButton.js → ScreenShareToggleButton.js} +41 -40
- package/dist/module/components/Call/CallControls/ScreenShareToggleButton.js.map +1 -0
- package/dist/module/components/Call/CallControls/index.js +1 -1
- package/dist/module/components/Call/CallControls/index.js.map +1 -1
- package/dist/module/components/Call/CallLayout/CallParticipantsSpotlight.js +3 -2
- package/dist/module/components/Call/CallLayout/CallParticipantsSpotlight.js.map +1 -1
- package/dist/module/components/Livestream/HostLivestream/HostLivestream.js +60 -7
- package/dist/module/components/Livestream/HostLivestream/HostLivestream.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamControls/HostLivestreamControls.js +7 -3
- package/dist/module/components/Livestream/LivestreamControls/HostLivestreamControls.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamControls/HostStartStreamButton.js +13 -9
- package/dist/module/components/Livestream/LivestreamControls/HostStartStreamButton.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamControls/LivestreamScreenShareToggleButton.js +117 -0
- package/dist/module/components/Livestream/LivestreamControls/LivestreamScreenShareToggleButton.js.map +1 -0
- package/dist/module/components/Livestream/LivestreamControls/ViewerLivestreamControls.js +4 -2
- package/dist/module/components/Livestream/LivestreamControls/ViewerLivestreamControls.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamControls/index.js +4 -1
- package/dist/module/components/Livestream/LivestreamControls/index.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamLayout/LivestreamLayout.js +43 -5
- package/dist/module/components/Livestream/LivestreamLayout/LivestreamLayout.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamTopView/HostLivestreamTopView.js +4 -2
- package/dist/module/components/Livestream/LivestreamTopView/HostLivestreamTopView.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamTopView/ViewerLivestreamTopView.js +4 -2
- package/dist/module/components/Livestream/LivestreamTopView/ViewerLivestreamTopView.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamTopView/index.js +1 -0
- package/dist/module/components/Livestream/LivestreamTopView/index.js.map +1 -1
- package/dist/module/components/Livestream/ViewerLivestream/ViewerLivestream.js +24 -24
- package/dist/module/components/Livestream/ViewerLivestream/ViewerLivestream.js.map +1 -1
- package/dist/module/components/Participant/FloatingParticipantView/index.js +4 -3
- package/dist/module/components/Participant/FloatingParticipantView/index.js.map +1 -1
- package/dist/module/components/Participant/ParticipantView/VideoRenderer.js +33 -9
- package/dist/module/components/Participant/ParticipantView/VideoRenderer.js.map +1 -1
- package/dist/module/components/utility/ScreenShareOverlay.js +85 -0
- package/dist/module/components/utility/ScreenShareOverlay.js.map +1 -0
- package/dist/module/components/utility/index.js +1 -0
- package/dist/module/components/utility/index.js.map +1 -1
- package/dist/module/hooks/push/useIosVoipPushEventsSetupEffect.js +5 -3
- package/dist/module/hooks/push/useIosVoipPushEventsSetupEffect.js.map +1 -1
- package/dist/module/icons/StopScreenShare.js +16 -0
- package/dist/module/icons/StopScreenShare.js.map +1 -0
- package/dist/module/icons/index.js +1 -0
- package/dist/module/icons/index.js.map +1 -1
- package/dist/module/theme/theme.js +13 -4
- package/dist/module/theme/theme.js.map +1 -1
- package/dist/module/translations/en.json +2 -0
- package/dist/module/utils/StreamVideoRN/index.js +2 -1
- package/dist/module/utils/StreamVideoRN/index.js.map +1 -1
- package/dist/module/utils/internal/pushLogoutCallback.js.map +1 -1
- package/dist/module/utils/push/android.js +6 -4
- package/dist/module/utils/push/android.js.map +1 -1
- package/dist/module/utils/push/ios.js +6 -4
- package/dist/module/utils/push/ios.js.map +1 -1
- package/dist/module/version.js +1 -1
- package/dist/typescript/components/Call/CallContent/CallContent.d.ts +6 -1
- package/dist/typescript/components/Call/CallContent/CallContent.d.ts.map +1 -1
- package/dist/typescript/components/Call/CallControls/{ScreenShareButton.d.ts → ScreenShareToggleButton.d.ts} +3 -3
- package/dist/typescript/components/Call/CallControls/ScreenShareToggleButton.d.ts.map +1 -0
- package/dist/typescript/components/Call/CallControls/index.d.ts +1 -1
- package/dist/typescript/components/Call/CallControls/index.d.ts.map +1 -1
- package/dist/typescript/components/Call/CallLayout/CallParticipantsSpotlight.d.ts +2 -2
- package/dist/typescript/components/Call/CallLayout/CallParticipantsSpotlight.d.ts.map +1 -1
- package/dist/typescript/components/Livestream/HostLivestream/HostLivestream.d.ts +16 -1
- package/dist/typescript/components/Livestream/HostLivestream/HostLivestream.d.ts.map +1 -1
- package/dist/typescript/components/Livestream/LivestreamControls/HostLivestreamControls.d.ts +7 -1
- package/dist/typescript/components/Livestream/LivestreamControls/HostLivestreamControls.d.ts.map +1 -1
- package/dist/typescript/components/Livestream/LivestreamControls/HostStartStreamButton.d.ts +7 -3
- package/dist/typescript/components/Livestream/LivestreamControls/HostStartStreamButton.d.ts.map +1 -1
- package/dist/typescript/components/Livestream/LivestreamControls/LivestreamScreenShareToggleButton.d.ts +7 -0
- package/dist/typescript/components/Livestream/LivestreamControls/LivestreamScreenShareToggleButton.d.ts.map +1 -0
- package/dist/typescript/components/Livestream/LivestreamControls/ViewerLivestreamControls.d.ts +3 -1
- package/dist/typescript/components/Livestream/LivestreamControls/ViewerLivestreamControls.d.ts.map +1 -1
- package/dist/typescript/components/Livestream/LivestreamControls/index.d.ts +4 -1
- package/dist/typescript/components/Livestream/LivestreamControls/index.d.ts.map +1 -1
- package/dist/typescript/components/Livestream/LivestreamLayout/LivestreamLayout.d.ts +6 -1
- package/dist/typescript/components/Livestream/LivestreamLayout/LivestreamLayout.d.ts.map +1 -1
- package/dist/typescript/components/Livestream/LivestreamTopView/HostLivestreamTopView.d.ts +3 -1
- package/dist/typescript/components/Livestream/LivestreamTopView/HostLivestreamTopView.d.ts.map +1 -1
- package/dist/typescript/components/Livestream/LivestreamTopView/ViewerLivestreamTopView.d.ts +3 -1
- package/dist/typescript/components/Livestream/LivestreamTopView/ViewerLivestreamTopView.d.ts.map +1 -1
- package/dist/typescript/components/Livestream/LivestreamTopView/index.d.ts +1 -0
- package/dist/typescript/components/Livestream/LivestreamTopView/index.d.ts.map +1 -1
- package/dist/typescript/components/Livestream/ViewerLivestream/ViewerLivestream.d.ts.map +1 -1
- package/dist/typescript/components/Participant/FloatingParticipantView/index.d.ts +8 -3
- package/dist/typescript/components/Participant/FloatingParticipantView/index.d.ts.map +1 -1
- package/dist/typescript/components/Participant/ParticipantView/VideoRenderer.d.ts.map +1 -1
- package/dist/typescript/components/utility/ScreenShareOverlay.d.ts +10 -0
- package/dist/typescript/components/utility/ScreenShareOverlay.d.ts.map +1 -0
- package/dist/typescript/components/utility/index.d.ts +1 -0
- package/dist/typescript/components/utility/index.d.ts.map +1 -1
- package/dist/typescript/hooks/push/useIosVoipPushEventsSetupEffect.d.ts.map +1 -1
- package/dist/typescript/icons/StopScreenShare.d.ts +8 -0
- package/dist/typescript/icons/StopScreenShare.d.ts.map +1 -0
- package/dist/typescript/icons/index.d.ts +1 -0
- package/dist/typescript/icons/index.d.ts.map +1 -1
- package/dist/typescript/theme/theme.d.ts +12 -3
- package/dist/typescript/theme/theme.d.ts.map +1 -1
- package/dist/typescript/translations/index.d.ts +2 -0
- package/dist/typescript/translations/index.d.ts.map +1 -1
- package/dist/typescript/utils/StreamVideoRN/index.d.ts +1 -1
- package/dist/typescript/utils/StreamVideoRN/index.d.ts.map +1 -1
- package/dist/typescript/utils/internal/pushLogoutCallback.d.ts +2 -2
- package/dist/typescript/utils/internal/pushLogoutCallback.d.ts.map +1 -1
- package/dist/typescript/utils/push/android.d.ts.map +1 -1
- package/dist/typescript/utils/push/ios.d.ts.map +1 -1
- package/dist/typescript/version.d.ts +1 -1
- package/package.json +1 -1
- package/src/components/Call/CallContent/CallContent.tsx +10 -0
- package/src/components/Call/CallControls/{ScreenShareButton.tsx → ScreenShareToggleButton.tsx} +59 -41
- package/src/components/Call/CallControls/index.tsx +1 -1
- package/src/components/Call/CallLayout/CallParticipantsSpotlight.tsx +32 -24
- package/src/components/Livestream/HostLivestream/HostLivestream.tsx +92 -6
- package/src/components/Livestream/LivestreamControls/HostLivestreamControls.tsx +10 -1
- package/src/components/Livestream/LivestreamControls/HostStartStreamButton.tsx +18 -10
- package/src/components/Livestream/LivestreamControls/LivestreamScreenShareToggleButton.tsx +161 -0
- package/src/components/Livestream/LivestreamControls/ViewerLivestreamControls.tsx +4 -1
- package/src/components/Livestream/LivestreamControls/index.ts +4 -1
- package/src/components/Livestream/LivestreamLayout/LivestreamLayout.tsx +66 -6
- package/src/components/Livestream/LivestreamTopView/HostLivestreamTopView.tsx +4 -1
- package/src/components/Livestream/LivestreamTopView/ViewerLivestreamTopView.tsx +4 -1
- package/src/components/Livestream/LivestreamTopView/index.ts +1 -0
- package/src/components/Livestream/ViewerLivestream/ViewerLivestream.tsx +39 -38
- package/src/components/Participant/FloatingParticipantView/index.tsx +15 -5
- package/src/components/Participant/ParticipantView/VideoRenderer.tsx +54 -8
- package/src/components/utility/ScreenShareOverlay.tsx +106 -0
- package/src/components/utility/index.ts +1 -0
- package/src/hooks/push/useIosVoipPushEventsSetupEffect.ts +5 -3
- package/src/icons/StopScreenShare.tsx +22 -0
- package/src/icons/index.tsx +1 -0
- package/src/theme/theme.ts +24 -6
- package/src/translations/en.json +2 -0
- package/src/utils/StreamVideoRN/index.ts +4 -1
- package/src/utils/internal/pushLogoutCallback.ts +2 -2
- package/src/utils/push/android.ts +6 -4
- package/src/utils/push/ios.ts +6 -4
- package/src/version.ts +1 -1
- package/dist/commonjs/components/Call/CallControls/ScreenShareButton.js.map +0 -1
- package/dist/module/components/Call/CallControls/ScreenShareButton.js.map +0 -1
- package/dist/typescript/components/Call/CallControls/ScreenShareButton.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Livestream/LivestreamTopView/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Livestream/LivestreamTopView/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ViewerLivestream.d.ts","sourceRoot":"","sources":["../../../../../src/components/Livestream/ViewerLivestream/ViewerLivestream.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAKzC,OAAO,EAEL,4BAA4B,EAC7B,MAAM,8CAA8C,CAAC;AACtD,OAAO,EAEL,6BAA6B,EAC9B,MAAM,gDAAgD,CAAC;AACxD,OAAO,EAAE,4BAA4B,EAAE,MAAM,+CAA+C,CAAC;AAC7F,OAAO,EAEL,qBAAqB,EACtB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAEL,4BAA4B,EAC7B,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"ViewerLivestream.d.ts","sourceRoot":"","sources":["../../../../../src/components/Livestream/ViewerLivestream/ViewerLivestream.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAKzC,OAAO,EAEL,4BAA4B,EAC7B,MAAM,8CAA8C,CAAC;AACtD,OAAO,EAEL,6BAA6B,EAC9B,MAAM,gDAAgD,CAAC;AACxD,OAAO,EAAE,4BAA4B,EAAE,MAAM,+CAA+C,CAAC;AAC7F,OAAO,EAEL,qBAAqB,EACtB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAEL,4BAA4B,EAC7B,MAAM,mBAAmB,CAAC;AAM3B;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG,4BAA4B,GAC9D,6BAA6B,GAC7B,4BAA4B,GAAG;IAC7B;;OAEG;IACH,uBAAuB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,4BAA4B,CAAC,GAAG,IAAI,CAAC;IACnF;;OAEG;IACH,gBAAgB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,qBAAqB,CAAC,GAAG,IAAI,CAAC;IACrE;;OAEG;IACH,wBAAwB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,6BAA6B,CAAC,GAAG,IAAI,CAAC;IACrF;;OAEG;IACH,uBAAuB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,4BAA4B,CAAC,GAAG,IAAI,CAAC;CACpF,CAAC;AAEJ;;GAEG;AACH,eAAO,MAAM,gBAAgB,kMAU1B,qBAAqB,sBA0DvB,CAAC"}
|
|
@@ -17,9 +17,14 @@ export type FloatingParticipantViewProps = ParticipantViewComponentProps & Pick<
|
|
|
17
17
|
*/
|
|
18
18
|
participant?: StreamVideoParticipant;
|
|
19
19
|
/**
|
|
20
|
-
* Custom style to be merged with the
|
|
20
|
+
* Custom style to be merged with the container of the participant view.
|
|
21
21
|
*/
|
|
22
|
-
|
|
22
|
+
participantViewStyle?: StyleProp<ViewStyle>;
|
|
23
|
+
/**
|
|
24
|
+
* Custom style to be merged with the absolute container of the floating participant view.
|
|
25
|
+
* This is the container that holds the participant view and the whole of its draggable area.
|
|
26
|
+
*/
|
|
27
|
+
draggableContainerStyle?: StyleProp<ViewStyle>;
|
|
23
28
|
/**
|
|
24
29
|
* Handler used to handle actions on click of the participant view in FloatingParticipantView.
|
|
25
30
|
* Eg: Can be used to handle participant switch on click.
|
|
@@ -29,5 +34,5 @@ export type FloatingParticipantViewProps = ParticipantViewComponentProps & Pick<
|
|
|
29
34
|
/**
|
|
30
35
|
* A component to render the floating participant's video.
|
|
31
36
|
*/
|
|
32
|
-
export declare const FloatingParticipantView: ({ alignment, onPressHandler, participant,
|
|
37
|
+
export declare const FloatingParticipantView: ({ alignment, onPressHandler, participant, participantViewStyle, draggableContainerStyle, ParticipantView, ParticipantNetworkQualityIndicator, ParticipantReaction, VideoRenderer, supportedReactions, videoZOrder, objectFit, }: FloatingParticipantViewProps) => React.JSX.Element | null;
|
|
33
38
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Participant/FloatingParticipantView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAEL,SAAS,EAGT,SAAS,EACV,MAAM,cAAc,CAAC;AAKtB,OAAO,EACL,gBAAgB,EAChB,kCAAkC,EACnC,MAAM,YAAY,CAAC;AAEpB,OAAO,EAEL,6BAA6B,EAC7B,oBAAoB,EACrB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AAEjE,MAAM,MAAM,gCAAgC,GACxC,UAAU,GACV,WAAW,GACX,aAAa,GACb,cAAc,CAAC;AAEnB;;GAEG;AACH,MAAM,MAAM,4BAA4B,GAAG,6BAA6B,GACtE,IAAI,CAAC,kCAAkC,EAAE,iBAAiB,CAAC,GAC3D,IAAI,CAAC,gBAAgB,EAAE,oBAAoB,CAAC,GAC5C,IAAI,CAAC,oBAAoB,EAAE,WAAW,GAAG,aAAa,CAAC,GAAG;IACxD;;OAEG;IACH,SAAS,CAAC,EAAE,gCAAgC,CAAC;IAC7C;;OAEG;IACH,WAAW,CAAC,EAAE,sBAAsB,CAAC;IACrC;;OAEG;IACH,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Participant/FloatingParticipantView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAEL,SAAS,EAGT,SAAS,EACV,MAAM,cAAc,CAAC;AAKtB,OAAO,EACL,gBAAgB,EAChB,kCAAkC,EACnC,MAAM,YAAY,CAAC;AAEpB,OAAO,EAEL,6BAA6B,EAC7B,oBAAoB,EACrB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AAEjE,MAAM,MAAM,gCAAgC,GACxC,UAAU,GACV,WAAW,GACX,aAAa,GACb,cAAc,CAAC;AAEnB;;GAEG;AACH,MAAM,MAAM,4BAA4B,GAAG,6BAA6B,GACtE,IAAI,CAAC,kCAAkC,EAAE,iBAAiB,CAAC,GAC3D,IAAI,CAAC,gBAAgB,EAAE,oBAAoB,CAAC,GAC5C,IAAI,CAAC,oBAAoB,EAAE,WAAW,GAAG,aAAa,CAAC,GAAG;IACxD;;OAEG;IACH,SAAS,CAAC,EAAE,gCAAgC,CAAC;IAC7C;;OAEG;IACH,WAAW,CAAC,EAAE,sBAAsB,CAAC;IACrC;;OAEG;IACH,oBAAoB,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC5C;;;OAGG;IACH,uBAAuB,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC/C;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;CAC7B,CAAC;AA0BJ;;GAEG;AACH,eAAO,MAAM,uBAAuB,oOAajC,4BAA4B,6BAwF9B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VideoRenderer.d.ts","sourceRoot":"","sources":["../../../../../src/components/Participant/ParticipantView/VideoRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAGjD,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAoBzD;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,IAAI,CACnC,oBAAoB,EAClB,0BAA0B,GAC1B,WAAW,GACX,aAAa,GACb,WAAW,GACX,WAAW,GACX,aAAa,CAChB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,aAAa,6FAOvB,kBAAkB,
|
|
1
|
+
{"version":3,"file":"VideoRenderer.d.ts","sourceRoot":"","sources":["../../../../../src/components/Participant/ParticipantView/VideoRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAGjD,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAoBzD;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,IAAI,CACnC,oBAAoB,EAClB,0BAA0B,GAC1B,WAAW,GACX,aAAa,GACb,WAAW,GACX,WAAW,GACX,aAAa,CAChB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,aAAa,6FAOvB,kBAAkB,sBA0NpB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Props for the ScreenShareOverlay component
|
|
4
|
+
*/
|
|
5
|
+
export type ScreenShareOverlayProps = {};
|
|
6
|
+
/**
|
|
7
|
+
* The component that displays the screen sharing overlay, when the screen is shared.
|
|
8
|
+
*/
|
|
9
|
+
export declare const ScreenShareOverlay: ({}: ScreenShareOverlayProps) => React.JSX.Element;
|
|
10
|
+
//# sourceMappingURL=ScreenShareOverlay.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScreenShareOverlay.d.ts","sourceRoot":"","sources":["../../../../src/components/utility/ScreenShareOverlay.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG,EAAE,CAAC;AAEzC;;GAEG;AACH,eAAO,MAAM,kBAAkB,OAAQ,uBAAuB,sBAoE7D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/utility/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/utility/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,sBAAsB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useIosVoipPushEventsSetupEffect.d.ts","sourceRoot":"","sources":["../../../../src/hooks/push/useIosVoipPushEventsSetupEffect.ts"],"names":[],"mappings":"AAuBA;;;GAGG;AACH,eAAO,MAAM,+BAA+B,
|
|
1
|
+
{"version":3,"file":"useIosVoipPushEventsSetupEffect.d.ts","sourceRoot":"","sources":["../../../../src/hooks/push/useIosVoipPushEventsSetupEffect.ts"],"names":[],"mappings":"AAuBA;;;GAGG;AACH,eAAO,MAAM,+BAA+B,YA8E3C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StopScreenShare.d.ts","sourceRoot":"","sources":["../../../src/icons/StopScreenShare.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAEhD,KAAK,KAAK,GAAG;IACX,KAAK,EAAE,UAAU,CAAC;CACnB,CAAC;AAEF,eAAO,MAAM,eAAe,cAAe,KAAK,sBAa/C,CAAC"}
|
|
@@ -18,6 +18,7 @@ export * from './TopViewBackground';
|
|
|
18
18
|
export * from './Eye';
|
|
19
19
|
export * from './ShieldBadge';
|
|
20
20
|
export * from './StartStreamIcon';
|
|
21
|
+
export * from './StopScreenShare';
|
|
21
22
|
export * from './EndStreamIcon';
|
|
22
23
|
export * from './LeaveStreamIcon';
|
|
23
24
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/icons/index.tsx"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;A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theme = {
|
|
|
55
55
|
container: ViewStyle;
|
|
56
56
|
svgContainer: ViewStyle;
|
|
57
57
|
};
|
|
58
|
-
|
|
58
|
+
screenShareToggleButton: {
|
|
59
59
|
container: ViewStyle;
|
|
60
60
|
svgContainer: ViewStyle;
|
|
61
61
|
};
|
|
@@ -206,8 +206,6 @@ export type Theme = {
|
|
|
206
206
|
};
|
|
207
207
|
viewerLivestream: {
|
|
208
208
|
container: ViewStyle;
|
|
209
|
-
floatingParticipantView: ViewStyle;
|
|
210
|
-
view: ViewStyle;
|
|
211
209
|
};
|
|
212
210
|
livestreamLayout: {
|
|
213
211
|
container: ViewStyle;
|
|
@@ -271,6 +269,17 @@ export type Theme = {
|
|
|
271
269
|
container: ViewStyle;
|
|
272
270
|
icon: ViewStyle;
|
|
273
271
|
};
|
|
272
|
+
livestreamScreenShareToggleButton: {
|
|
273
|
+
container: ViewStyle;
|
|
274
|
+
icon: ViewStyle;
|
|
275
|
+
};
|
|
276
|
+
screenshareOverlay: {
|
|
277
|
+
container: ViewStyle;
|
|
278
|
+
text: TextStyle;
|
|
279
|
+
button: ViewStyle;
|
|
280
|
+
buttonIcon: ViewStyle;
|
|
281
|
+
buttonText: TextStyle;
|
|
282
|
+
};
|
|
274
283
|
};
|
|
275
284
|
export declare const defaultTheme: Theme;
|
|
276
285
|
//# sourceMappingURL=theme.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../src/theme/theme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAEtE,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAE5D,MAAM,MAAM,KAAK,GAAG;IAClB,QAAQ,EAAE;QACR,WAAW,EAAE;YACX,EAAE,EAAE,MAAM,CAAC;YACX,EAAE,EAAE,MAAM,CAAC;YACX,EAAE,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ACzB,CAAC;IACF,wBAAwB,EAAE;QACxB,SAAS,EAAE,SAAS,CAAC;QACrB,WAAW,EAAE,SAAS,CAAC;QACvB,YAAY,EAAE,SAAS,CAAC;KACzB,CAAC;IACF,qBAAqB,EAAE;QACrB,SAAS,EAAE,SAAS,CAAC;QACrB,IAAI,EAAE,SAAS,CAAC;QAChB,IAAI,EAAE,SAAS,CAAC;KACjB,CAAC;IACF,uBAAuB,EAAE;QACvB,SAAS,EAAE,SAAS,CAAC;QACrB,IAAI,EAAE,SAAS,CAAC;QAChB,IAAI,EAAE,SAAS,CAAC;KACjB,CAAC;IACF,uBAAuB,EAAE;QACvB,SAAS,EAAE,SAAS,CAAC;KACtB,CAAC;IACF,4BAA4B,EAAE;QAC5B,SAAS,EAAE,SAAS,CAAC;QACrB,IAAI,EAAE,SAAS,CAAC;KACjB,CAAC;IACF,4BAA4B,EAAE;QAC5B,SAAS,EAAE,SAAS,CAAC;QACrB,IAAI,EAAE,SAAS,CAAC;KACjB,CAAC;IACF,iCAAiC,EAAE;QACjC,SAAS,EAAE,SAAS,CAAC;QACrB,IAAI,EAAE,SAAS,CAAC;KACjB,CAAC;IACF,kBAAkB,EAAE;QAClB,SAAS,EAAE,SAAS,CAAC;QACrB,IAAI,EAAE,SAAS,CAAC;QAChB,MAAM,EAAE,SAAS,CAAC;QAClB,UAAU,EAAE,SAAS,CAAC;QACtB,UAAU,EAAE,SAAS,CAAC;KACvB,CAAC;CACH,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,KAiT1B,CAAC"}
|
|
@@ -16,6 +16,8 @@ export declare const translations: {
|
|
|
16
16
|
"Setup your audio and video": string;
|
|
17
17
|
"Setup your audio": string;
|
|
18
18
|
"You are first to Join the call.": string;
|
|
19
|
+
"You are sharing your screen with everyone": string;
|
|
20
|
+
"Stop Screen Sharing": string;
|
|
19
21
|
"Participants ({{ numberOfParticipants }})": string;
|
|
20
22
|
"{{ userName }} is sharing their screen": string;
|
|
21
23
|
"You are sharing your screen": string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/translations/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/translations/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;CAAS,CAAC"}
|
|
@@ -30,7 +30,7 @@ export declare class StreamVideoRN {
|
|
|
30
30
|
* This is the function to be called when the push token must be removed.
|
|
31
31
|
* Typically used on user logout.
|
|
32
32
|
*/
|
|
33
|
-
static onPushLogout(): void
|
|
33
|
+
static onPushLogout(): Promise<void>;
|
|
34
34
|
/**
|
|
35
35
|
* This function is used to add a callback to be called when a new call notification is received.
|
|
36
36
|
* @param callback
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/utils/StreamVideoRN/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAG5C,OAAiC,EAC/B,2BAA2B,EAC5B,MAAM,sCAAsC,CAAC;AAoB9C,qBAAa,aAAa;IACxB,OAAO,CAAC,MAAM,CAAC,MAAM,CAA+B;IAEpD;;;;OAIG;IACH,MAAM,CAAC,YAAY,CAAC,YAAY,EAAE,OAAO,CAAC,IAAI,CAAC,iBAAiB,EAAE,MAAM,CAAC,CAAC;IAO1E,MAAM,CAAC,gCAAgC,CACrC,aAAa,EAAE,OAAO,CACpB,WAAW,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,qBAAqB,CAAC,CACzE;IAWH;;;;;;;;;;;;;;OAcG;IACH,MAAM,CAAC,aAAa,CAAC,UAAU,EAAE,WAAW,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC;IAYvE,MAAM,CAAC,SAAS;IAIhB;;;OAGG;IACH,MAAM,CAAC,YAAY;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/utils/StreamVideoRN/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAG5C,OAAiC,EAC/B,2BAA2B,EAC5B,MAAM,sCAAsC,CAAC;AAoB9C,qBAAa,aAAa;IACxB,OAAO,CAAC,MAAM,CAAC,MAAM,CAA+B;IAEpD;;;;OAIG;IACH,MAAM,CAAC,YAAY,CAAC,YAAY,EAAE,OAAO,CAAC,IAAI,CAAC,iBAAiB,EAAE,MAAM,CAAC,CAAC;IAO1E,MAAM,CAAC,gCAAgC,CACrC,aAAa,EAAE,OAAO,CACpB,WAAW,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,qBAAqB,CAAC,CACzE;IAWH;;;;;;;;;;;;;;OAcG;IACH,MAAM,CAAC,aAAa,CAAC,UAAU,EAAE,WAAW,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC;IAYvE,MAAM,CAAC,SAAS;IAIhB;;;OAGG;IACH,MAAM,CAAC,YAAY;IASnB;;;;OAIG;IACH,MAAM,CAAC,gCAAgC,CACrC,QAAQ,EAAE,2BAA2B;CAYxC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
type Callback = () => void
|
|
1
|
+
type Callback = () => Promise<void>;
|
|
2
2
|
type PushLogoutCallbacks = {
|
|
3
3
|
current?: Callback[];
|
|
4
4
|
};
|
|
5
5
|
declare let pushLogoutCallbacks: PushLogoutCallbacks;
|
|
6
|
-
export declare const setPushLogoutCallback: (callback:
|
|
6
|
+
export declare const setPushLogoutCallback: (callback: Callback) => void;
|
|
7
7
|
export default pushLogoutCallbacks;
|
|
8
8
|
//# sourceMappingURL=pushLogoutCallback.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pushLogoutCallback.d.ts","sourceRoot":"","sources":["../../../../src/utils/internal/pushLogoutCallback.ts"],"names":[],"mappings":"AAAA,KAAK,QAAQ,GAAG,MAAM,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"pushLogoutCallback.d.ts","sourceRoot":"","sources":["../../../../src/utils/internal/pushLogoutCallback.ts"],"names":[],"mappings":"AAAA,KAAK,QAAQ,GAAG,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;AAEpC,KAAK,mBAAmB,GAAG;IACzB,OAAO,CAAC,EAAE,QAAQ,EAAE,CAAC;CACtB,CAAC;AAEF,QAAA,IAAI,mBAAmB,EAAE,mBAAwB,CAAC;AAElD,eAAO,MAAM,qBAAqB,aAAc,QAAQ,SAMvD,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"android.d.ts","sourceRoot":"","sources":["../../../../src/utils/push/android.ts"],"names":[],"mappings":"AAEA,OAAO,EAAiB,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAE3E,OAAO,KAAK,EAEV,iBAAiB,EAClB,MAAM,wBAAwB,CAAC;AAyBhC,KAAK,UAAU,GAAG,WAAW,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC,CAAC;AAEzD,2CAA2C;AAC3C,wBAAgB,2BAA2B,CAAC,UAAU,EAAE,UAAU,QA2DjE;AAED,0DAA0D;AAC1D,wBAAsB,oBAAoB,CACxC,MAAM,EAAE,iBAAiB,EACzB,UAAU,EAAE,UAAU,EACtB,sBAAsB,EAAE,CAAC,WAAW,EAAE,MAAM,IAAI,KAAK,IAAI,
|
|
1
|
+
{"version":3,"file":"android.d.ts","sourceRoot":"","sources":["../../../../src/utils/push/android.ts"],"names":[],"mappings":"AAEA,OAAO,EAAiB,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAE3E,OAAO,KAAK,EAEV,iBAAiB,EAClB,MAAM,wBAAwB,CAAC;AAyBhC,KAAK,UAAU,GAAG,WAAW,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC,CAAC;AAEzD,2CAA2C;AAC3C,wBAAgB,2BAA2B,CAAC,UAAU,EAAE,UAAU,QA2DjE;AAED,0DAA0D;AAC1D,wBAAsB,oBAAoB,CACxC,MAAM,EAAE,iBAAiB,EACzB,UAAU,EAAE,UAAU,EACtB,sBAAsB,EAAE,CAAC,WAAW,EAAE,MAAM,IAAI,KAAK,IAAI,iBAqC1D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ios.d.ts","sourceRoot":"","sources":["../../../../src/utils/push/ios.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAEV,iBAAiB,EAClB,MAAM,wBAAwB,CAAC;AAahC,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAI5D,KAAK,UAAU,GAAG,WAAW,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC,CAAC;AAwBzD,eAAO,MAAM,qBAAqB,aACtB,MAAM,GAAG,SAAS,wBACN,MAAM,SAe7B,CAAC;AAEF,eAAO,MAAM,qBAAqB,aACtB,MAAM,GAAG,SAAS,wBACN,MAAM,cAChB,UAAU,kBAWvB,CAAC;AAgBF,eAAO,MAAM,kCAAkC,eAAgB,UAAU,SA6BxE,CAAC;AAEF,2BAA2B;AAC3B,wBAAsB,mBAAmB,CACvC,MAAM,EAAE,iBAAiB,EACzB,UAAU,EAAE,UAAU,EACtB,sBAAsB,EAAE,CAAC,WAAW,EAAE,MAAM,IAAI,KAAK,IAAI,
|
|
1
|
+
{"version":3,"file":"ios.d.ts","sourceRoot":"","sources":["../../../../src/utils/push/ios.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAEV,iBAAiB,EAClB,MAAM,wBAAwB,CAAC;AAahC,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAI5D,KAAK,UAAU,GAAG,WAAW,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC,CAAC;AAwBzD,eAAO,MAAM,qBAAqB,aACtB,MAAM,GAAG,SAAS,wBACN,MAAM,SAe7B,CAAC;AAEF,eAAO,MAAM,qBAAqB,aACtB,MAAM,GAAG,SAAS,wBACN,MAAM,cAChB,UAAU,kBAWvB,CAAC;AAgBF,eAAO,MAAM,kCAAkC,eAAgB,UAAU,SA6BxE,CAAC;AAEF,2BAA2B;AAC3B,wBAAsB,mBAAmB,CACvC,MAAM,EAAE,iBAAiB,EACzB,UAAU,EAAE,UAAU,EACtB,sBAAsB,EAAE,CAAC,WAAW,EAAE,MAAM,IAAI,KAAK,IAAI,iBAqD1D"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const version = "0.6.
|
|
1
|
+
export declare const version = "0.6.3";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/package.json
CHANGED
|
@@ -33,6 +33,10 @@ import {
|
|
|
33
33
|
CallParticipantsListProps,
|
|
34
34
|
} from '../CallParticipantsList';
|
|
35
35
|
import { useIsInPiPMode, useAutoEnterPiPEffect } from '../../../hooks';
|
|
36
|
+
import {
|
|
37
|
+
ScreenShareOverlay as DefaultScreenShareOverlay,
|
|
38
|
+
ScreenShareOverlayProps,
|
|
39
|
+
} from '../../utility/ScreenShareOverlay';
|
|
36
40
|
|
|
37
41
|
export type StreamReactionType = StreamReaction & {
|
|
38
42
|
icon: string;
|
|
@@ -56,6 +60,10 @@ type CallContentComponentProps = ParticipantViewComponentProps &
|
|
|
56
60
|
* Component to customize the CallParticipantsList.
|
|
57
61
|
*/
|
|
58
62
|
CallParticipantsList?: React.ComponentType<CallParticipantsListProps> | null;
|
|
63
|
+
/**
|
|
64
|
+
* Component to customize the ScreenShareOverlay.
|
|
65
|
+
*/
|
|
66
|
+
ScreenShareOverlay?: React.ComponentType<ScreenShareOverlayProps> | null;
|
|
59
67
|
};
|
|
60
68
|
|
|
61
69
|
export type CallContentProps = Pick<
|
|
@@ -90,6 +98,7 @@ export const CallContent = ({
|
|
|
90
98
|
CallTopView = DefaultCallTopView,
|
|
91
99
|
CallControls = DefaultCallControls,
|
|
92
100
|
FloatingParticipantView = DefaultFloatingParticipantView,
|
|
101
|
+
ScreenShareOverlay = DefaultScreenShareOverlay,
|
|
93
102
|
ParticipantLabel,
|
|
94
103
|
ParticipantNetworkQualityIndicator,
|
|
95
104
|
ParticipantReaction,
|
|
@@ -177,6 +186,7 @@ export const CallContent = ({
|
|
|
177
186
|
landscape,
|
|
178
187
|
ParticipantView,
|
|
179
188
|
CallParticipantsList,
|
|
189
|
+
ScreenShareOverlay,
|
|
180
190
|
supportedReactions,
|
|
181
191
|
};
|
|
182
192
|
|
package/src/components/Call/CallControls/{ScreenShareButton.tsx → ScreenShareToggleButton.tsx}
RENAMED
|
@@ -1,18 +1,26 @@
|
|
|
1
1
|
import React, { useEffect, useRef } from 'react';
|
|
2
2
|
import { NativeModules, Platform, findNodeHandle } from 'react-native';
|
|
3
3
|
import { ScreenCapturePickerView } from '@stream-io/react-native-webrtc';
|
|
4
|
-
import { ScreenShare } from '../../../icons';
|
|
4
|
+
import { ScreenShare } from '../../../icons/ScreenShare';
|
|
5
|
+
import { StopScreenShare } from '../../../icons/StopScreenShare';
|
|
5
6
|
import { CallControlsButton } from './CallControlsButton';
|
|
6
|
-
import {
|
|
7
|
+
import { useTheme } from '../../../contexts/ThemeContext';
|
|
7
8
|
import { useCall, useCallStateHooks } from '@stream-io/video-react-bindings';
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { usePrevious } from '../../../utils/hooks';
|
|
9
|
+
import { useIsIosScreenshareBroadcastStarted } from '../../../hooks/useIsIosScreenshareBroadcastStarted';
|
|
10
|
+
import { 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';
|
|
11
19
|
|
|
12
20
|
/**
|
|
13
21
|
* The props for the Screen Share button in the Call Controls.
|
|
14
22
|
*/
|
|
15
|
-
export type
|
|
23
|
+
export type ScreenShareToggleButtonProps = {
|
|
16
24
|
/**
|
|
17
25
|
* Handler to be called when the screen-share has been started.
|
|
18
26
|
*
|
|
@@ -25,24 +33,18 @@ export type ScreenShareButtonProps = {
|
|
|
25
33
|
onScreenShareStoppedHandler?: () => void;
|
|
26
34
|
};
|
|
27
35
|
|
|
28
|
-
// ios >= 14.0 or android
|
|
29
|
-
const CanScreenShare =
|
|
30
|
-
(Platform.OS === 'ios' &&
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
Number.parseInt(Platform.Version.split('.')[0], 10) >= 14) ||
|
|
33
|
-
Platform.OS === 'android';
|
|
34
|
-
|
|
35
36
|
/**
|
|
36
37
|
* Button to start/stop screen share.
|
|
37
38
|
* Note: This button is enabled only on iOS >= 14.0 and any Android version.
|
|
38
39
|
*/
|
|
39
|
-
export const
|
|
40
|
+
export const ScreenShareToggleButton = ({
|
|
40
41
|
onScreenShareStartedHandler,
|
|
41
42
|
onScreenShareStoppedHandler,
|
|
42
|
-
}:
|
|
43
|
+
}: ScreenShareToggleButtonProps) => {
|
|
43
44
|
const {
|
|
44
|
-
theme: { colors,
|
|
45
|
+
theme: { colors, screenShareToggleButton },
|
|
45
46
|
} = useTheme();
|
|
47
|
+
|
|
46
48
|
const call = useCall();
|
|
47
49
|
const { useLocalParticipant, useCallSettings } = useCallStateHooks();
|
|
48
50
|
const callSettings = useCallSettings();
|
|
@@ -55,21 +57,26 @@ export const ScreenShareButton = ({
|
|
|
55
57
|
const onScreenShareStoppedHandlerRef = useRef(onScreenShareStoppedHandler);
|
|
56
58
|
onScreenShareStoppedHandlerRef.current = onScreenShareStoppedHandler;
|
|
57
59
|
|
|
58
|
-
const
|
|
59
|
-
const
|
|
60
|
+
const iosScreenShareStartedFromSystem = useIsIosScreenshareBroadcastStarted();
|
|
61
|
+
const prevIosScreenShareStartedFromSystem = usePrevious(
|
|
62
|
+
iosScreenShareStartedFromSystem,
|
|
63
|
+
);
|
|
60
64
|
|
|
61
65
|
const localParticipant = useLocalParticipant();
|
|
62
66
|
const hasPublishedScreenShare = localParticipant?.publishedTracks.includes(
|
|
63
67
|
SfuModels.TrackType.SCREEN_SHARE,
|
|
64
68
|
);
|
|
65
69
|
|
|
66
|
-
// listens to iOS screen share broadcast started event
|
|
70
|
+
// listens to iOS screen share broadcast started event from the system
|
|
67
71
|
useEffect(() => {
|
|
68
72
|
const run = async () => {
|
|
69
73
|
if (Platform.OS !== 'ios') {
|
|
70
74
|
return;
|
|
71
75
|
}
|
|
72
|
-
if (
|
|
76
|
+
if (
|
|
77
|
+
iosScreenShareStartedFromSystem &&
|
|
78
|
+
!prevIosScreenShareStartedFromSystem
|
|
79
|
+
) {
|
|
73
80
|
onScreenShareStartedHandlerRef.current?.();
|
|
74
81
|
const media = await navigator.mediaDevices.getDisplayMedia({
|
|
75
82
|
// @ts-ignore
|
|
@@ -78,58 +85,69 @@ export const ScreenShareButton = ({
|
|
|
78
85
|
audio: true,
|
|
79
86
|
});
|
|
80
87
|
await call?.publishScreenShareStream(media);
|
|
81
|
-
} else if (
|
|
88
|
+
} else if (
|
|
89
|
+
!iosScreenShareStartedFromSystem &&
|
|
90
|
+
prevIosScreenShareStartedFromSystem
|
|
91
|
+
) {
|
|
82
92
|
onScreenShareStoppedHandlerRef.current?.();
|
|
83
93
|
await call?.stopPublish(SfuModels.TrackType.SCREEN_SHARE);
|
|
84
94
|
}
|
|
85
95
|
};
|
|
86
96
|
run();
|
|
87
|
-
}, [
|
|
97
|
+
}, [
|
|
98
|
+
call,
|
|
99
|
+
iosScreenShareStartedFromSystem,
|
|
100
|
+
prevIosScreenShareStartedFromSystem,
|
|
101
|
+
]);
|
|
88
102
|
|
|
89
|
-
const
|
|
103
|
+
const screenCapturePickerViewiOSRef = React.useRef(null);
|
|
90
104
|
|
|
91
105
|
const onPress = async () => {
|
|
92
|
-
if (
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
106
|
+
if (!hasPublishedScreenShare) {
|
|
107
|
+
if (Platform.OS === 'ios') {
|
|
108
|
+
const reactTag = findNodeHandle(screenCapturePickerViewiOSRef.current);
|
|
109
|
+
await NativeModules.ScreenCapturePickerViewManager.show(reactTag);
|
|
110
|
+
// After this the iOS screen share broadcast started/stopped event will be triggered
|
|
111
|
+
// and the useEffect listener will handle the rest
|
|
112
|
+
} else {
|
|
99
113
|
try {
|
|
100
114
|
const media = await navigator.mediaDevices.getDisplayMedia({
|
|
101
115
|
video: true,
|
|
102
116
|
audio: true,
|
|
103
117
|
});
|
|
104
|
-
|
|
118
|
+
onScreenShareStartedHandler?.();
|
|
105
119
|
await call?.publishScreenShareStream(media);
|
|
106
120
|
} catch (e) {
|
|
107
121
|
// ignored.. user didnt allow the screen share in the popup
|
|
108
122
|
}
|
|
109
|
-
} else if (hasPublishedScreenShare) {
|
|
110
|
-
onScreenShareStoppedHandlerRef.current?.();
|
|
111
|
-
await call?.stopPublish(SfuModels.TrackType.SCREEN_SHARE);
|
|
112
123
|
}
|
|
124
|
+
} else if (hasPublishedScreenShare) {
|
|
125
|
+
onScreenShareStoppedHandler?.();
|
|
126
|
+
await call?.stopPublish(SfuModels.TrackType.SCREEN_SHARE);
|
|
113
127
|
}
|
|
114
128
|
};
|
|
115
129
|
|
|
116
|
-
if (!isScreenSharingEnabledInCall || !
|
|
117
|
-
return;
|
|
130
|
+
if (!isScreenSharingEnabledInCall || !CanDeviceScreenShare) {
|
|
131
|
+
return null;
|
|
118
132
|
}
|
|
119
133
|
|
|
120
134
|
return (
|
|
121
135
|
<CallControlsButton
|
|
122
136
|
disabled={!isScreenSharingAccessRequestEnabled}
|
|
123
137
|
onPress={onPress}
|
|
124
|
-
color={colors.static_white}
|
|
138
|
+
color={hasPublishedScreenShare ? colors.error : colors.static_white}
|
|
125
139
|
style={{
|
|
126
|
-
container:
|
|
127
|
-
svgContainer:
|
|
140
|
+
container: screenShareToggleButton.container,
|
|
141
|
+
svgContainer: screenShareToggleButton.svgContainer,
|
|
128
142
|
}}
|
|
129
143
|
>
|
|
130
|
-
|
|
144
|
+
{hasPublishedScreenShare ? (
|
|
145
|
+
<StopScreenShare color={colors.static_black} />
|
|
146
|
+
) : (
|
|
147
|
+
<ScreenShare color={colors.static_black} />
|
|
148
|
+
)}
|
|
131
149
|
{Platform.OS === 'ios' && (
|
|
132
|
-
<ScreenCapturePickerView ref={
|
|
150
|
+
<ScreenCapturePickerView ref={screenCapturePickerViewiOSRef} />
|
|
133
151
|
)}
|
|
134
152
|
</CallControlsButton>
|
|
135
153
|
);
|
|
@@ -24,7 +24,10 @@ import { useIsInPiPMode } from '../../../hooks';
|
|
|
24
24
|
* Props for the CallParticipantsSpotlight component.
|
|
25
25
|
*/
|
|
26
26
|
export type CallParticipantsSpotlightProps = ParticipantViewComponentProps &
|
|
27
|
-
Pick<
|
|
27
|
+
Pick<
|
|
28
|
+
CallContentProps,
|
|
29
|
+
'supportedReactions' | 'CallParticipantsList' | 'ScreenShareOverlay'
|
|
30
|
+
> &
|
|
28
31
|
Pick<CallParticipantsListComponentProps, 'ParticipantView'> & {
|
|
29
32
|
/**
|
|
30
33
|
* Check if device is in landscape mode.
|
|
@@ -47,6 +50,7 @@ export const CallParticipantsSpotlight = ({
|
|
|
47
50
|
ParticipantReaction,
|
|
48
51
|
ParticipantVideoFallback,
|
|
49
52
|
ParticipantView = DefaultParticipantView,
|
|
53
|
+
ScreenShareOverlay,
|
|
50
54
|
VideoRenderer,
|
|
51
55
|
supportedReactions,
|
|
52
56
|
landscape,
|
|
@@ -98,29 +102,33 @@ export const CallParticipantsSpotlight = ({
|
|
|
98
102
|
callParticipantsSpotlight.container,
|
|
99
103
|
]}
|
|
100
104
|
>
|
|
101
|
-
{participantInSpotlight &&
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
105
|
+
{participantInSpotlight &&
|
|
106
|
+
ParticipantView &&
|
|
107
|
+
(ScreenShareOverlay ? (
|
|
108
|
+
<ScreenShareOverlay />
|
|
109
|
+
) : (
|
|
110
|
+
<ParticipantView
|
|
111
|
+
participant={participantInSpotlight}
|
|
112
|
+
style={
|
|
113
|
+
isUserAloneInCall
|
|
114
|
+
? [
|
|
115
|
+
styles.fullScreenSpotlightContainer,
|
|
116
|
+
callParticipantsSpotlight.fullScreenSpotlightContainer,
|
|
117
|
+
]
|
|
118
|
+
: [
|
|
119
|
+
styles.spotlightContainer,
|
|
120
|
+
spotlightContainerLandscapeStyles,
|
|
121
|
+
callParticipantsSpotlight.spotlightContainer,
|
|
122
|
+
]
|
|
123
|
+
}
|
|
124
|
+
objectFit={isScreenShareOnSpotlight ? 'contain' : 'cover'}
|
|
125
|
+
trackType={
|
|
126
|
+
isScreenShareOnSpotlight ? 'screenShareTrack' : 'videoTrack'
|
|
127
|
+
}
|
|
128
|
+
supportedReactions={supportedReactions}
|
|
129
|
+
{...participantViewProps}
|
|
130
|
+
/>
|
|
131
|
+
))}
|
|
124
132
|
{!isInPiP && !isUserAloneInCall && (
|
|
125
133
|
<View
|
|
126
134
|
style={[
|