@stream-io/video-react-native-sdk 0.6.1 → 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 +14 -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 +4 -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 +4 -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 -23
- 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
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
### [0.6.3](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-react-native-sdk-0.6.2...@stream-io/video-react-native-sdk-0.6.3) (2024-04-16)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* **react-native:** add screen share and chat to livestream sample ([#1302](https://github.com/GetStream/stream-video-js/issues/1302)) ([4e7dbe0](https://github.com/GetStream/stream-video-js/commit/4e7dbe0bcbf8ea0e36a05241f1caf3eb9747a760))
|
|
11
|
+
|
|
12
|
+
### [0.6.2](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-react-native-sdk-0.6.1...@stream-io/video-react-native-sdk-0.6.2) (2024-04-12)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* **react-native:** change objectFit to contain for screensharing ParticipantView ([#1314](https://github.com/GetStream/stream-video-js/issues/1314)) ([c50245d](https://github.com/GetStream/stream-video-js/commit/c50245df92d994d66ae1640b8acd41e8b2ec71e1))
|
|
18
|
+
|
|
5
19
|
### [0.6.1](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-react-native-sdk-0.6.0...@stream-io/video-react-native-sdk-0.6.1) (2024-04-09)
|
|
6
20
|
|
|
7
21
|
### Dependency Updates
|
|
@@ -16,6 +16,7 @@ var _hooks = require("../../../utils/hooks");
|
|
|
16
16
|
var _Participant = require("../../Participant");
|
|
17
17
|
var _contexts = require("../../../contexts");
|
|
18
18
|
var _hooks2 = require("../../../hooks");
|
|
19
|
+
var _ScreenShareOverlay = require("../../utility/ScreenShareOverlay");
|
|
19
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
20
21
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
21
22
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
@@ -28,6 +29,7 @@ const CallContent = ({
|
|
|
28
29
|
CallTopView = _CallTopView.CallTopView,
|
|
29
30
|
CallControls = _CallControls.CallControls,
|
|
30
31
|
FloatingParticipantView = _Participant.FloatingParticipantView,
|
|
32
|
+
ScreenShareOverlay = _ScreenShareOverlay.ScreenShareOverlay,
|
|
31
33
|
ParticipantLabel,
|
|
32
34
|
ParticipantNetworkQualityIndicator,
|
|
33
35
|
ParticipantReaction,
|
|
@@ -98,6 +100,7 @@ const CallContent = ({
|
|
|
98
100
|
landscape,
|
|
99
101
|
ParticipantView,
|
|
100
102
|
CallParticipantsList,
|
|
103
|
+
ScreenShareOverlay,
|
|
101
104
|
supportedReactions
|
|
102
105
|
};
|
|
103
106
|
const landscapeStyles = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_reactNativeIncallManager","_interopRequireDefault","_CallTopView","_CallLayout","_CallControls","_videoReactBindings","_constants","_hooks","_Participant","_contexts","_hooks2","obj","__esModule","default","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","_extends","assign","bind","target","i","arguments","length","source","apply","CallContent","onBackPressed","onParticipantInfoPress","onHangupCallHandler","CallParticipantsList","CallTopView","DefaultCallTopView","CallControls","DefaultCallControls","FloatingParticipantView","DefaultFloatingParticipantView","ParticipantLabel","ParticipantNetworkQualityIndicator","ParticipantReaction","ParticipantVideoFallback","ParticipantView","ParticipantsInfoBadge","VideoRenderer","layout","landscape","supportedReactions","showRemoteParticipantInFloatingView","setShowRemoteParticipantInFloatingView","useState","theme","callContent","useTheme","useCallSettings","useHasOngoingScreenShare","useRemoteParticipants","useLocalParticipant","useCallStateHooks","useAutoEnterPiPEffect","callSettings","isVideoEnabledInCall","video","enabled","_remoteParticipants","remoteParticipants","useDebouncedValue","localParticipant","isInPiPMode","useIsInPiPMode","hasScreenShare","showSpotlightLayout","showFloatingView","isRemoteParticipantInFloatingView","useEffect","InCallManager","start","media","stop","handleFloatingViewParticipantSwitch","prevState","participantViewProps","callParticipantsGridProps","showLocalParticipant","callParticipantsSpotlightProps","landscapeStyles","flexDirection","createElement","View","style","styles","container","callParticipantsContainer","view","topContainer","pointerEvents","participant","onPressHandler","CallParticipantsSpotlight","CallParticipantsGrid","exports","StyleSheet","create","flex","absoluteFillObject","zIndex","Z_INDEX","IN_FRONT"],"sourceRoot":"../../../../../src","sources":["components/Call/CallContent/CallContent.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,yBAAA,GAAAC,sBAAA,CAAAH,OAAA;AAEA,IAAAI,YAAA,GAAAJ,OAAA;AAIA,IAAAK,WAAA,GAAAL,OAAA;AAMA,IAAAM,aAAA,GAAAN,OAAA;AAKA,IAAAO,mBAAA,GAAAP,OAAA;AAGA,IAAAQ,UAAA,GAAAR,OAAA;AACA,IAAAS,MAAA,GAAAT,OAAA;AACA,IAAAU,YAAA,GAAAV,OAAA;AAKA,IAAAW,SAAA,GAAAX,OAAA;AAKA,IAAAY,OAAA,GAAAZ,OAAA;
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_reactNativeIncallManager","_interopRequireDefault","_CallTopView","_CallLayout","_CallControls","_videoReactBindings","_constants","_hooks","_Participant","_contexts","_hooks2","_ScreenShareOverlay","obj","__esModule","default","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","_extends","assign","bind","target","i","arguments","length","source","apply","CallContent","onBackPressed","onParticipantInfoPress","onHangupCallHandler","CallParticipantsList","CallTopView","DefaultCallTopView","CallControls","DefaultCallControls","FloatingParticipantView","DefaultFloatingParticipantView","ScreenShareOverlay","DefaultScreenShareOverlay","ParticipantLabel","ParticipantNetworkQualityIndicator","ParticipantReaction","ParticipantVideoFallback","ParticipantView","ParticipantsInfoBadge","VideoRenderer","layout","landscape","supportedReactions","showRemoteParticipantInFloatingView","setShowRemoteParticipantInFloatingView","useState","theme","callContent","useTheme","useCallSettings","useHasOngoingScreenShare","useRemoteParticipants","useLocalParticipant","useCallStateHooks","useAutoEnterPiPEffect","callSettings","isVideoEnabledInCall","video","enabled","_remoteParticipants","remoteParticipants","useDebouncedValue","localParticipant","isInPiPMode","useIsInPiPMode","hasScreenShare","showSpotlightLayout","showFloatingView","isRemoteParticipantInFloatingView","useEffect","InCallManager","start","media","stop","handleFloatingViewParticipantSwitch","prevState","participantViewProps","callParticipantsGridProps","showLocalParticipant","callParticipantsSpotlightProps","landscapeStyles","flexDirection","createElement","View","style","styles","container","callParticipantsContainer","view","topContainer","pointerEvents","participant","onPressHandler","CallParticipantsSpotlight","CallParticipantsGrid","exports","StyleSheet","create","flex","absoluteFillObject","zIndex","Z_INDEX","IN_FRONT"],"sourceRoot":"../../../../../src","sources":["components/Call/CallContent/CallContent.tsx"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@@ -3,42 +3,43 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.ScreenShareToggleButton = void 0;
|
|
7
7
|
var _react = _interopRequireWildcard(require("react"));
|
|
8
8
|
var _reactNative = require("react-native");
|
|
9
9
|
var _reactNativeWebrtc = require("@stream-io/react-native-webrtc");
|
|
10
|
-
var
|
|
10
|
+
var _ScreenShare = require("../../../icons/ScreenShare");
|
|
11
|
+
var _StopScreenShare = require("../../../icons/StopScreenShare");
|
|
11
12
|
var _CallControlsButton = require("./CallControlsButton");
|
|
12
|
-
var
|
|
13
|
+
var _ThemeContext = require("../../../contexts/ThemeContext");
|
|
13
14
|
var _videoReactBindings = require("@stream-io/video-react-bindings");
|
|
14
|
-
var
|
|
15
|
-
var
|
|
16
|
-
var
|
|
15
|
+
var _useIsIosScreenshareBroadcastStarted = require("../../../hooks/useIsIosScreenshareBroadcastStarted");
|
|
16
|
+
var _videoClient = require("@stream-io/video-client");
|
|
17
|
+
var _usePrevious = require("../../../utils/hooks/usePrevious");
|
|
17
18
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
18
19
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
20
|
+
// ios >= 14.0 or android - platform restrictions
|
|
21
|
+
const CanDeviceScreenShare = _reactNative.Platform.OS === 'ios' &&
|
|
22
|
+
// @ts-ignore
|
|
23
|
+
Number.parseInt(_reactNative.Platform.Version.split('.')[0], 10) >= 14 || _reactNative.Platform.OS === 'android';
|
|
24
|
+
|
|
19
25
|
/**
|
|
20
26
|
* The props for the Screen Share button in the Call Controls.
|
|
21
27
|
*/
|
|
22
28
|
|
|
23
|
-
// ios >= 14.0 or android
|
|
24
|
-
const CanScreenShare = _reactNative.Platform.OS === 'ios' &&
|
|
25
|
-
// @ts-ignore
|
|
26
|
-
Number.parseInt(_reactNative.Platform.Version.split('.')[0], 10) >= 14 || _reactNative.Platform.OS === 'android';
|
|
27
|
-
|
|
28
29
|
/**
|
|
29
30
|
* Button to start/stop screen share.
|
|
30
31
|
* Note: This button is enabled only on iOS >= 14.0 and any Android version.
|
|
31
32
|
*/
|
|
32
|
-
const
|
|
33
|
+
const ScreenShareToggleButton = ({
|
|
33
34
|
onScreenShareStartedHandler,
|
|
34
35
|
onScreenShareStoppedHandler
|
|
35
36
|
}) => {
|
|
36
37
|
const {
|
|
37
38
|
theme: {
|
|
38
39
|
colors,
|
|
39
|
-
|
|
40
|
+
screenShareToggleButton
|
|
40
41
|
}
|
|
41
|
-
} = (0,
|
|
42
|
+
} = (0, _ThemeContext.useTheme)();
|
|
42
43
|
const call = (0, _videoReactBindings.useCall)();
|
|
43
44
|
const {
|
|
44
45
|
useLocalParticipant,
|
|
@@ -51,18 +52,18 @@ const ScreenShareButton = ({
|
|
|
51
52
|
onScreenShareStartedHandlerRef.current = onScreenShareStartedHandler;
|
|
52
53
|
const onScreenShareStoppedHandlerRef = (0, _react.useRef)(onScreenShareStoppedHandler);
|
|
53
54
|
onScreenShareStoppedHandlerRef.current = onScreenShareStoppedHandler;
|
|
54
|
-
const
|
|
55
|
-
const
|
|
55
|
+
const iosScreenShareStartedFromSystem = (0, _useIsIosScreenshareBroadcastStarted.useIsIosScreenshareBroadcastStarted)();
|
|
56
|
+
const prevIosScreenShareStartedFromSystem = (0, _usePrevious.usePrevious)(iosScreenShareStartedFromSystem);
|
|
56
57
|
const localParticipant = useLocalParticipant();
|
|
57
58
|
const hasPublishedScreenShare = localParticipant === null || localParticipant === void 0 ? void 0 : localParticipant.publishedTracks.includes(_videoClient.SfuModels.TrackType.SCREEN_SHARE);
|
|
58
59
|
|
|
59
|
-
// listens to iOS screen share broadcast started event
|
|
60
|
+
// listens to iOS screen share broadcast started event from the system
|
|
60
61
|
(0, _react.useEffect)(() => {
|
|
61
62
|
const run = async () => {
|
|
62
63
|
if (_reactNative.Platform.OS !== 'ios') {
|
|
63
64
|
return;
|
|
64
65
|
}
|
|
65
|
-
if (
|
|
66
|
+
if (iosScreenShareStartedFromSystem && !prevIosScreenShareStartedFromSystem) {
|
|
66
67
|
var _onScreenShareStarted;
|
|
67
68
|
(_onScreenShareStarted = onScreenShareStartedHandlerRef.current) === null || _onScreenShareStarted === void 0 || _onScreenShareStarted.call(onScreenShareStartedHandlerRef);
|
|
68
69
|
const media = await navigator.mediaDevices.getDisplayMedia({
|
|
@@ -72,57 +73,57 @@ const ScreenShareButton = ({
|
|
|
72
73
|
audio: true
|
|
73
74
|
});
|
|
74
75
|
await (call === null || call === void 0 ? void 0 : call.publishScreenShareStream(media));
|
|
75
|
-
} else if (!
|
|
76
|
+
} else if (!iosScreenShareStartedFromSystem && prevIosScreenShareStartedFromSystem) {
|
|
76
77
|
var _onScreenShareStopped;
|
|
77
78
|
(_onScreenShareStopped = onScreenShareStoppedHandlerRef.current) === null || _onScreenShareStopped === void 0 || _onScreenShareStopped.call(onScreenShareStoppedHandlerRef);
|
|
78
79
|
await (call === null || call === void 0 ? void 0 : call.stopPublish(_videoClient.SfuModels.TrackType.SCREEN_SHARE));
|
|
79
80
|
}
|
|
80
81
|
};
|
|
81
82
|
run();
|
|
82
|
-
}, [call,
|
|
83
|
-
const
|
|
83
|
+
}, [call, iosScreenShareStartedFromSystem, prevIosScreenShareStartedFromSystem]);
|
|
84
|
+
const screenCapturePickerViewiOSRef = _react.default.useRef(null);
|
|
84
85
|
const onPress = async () => {
|
|
85
|
-
if (
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
86
|
+
if (!hasPublishedScreenShare) {
|
|
87
|
+
if (_reactNative.Platform.OS === 'ios') {
|
|
88
|
+
const reactTag = (0, _reactNative.findNodeHandle)(screenCapturePickerViewiOSRef.current);
|
|
89
|
+
await _reactNative.NativeModules.ScreenCapturePickerViewManager.show(reactTag);
|
|
90
|
+
// After this the iOS screen share broadcast started/stopped event will be triggered
|
|
91
|
+
// and the useEffect listener will handle the rest
|
|
92
|
+
} else {
|
|
92
93
|
try {
|
|
93
|
-
var _onScreenShareStarted2;
|
|
94
94
|
const media = await navigator.mediaDevices.getDisplayMedia({
|
|
95
95
|
video: true,
|
|
96
96
|
audio: true
|
|
97
97
|
});
|
|
98
|
-
|
|
98
|
+
onScreenShareStartedHandler === null || onScreenShareStartedHandler === void 0 || onScreenShareStartedHandler();
|
|
99
99
|
await (call === null || call === void 0 ? void 0 : call.publishScreenShareStream(media));
|
|
100
100
|
} catch (e) {
|
|
101
101
|
// ignored.. user didnt allow the screen share in the popup
|
|
102
102
|
}
|
|
103
|
-
} else if (hasPublishedScreenShare) {
|
|
104
|
-
var _onScreenShareStopped2;
|
|
105
|
-
(_onScreenShareStopped2 = onScreenShareStoppedHandlerRef.current) === null || _onScreenShareStopped2 === void 0 || _onScreenShareStopped2.call(onScreenShareStoppedHandlerRef);
|
|
106
|
-
await (call === null || call === void 0 ? void 0 : call.stopPublish(_videoClient.SfuModels.TrackType.SCREEN_SHARE));
|
|
107
103
|
}
|
|
104
|
+
} else if (hasPublishedScreenShare) {
|
|
105
|
+
onScreenShareStoppedHandler === null || onScreenShareStoppedHandler === void 0 || onScreenShareStoppedHandler();
|
|
106
|
+
await (call === null || call === void 0 ? void 0 : call.stopPublish(_videoClient.SfuModels.TrackType.SCREEN_SHARE));
|
|
108
107
|
}
|
|
109
108
|
};
|
|
110
|
-
if (!isScreenSharingEnabledInCall || !
|
|
111
|
-
return;
|
|
109
|
+
if (!isScreenSharingEnabledInCall || !CanDeviceScreenShare) {
|
|
110
|
+
return null;
|
|
112
111
|
}
|
|
113
112
|
return /*#__PURE__*/_react.default.createElement(_CallControlsButton.CallControlsButton, {
|
|
114
113
|
disabled: !isScreenSharingAccessRequestEnabled,
|
|
115
114
|
onPress: onPress,
|
|
116
|
-
color: colors.static_white,
|
|
115
|
+
color: hasPublishedScreenShare ? colors.error : colors.static_white,
|
|
117
116
|
style: {
|
|
118
|
-
container:
|
|
119
|
-
svgContainer:
|
|
117
|
+
container: screenShareToggleButton.container,
|
|
118
|
+
svgContainer: screenShareToggleButton.svgContainer
|
|
120
119
|
}
|
|
121
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
120
|
+
}, hasPublishedScreenShare ? /*#__PURE__*/_react.default.createElement(_StopScreenShare.StopScreenShare, {
|
|
121
|
+
color: colors.static_black
|
|
122
|
+
}) : /*#__PURE__*/_react.default.createElement(_ScreenShare.ScreenShare, {
|
|
122
123
|
color: colors.static_black
|
|
123
124
|
}), _reactNative.Platform.OS === 'ios' && /*#__PURE__*/_react.default.createElement(_reactNativeWebrtc.ScreenCapturePickerView, {
|
|
124
|
-
ref:
|
|
125
|
+
ref: screenCapturePickerViewiOSRef
|
|
125
126
|
}));
|
|
126
127
|
};
|
|
127
|
-
exports.
|
|
128
|
-
//# sourceMappingURL=
|
|
128
|
+
exports.ScreenShareToggleButton = ScreenShareToggleButton;
|
|
129
|
+
//# sourceMappingURL=ScreenShareToggleButton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_reactNativeWebrtc","_ScreenShare","_StopScreenShare","_CallControlsButton","_ThemeContext","_videoReactBindings","_useIsIosScreenshareBroadcastStarted","_videoClient","_usePrevious","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","CanDeviceScreenShare","Platform","OS","Number","parseInt","Version","split","ScreenShareToggleButton","onScreenShareStartedHandler","onScreenShareStoppedHandler","theme","colors","screenShareToggleButton","useTheme","useCall","useLocalParticipant","useCallSettings","useCallStateHooks","callSettings","isScreenSharingEnabledInCall","screensharing","enabled","isScreenSharingAccessRequestEnabled","access_request_enabled","onScreenShareStartedHandlerRef","useRef","current","onScreenShareStoppedHandlerRef","iosScreenShareStartedFromSystem","useIsIosScreenshareBroadcastStarted","prevIosScreenShareStartedFromSystem","usePrevious","localParticipant","hasPublishedScreenShare","publishedTracks","includes","SfuModels","TrackType","SCREEN_SHARE","useEffect","run","_onScreenShareStarted","media","navigator","mediaDevices","getDisplayMedia","deviceId","video","audio","publishScreenShareStream","_onScreenShareStopped","stopPublish","screenCapturePickerViewiOSRef","React","onPress","reactTag","findNodeHandle","NativeModules","ScreenCapturePickerViewManager","show","e","createElement","CallControlsButton","disabled","color","error","static_white","style","container","svgContainer","StopScreenShare","static_black","ScreenShare","ScreenCapturePickerView","ref","exports"],"sourceRoot":"../../../../../src","sources":["components/Call/CallControls/ScreenShareToggleButton.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,kBAAA,GAAAF,OAAA;AACA,IAAAG,YAAA,GAAAH,OAAA;AACA,IAAAI,gBAAA,GAAAJ,OAAA;AACA,IAAAK,mBAAA,GAAAL,OAAA;AACA,IAAAM,aAAA,GAAAN,OAAA;AACA,IAAAO,mBAAA,GAAAP,OAAA;AACA,I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tBpE,MAAA,CAAAoB,OAAA,CAAA4E,aAAA,CAAC1F,gBAAA,CAAAmG,eAAe;IAACN,KAAK,EAAErD,MAAM,CAAC4D;EAAa,CAAE,CAAC,gBAE/C1G,MAAA,CAAAoB,OAAA,CAAA4E,aAAA,CAAC3F,YAAA,CAAAsG,WAAW;IAACR,KAAK,EAAErD,MAAM,CAAC4D;EAAa,CAAE,CAC3C,EACAtE,qBAAQ,CAACC,EAAE,KAAK,KAAK,iBACpBrC,MAAA,CAAAoB,OAAA,CAAA4E,aAAA,CAAC5F,kBAAA,CAAAwG,uBAAuB;IAACC,GAAG,EAAEtB;EAA8B,CAAE,CAE9C,CAAC;AAEzB,CAAC;AAACuB,OAAA,CAAApE,uBAAA,GAAAA,uBAAA"}
|
|
@@ -157,14 +157,14 @@ Object.keys(_OutgoingCallControls).forEach(function (key) {
|
|
|
157
157
|
}
|
|
158
158
|
});
|
|
159
159
|
});
|
|
160
|
-
var
|
|
161
|
-
Object.keys(
|
|
160
|
+
var _ScreenShareToggleButton = require("./ScreenShareToggleButton");
|
|
161
|
+
Object.keys(_ScreenShareToggleButton).forEach(function (key) {
|
|
162
162
|
if (key === "default" || key === "__esModule") return;
|
|
163
|
-
if (key in exports && exports[key] ===
|
|
163
|
+
if (key in exports && exports[key] === _ScreenShareToggleButton[key]) return;
|
|
164
164
|
Object.defineProperty(exports, key, {
|
|
165
165
|
enumerable: true,
|
|
166
166
|
get: function () {
|
|
167
|
-
return
|
|
167
|
+
return _ScreenShareToggleButton[key];
|
|
168
168
|
}
|
|
169
169
|
});
|
|
170
170
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_AcceptCallButton","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_RejectCallButton","_HangupCallButton","_ToggleAudioPreviewButton","_ToggleVideoPreviewButton","_ToggleAudioPublishingButton","_ToggleVideoPublishingButton","_ToggleCameraFaceButton","_ChatButton","_ReactionsButton","_CallControls","_LobbyControls","_IncomingCallControls","_OutgoingCallControls","
|
|
1
|
+
{"version":3,"names":["_AcceptCallButton","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_RejectCallButton","_HangupCallButton","_ToggleAudioPreviewButton","_ToggleVideoPreviewButton","_ToggleAudioPublishingButton","_ToggleVideoPublishingButton","_ToggleCameraFaceButton","_ChatButton","_ReactionsButton","_CallControls","_LobbyControls","_IncomingCallControls","_OutgoingCallControls","_ScreenShareToggleButton"],"sourceRoot":"../../../../../src","sources":["components/Call/CallControls/index.tsx"],"mappings":";;;;;AAAA,IAAAA,iBAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,iBAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,iBAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,iBAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,iBAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,iBAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,iBAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAC,iBAAA,CAAAL,GAAA;IAAA;EAAA;AAAA;AACA,IAAAM,iBAAA,GAAAV,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAQ,iBAAA,EAAAP,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,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AAhB,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAY,qBAAA,CAAAhB,GAAA;IAAA;EAAA;AAAA;AACA,IAAAiB,qBAAA,GAAArB,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAmB,qBAAA,EAAAlB,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAiB,qBAAA,CAAAjB,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAa,qBAAA,CAAAjB,GAAA;IAAA;EAAA;AAAA;AACA,IAAAkB,wBAAA,GAAAtB,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAoB,wBAAA,EAAAnB,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAkB,wBAAA,CAAAlB,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAc,wBAAA,CAAAlB,GAAA;IAAA;EAAA;AAAA"}
|
|
@@ -33,6 +33,7 @@ const CallParticipantsSpotlight = ({
|
|
|
33
33
|
ParticipantReaction,
|
|
34
34
|
ParticipantVideoFallback,
|
|
35
35
|
ParticipantView = _Participant.ParticipantView,
|
|
36
|
+
ScreenShareOverlay,
|
|
36
37
|
VideoRenderer,
|
|
37
38
|
supportedReactions,
|
|
38
39
|
landscape
|
|
@@ -76,12 +77,13 @@ const CallParticipantsSpotlight = ({
|
|
|
76
77
|
style: [styles.container, landscapeStyles, {
|
|
77
78
|
backgroundColor: colors.dark_gray
|
|
78
79
|
}, callParticipantsSpotlight.container]
|
|
79
|
-
}, participantInSpotlight && ParticipantView && /*#__PURE__*/_react.default.createElement(ParticipantView, _extends({
|
|
80
|
+
}, participantInSpotlight && ParticipantView && (ScreenShareOverlay ? /*#__PURE__*/_react.default.createElement(ScreenShareOverlay, null) : /*#__PURE__*/_react.default.createElement(ParticipantView, _extends({
|
|
80
81
|
participant: participantInSpotlight,
|
|
81
82
|
style: isUserAloneInCall ? [styles.fullScreenSpotlightContainer, callParticipantsSpotlight.fullScreenSpotlightContainer] : [styles.spotlightContainer, spotlightContainerLandscapeStyles, callParticipantsSpotlight.spotlightContainer],
|
|
83
|
+
objectFit: isScreenShareOnSpotlight ? 'contain' : 'cover',
|
|
82
84
|
trackType: isScreenShareOnSpotlight ? 'screenShareTrack' : 'videoTrack',
|
|
83
85
|
supportedReactions: supportedReactions
|
|
84
|
-
}, participantViewProps)), !isInPiP && !isUserAloneInCall && /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
86
|
+
}, participantViewProps))), !isInPiP && !isUserAloneInCall && /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
85
87
|
style: [styles.callParticipantsListContainer, callParticipantsSpotlight.callParticipantsListContainer]
|
|
86
88
|
}, CallParticipantsList && /*#__PURE__*/_react.default.createElement(CallParticipantsList, _extends({
|
|
87
89
|
participants: isScreenShareOnSpotlight ? allParticipants : otherParticipants,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_videoClient","_videoReactBindings","_reactNative","_useDebouncedValue","_TestIds","_CallParticipantsList","_Participant","_ThemeContext","_hooks","obj","__esModule","default","_extends","Object","assign","bind","target","i","arguments","length","source","key","prototype","hasOwnProperty","call","apply","hasScreenShare","p","publishedTracks","includes","SfuModels","TrackType","SCREEN_SHARE","CallParticipantsSpotlight","CallParticipantsList","DefaultCallParticipantsList","ParticipantLabel","ParticipantNetworkQualityIndicator","ParticipantReaction","ParticipantVideoFallback","ParticipantView","DefaultParticipantView","VideoRenderer","supportedReactions","landscape","theme","colors","callParticipantsSpotlight","useTheme","useParticipants","useCallStateHooks","_allParticipants","sortBy","speakerLayoutSortPreset","allParticipants","useDebouncedValue","participantInSpotlight","otherParticipants","isScreenShareOnSpotlight","isUserAloneInCall","isInPiP","useIsInPiPMode","participantViewProps","callParticipantsListProps","landscapeStyles","flexDirection","spotlightContainerLandscapeStyles","marginHorizontal","createElement","View","testID","ComponentTestIds","CALL_PARTICIPANTS_SPOTLIGHT","style","styles","container","backgroundColor","dark_gray","participant","fullScreenSpotlightContainer","spotlightContainer","trackType","callParticipantsListContainer","participants","horizontal","numberOfColumns","exports","StyleSheet","create","flex","overflow","borderRadius"],"sourceRoot":"../../../../../src","sources":["components/Call/CallLayout/CallParticipantsSpotlight.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAKA,IAAAE,mBAAA,GAAAF,OAAA;AACA,IAAAG,YAAA,GAAAH,OAAA;AACA,IAAAI,kBAAA,GAAAJ,OAAA;AACA,IAAAK,QAAA,GAAAL,OAAA;AACA,IAAAM,qBAAA,GAAAN,OAAA;AAIA,IAAAO,YAAA,GAAAP,OAAA;AAIA,IAAAQ,aAAA,GAAAR,OAAA;AAEA,IAAAS,MAAA,GAAAT,OAAA;AAAgD,SAAAD,uBAAAW,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAAA,SAAAG,SAAA,IAAAA,QAAA,GAAAC,MAAA,CAAAC,MAAA,GAAAD,MAAA,CAAAC,MAAA,CAAAC,IAAA,eAAAC,MAAA,aAAAC,CAAA,MAAAA,CAAA,GAAAC,SAAA,CAAAC,MAAA,EAAAF,CAAA,UAAAG,MAAA,GAAAF,SAAA,CAAAD,CAAA,YAAAI,GAAA,IAAAD,MAAA,QAAAP,MAAA,CAAAS,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAJ,MAAA,EAAAC,GAAA,KAAAL,MAAA,CAAAK,GAAA,IAAAD,MAAA,CAAAC,GAAA,gBAAAL,MAAA,YAAAJ,QAAA,CAAAa,KAAA,OAAAP,SAAA;AAEhD;AACA;AACA;;
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_videoClient","_videoReactBindings","_reactNative","_useDebouncedValue","_TestIds","_CallParticipantsList","_Participant","_ThemeContext","_hooks","obj","__esModule","default","_extends","Object","assign","bind","target","i","arguments","length","source","key","prototype","hasOwnProperty","call","apply","hasScreenShare","p","publishedTracks","includes","SfuModels","TrackType","SCREEN_SHARE","CallParticipantsSpotlight","CallParticipantsList","DefaultCallParticipantsList","ParticipantLabel","ParticipantNetworkQualityIndicator","ParticipantReaction","ParticipantVideoFallback","ParticipantView","DefaultParticipantView","ScreenShareOverlay","VideoRenderer","supportedReactions","landscape","theme","colors","callParticipantsSpotlight","useTheme","useParticipants","useCallStateHooks","_allParticipants","sortBy","speakerLayoutSortPreset","allParticipants","useDebouncedValue","participantInSpotlight","otherParticipants","isScreenShareOnSpotlight","isUserAloneInCall","isInPiP","useIsInPiPMode","participantViewProps","callParticipantsListProps","landscapeStyles","flexDirection","spotlightContainerLandscapeStyles","marginHorizontal","createElement","View","testID","ComponentTestIds","CALL_PARTICIPANTS_SPOTLIGHT","style","styles","container","backgroundColor","dark_gray","participant","fullScreenSpotlightContainer","spotlightContainer","objectFit","trackType","callParticipantsListContainer","participants","horizontal","numberOfColumns","exports","StyleSheet","create","flex","overflow","borderRadius"],"sourceRoot":"../../../../../src","sources":["components/Call/CallLayout/CallParticipantsSpotlight.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAKA,IAAAE,mBAAA,GAAAF,OAAA;AACA,IAAAG,YAAA,GAAAH,OAAA;AACA,IAAAI,kBAAA,GAAAJ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BAAkB,EAAE;IAClBU,IAAI,EAAE,CAAC;IACPC,QAAQ,EAAE,QAAQ;IAClBC,YAAY,EAAE,EAAE;IAChBzB,gBAAgB,EAAE;EACpB,CAAC;EACDgB,6BAA6B,EAAE;IAC7BO,IAAI,EAAE;EACR;AACF,CAAC,CAAC"}
|
|
@@ -11,6 +11,11 @@ var _contexts = require("../../../contexts");
|
|
|
11
11
|
var _HostLivestreamTopView = require("../LivestreamTopView/HostLivestreamTopView");
|
|
12
12
|
var _HostLivestreamControls = require("../LivestreamControls/HostLivestreamControls");
|
|
13
13
|
var _LivestreamLayout = require("../LivestreamLayout");
|
|
14
|
+
var _constants = require("../../../constants");
|
|
15
|
+
var _FloatingParticipantView = require("../../Participant/FloatingParticipantView");
|
|
16
|
+
var _videoReactBindings = require("@stream-io/video-react-bindings");
|
|
17
|
+
var _videoClient = require("@stream-io/video-client");
|
|
18
|
+
var _ScreenShareOverlay = require("../../utility/ScreenShareOverlay");
|
|
14
19
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
20
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
16
21
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
@@ -18,6 +23,8 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
18
23
|
* Props for the HostLivestream component.
|
|
19
24
|
*/
|
|
20
25
|
|
|
26
|
+
const hasVideoTrack = p => p === null || p === void 0 ? void 0 : p.publishedTracks.includes(_videoClient.SfuModels.TrackType.VIDEO);
|
|
27
|
+
|
|
21
28
|
/**
|
|
22
29
|
* The HostLivestream component displays the UI for the Host's live stream.
|
|
23
30
|
*/
|
|
@@ -25,6 +32,8 @@ const HostLivestream = ({
|
|
|
25
32
|
HostLivestreamTopView = _HostLivestreamTopView.HostLivestreamTopView,
|
|
26
33
|
HostLivestreamControls = _HostLivestreamControls.HostLivestreamControls,
|
|
27
34
|
LivestreamLayout = _LivestreamLayout.LivestreamLayout,
|
|
35
|
+
FloatingParticipantView = _FloatingParticipantView.FloatingParticipantView,
|
|
36
|
+
ScreenShareOverlay = _ScreenShareOverlay.ScreenShareOverlay,
|
|
28
37
|
LiveIndicator,
|
|
29
38
|
FollowerCount,
|
|
30
39
|
DurationBadge,
|
|
@@ -32,7 +41,8 @@ const HostLivestream = ({
|
|
|
32
41
|
LivestreamMediaControls,
|
|
33
42
|
onEndStreamHandler,
|
|
34
43
|
onStartStreamHandler,
|
|
35
|
-
hls = false
|
|
44
|
+
hls = false,
|
|
45
|
+
stopPublishedStreamsOnEndStream = true
|
|
36
46
|
}) => {
|
|
37
47
|
const {
|
|
38
48
|
theme: {
|
|
@@ -40,6 +50,13 @@ const HostLivestream = ({
|
|
|
40
50
|
hostLivestream
|
|
41
51
|
}
|
|
42
52
|
} = (0, _contexts.useTheme)();
|
|
53
|
+
const {
|
|
54
|
+
useParticipants,
|
|
55
|
+
useHasOngoingScreenShare
|
|
56
|
+
} = (0, _videoReactBindings.useCallStateHooks)();
|
|
57
|
+
const [currentSpeaker] = useParticipants();
|
|
58
|
+
const hasOngoingScreenShare = useHasOngoingScreenShare();
|
|
59
|
+
const floatingParticipant = hasOngoingScreenShare && hasVideoTrack(currentSpeaker) && currentSpeaker;
|
|
43
60
|
|
|
44
61
|
// Automatically route audio to speaker devices as relevant for watching videos.
|
|
45
62
|
(0, _react.useEffect)(() => {
|
|
@@ -48,27 +65,63 @@ const HostLivestream = ({
|
|
|
48
65
|
});
|
|
49
66
|
return () => _reactNativeIncallManager.default.stop();
|
|
50
67
|
}, []);
|
|
68
|
+
const [topViewHeight, setTopViewHeight] = _react.default.useState();
|
|
69
|
+
const [controlsHeight, setControlsHeight] = _react.default.useState();
|
|
51
70
|
const topViewProps = {
|
|
52
71
|
LiveIndicator,
|
|
53
72
|
FollowerCount,
|
|
54
|
-
DurationBadge
|
|
73
|
+
DurationBadge,
|
|
74
|
+
onLayout: event => {
|
|
75
|
+
setTopViewHeight(event.nativeEvent.layout.height);
|
|
76
|
+
}
|
|
55
77
|
};
|
|
56
|
-
return /*#__PURE__*/_react.default.createElement(_reactNative.
|
|
78
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
57
79
|
style: [styles.container, {
|
|
58
|
-
backgroundColor: colors.
|
|
80
|
+
backgroundColor: colors.dark_gray
|
|
59
81
|
}, hostLivestream.container]
|
|
60
|
-
}, HostLivestreamTopView && /*#__PURE__*/_react.default.createElement(
|
|
82
|
+
}, HostLivestreamTopView && /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
83
|
+
style: styles.topViewContainer,
|
|
84
|
+
onLayout: event => {
|
|
85
|
+
setTopViewHeight(event.nativeEvent.layout.height);
|
|
86
|
+
}
|
|
87
|
+
}, /*#__PURE__*/_react.default.createElement(HostLivestreamTopView, topViewProps)), FloatingParticipantView && floatingParticipant && topViewHeight && controlsHeight && /*#__PURE__*/_react.default.createElement(FloatingParticipantView, {
|
|
88
|
+
participant: floatingParticipant,
|
|
89
|
+
draggableContainerStyle: [_reactNative.StyleSheet.absoluteFill, {
|
|
90
|
+
top: topViewHeight,
|
|
91
|
+
bottom: controlsHeight
|
|
92
|
+
}]
|
|
93
|
+
}), LivestreamLayout && /*#__PURE__*/_react.default.createElement(LivestreamLayout, {
|
|
94
|
+
ScreenShareOverlay: ScreenShareOverlay
|
|
95
|
+
}), HostLivestreamControls && /*#__PURE__*/_react.default.createElement(HostLivestreamControls, {
|
|
61
96
|
onEndStreamHandler: onEndStreamHandler,
|
|
62
97
|
onStartStreamHandler: onStartStreamHandler,
|
|
63
98
|
HostStartStreamButton: HostStartStreamButton,
|
|
64
99
|
LivestreamMediaControls: LivestreamMediaControls,
|
|
65
|
-
hls: hls
|
|
100
|
+
hls: hls,
|
|
101
|
+
onLayout: event => {
|
|
102
|
+
setControlsHeight(event.nativeEvent.layout.height);
|
|
103
|
+
},
|
|
104
|
+
stopPublishedStreamsOnEndStream: stopPublishedStreamsOnEndStream
|
|
66
105
|
}));
|
|
67
106
|
};
|
|
68
107
|
exports.HostLivestream = HostLivestream;
|
|
69
108
|
const styles = _reactNative.StyleSheet.create({
|
|
70
109
|
container: {
|
|
71
110
|
flex: 1
|
|
111
|
+
},
|
|
112
|
+
topViewContainer: {
|
|
113
|
+
position: 'absolute',
|
|
114
|
+
top: 0,
|
|
115
|
+
left: 0,
|
|
116
|
+
right: 0,
|
|
117
|
+
zIndex: _constants.Z_INDEX.IN_FRONT
|
|
118
|
+
},
|
|
119
|
+
controlsViewContainer: {
|
|
120
|
+
position: 'absolute',
|
|
121
|
+
bottom: 0,
|
|
122
|
+
left: 0,
|
|
123
|
+
right: 0,
|
|
124
|
+
zIndex: _constants.Z_INDEX.IN_FRONT
|
|
72
125
|
}
|
|
73
126
|
});
|
|
74
127
|
//# sourceMappingURL=HostLivestream.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_reactNativeIncallManager","_interopRequireDefault","_contexts","_HostLivestreamTopView","_HostLivestreamControls","_LivestreamLayout","obj","__esModule","default","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","HostLivestream","HostLivestreamTopView","DefaultHostLivestreamTopView","HostLivestreamControls","DefaultHostLivestreamControls","LivestreamLayout","DefaultLivestreamLayout","LiveIndicator","FollowerCount","DurationBadge","HostStartStreamButton","LivestreamMediaControls","onEndStreamHandler","onStartStreamHandler","hls","theme","colors","hostLivestream","useTheme","useEffect","InCallManager","start","media","stop","topViewProps","createElement","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_reactNativeIncallManager","_interopRequireDefault","_contexts","_HostLivestreamTopView","_HostLivestreamControls","_LivestreamLayout","_constants","_FloatingParticipantView","_videoReactBindings","_videoClient","_ScreenShareOverlay","obj","__esModule","default","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","hasVideoTrack","p","publishedTracks","includes","SfuModels","TrackType","VIDEO","HostLivestream","HostLivestreamTopView","DefaultHostLivestreamTopView","HostLivestreamControls","DefaultHostLivestreamControls","LivestreamLayout","DefaultLivestreamLayout","FloatingParticipantView","DefaultFloatingParticipantView","ScreenShareOverlay","DefaultScreenShaerOverlay","LiveIndicator","FollowerCount","DurationBadge","HostStartStreamButton","LivestreamMediaControls","onEndStreamHandler","onStartStreamHandler","hls","stopPublishedStreamsOnEndStream","theme","colors","hostLivestream","useTheme","useParticipants","useHasOngoingScreenShare","useCallStateHooks","currentSpeaker","hasOngoingScreenShare","floatingParticipant","useEffect","InCallManager","start","media","stop","topViewHeight","setTopViewHeight","React","useState","controlsHeight","setControlsHeight","topViewProps","onLayout","event","nativeEvent","layout","height","createElement","View","style","styles","container","backgroundColor","dark_gray","topViewContainer","participant","draggableContainerStyle","StyleSheet","absoluteFill","top","bottom","exports","create","flex","position","left","right","zIndex","Z_INDEX","IN_FRONT","controlsViewContainer"],"sourceRoot":"../../../../../src","sources":["components/Livestream/HostLivestream/HostLivestream.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,yBAAA,GAAAC,sBAAA,CAAAH,OAAA;AAEA,IAAAI,SAAA,GAAAJ,OAAA;AACA,IAAAK,sBAAA,GAAAL,OAAA;AAIA,IAAAM,uBAAA,GAAAN,OAAA;AAIA,IAAAO,iBAAA,GAAAP,OAAA;AAIA,IAAAQ,UAAA,GAAAR,OAAA;AACA,IAAAS,wBAAA,GAAAT,OAAA;AAIA,IAAAU,mBAAA,GAAAV,OAAA;AACA,IAAAW,YAAA,GAAAX,OAAA;AACA,IAAAY,mBAAA,GAAAZ,OAAA;AAG0C,SAAAG,uBAAAU,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAAA,SAAAG,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAlB,wBAAAc,GAAA,EAAAI,WAAA,SAAAA,WAAA,IAAAJ,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,QAAAA,GAAA,oBAAAA,GAAA,wBAAAA,GAAA,4BAAAE,OAAA,EAAAF,GAAA,UAAAQ,KAAA,GAAAL,wBAAA,CAAAC,WAAA,OAAAI,KAAA,IAAAA,KAAA,CAAAC,GAAA,CAAAT,GAAA,YAAAQ,KAAA,CAAAE,GAAA,CAAAV,GAAA,SAAAW,MAAA,WAAAC,qBAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAA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,EAAE,CAAC;IACPC,KAAK,EAAE,CAAC;IACRC,MAAM,EAAEC,kBAAO,CAACC;EAClB;AACF,CAAC,CAAC"}
|
|
@@ -23,7 +23,9 @@ const HostLivestreamControls = ({
|
|
|
23
23
|
LivestreamMediaControls = _LivestreamMediaControls.LivestreamMediaControls,
|
|
24
24
|
onEndStreamHandler,
|
|
25
25
|
onStartStreamHandler,
|
|
26
|
-
hls = false
|
|
26
|
+
hls = false,
|
|
27
|
+
stopPublishedStreamsOnEndStream,
|
|
28
|
+
onLayout
|
|
27
29
|
}) => {
|
|
28
30
|
const {
|
|
29
31
|
theme: {
|
|
@@ -34,13 +36,15 @@ const HostLivestreamControls = ({
|
|
|
34
36
|
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
35
37
|
style: [styles.container, {
|
|
36
38
|
backgroundColor: colors.static_overlay
|
|
37
|
-
}, hostLivestreamControls.container]
|
|
39
|
+
}, hostLivestreamControls.container],
|
|
40
|
+
onLayout: onLayout
|
|
38
41
|
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
39
42
|
style: [styles.leftElement, hostLivestreamControls.leftElement]
|
|
40
43
|
}, HostStartStreamButton && /*#__PURE__*/_react.default.createElement(HostStartStreamButton, {
|
|
41
44
|
onEndStreamHandler: onEndStreamHandler,
|
|
42
45
|
onStartStreamHandler: onStartStreamHandler,
|
|
43
|
-
hls: hls
|
|
46
|
+
hls: hls,
|
|
47
|
+
stopPublishedStreamsOnEndStream: stopPublishedStreamsOnEndStream
|
|
44
48
|
})), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
45
49
|
style: [styles.rightElement, hostLivestreamControls.rightElement]
|
|
46
50
|
}, LivestreamMediaControls && /*#__PURE__*/_react.default.createElement(LivestreamMediaControls, null)));
|
package/dist/commonjs/components/Livestream/LivestreamControls/HostLivestreamControls.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_HostStartStreamButton","_LivestreamMediaControls","_contexts","_constants","obj","__esModule","default","HostLivestreamControls","HostStartStreamButton","DefaultHostStartStreamButton","LivestreamMediaControls","DefaultLivestreamMediaControls","onEndStreamHandler","onStartStreamHandler","hls","theme","colors","hostLivestreamControls","useTheme","createElement","View","style","styles","container","backgroundColor","static_overlay","leftElement","rightElement","exports","StyleSheet","create","position","bottom","flexDirection","alignItems","paddingVertical","paddingHorizontal","zIndex","Z_INDEX","IN_FRONT","flex"],"sourceRoot":"../../../../../src","sources":["components/Livestream/LivestreamControls/HostLivestreamControls.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,sBAAA,GAAAF,OAAA;AAIA,IAAAG,wBAAA,GAAAH,OAAA;AAIA,IAAAI,SAAA,GAAAJ,OAAA;AACA,IAAAK,UAAA,GAAAL,OAAA;AAA6C,SAAAD,uBAAAO,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAE7C;AACA;AACA;;
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_HostStartStreamButton","_LivestreamMediaControls","_contexts","_constants","obj","__esModule","default","HostLivestreamControls","HostStartStreamButton","DefaultHostStartStreamButton","LivestreamMediaControls","DefaultLivestreamMediaControls","onEndStreamHandler","onStartStreamHandler","hls","stopPublishedStreamsOnEndStream","onLayout","theme","colors","hostLivestreamControls","useTheme","createElement","View","style","styles","container","backgroundColor","static_overlay","leftElement","rightElement","exports","StyleSheet","create","position","bottom","flexDirection","alignItems","paddingVertical","paddingHorizontal","zIndex","Z_INDEX","IN_FRONT","flex"],"sourceRoot":"../../../../../src","sources":["components/Livestream/LivestreamControls/HostLivestreamControls.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD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