@stream-io/video-react-native-sdk 0.1.9 → 0.1.11
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 +18 -0
- package/README.md +5 -4
- package/dist/commonjs/components/Call/CallContent/CallContent.js +1 -1
- package/dist/commonjs/components/Call/CallContent/CallContent.js.map +1 -1
- package/dist/commonjs/components/Livestream/HostLivestream/HostLivestream.js +71 -0
- package/dist/commonjs/components/Livestream/HostLivestream/HostLivestream.js.map +1 -0
- package/dist/commonjs/components/Livestream/HostLivestream/index.js +17 -0
- package/dist/commonjs/components/Livestream/HostLivestream/index.js.map +1 -0
- package/dist/commonjs/components/Livestream/LivestreamControls/HostLivestreamControls.js +69 -0
- package/dist/commonjs/components/Livestream/LivestreamControls/HostLivestreamControls.js.map +1 -0
- package/dist/commonjs/components/Livestream/LivestreamControls/HostStartStreamButton.js +113 -0
- package/dist/commonjs/components/Livestream/LivestreamControls/HostStartStreamButton.js.map +1 -0
- package/dist/commonjs/components/Livestream/LivestreamControls/LivestreamAudioControlButton.js +70 -0
- package/dist/commonjs/components/Livestream/LivestreamControls/LivestreamAudioControlButton.js.map +1 -0
- package/dist/commonjs/components/Livestream/LivestreamControls/LivestreamMediaControls.js +38 -0
- package/dist/commonjs/components/Livestream/LivestreamControls/LivestreamMediaControls.js.map +1 -0
- package/dist/commonjs/components/Livestream/LivestreamControls/LivestreamVideoControlButton.js +70 -0
- package/dist/commonjs/components/Livestream/LivestreamControls/LivestreamVideoControlButton.js.map +1 -0
- package/dist/commonjs/components/Livestream/LivestreamControls/ViewerLeaveStreamButton.js +83 -0
- package/dist/commonjs/components/Livestream/LivestreamControls/ViewerLeaveStreamButton.js.map +1 -0
- package/dist/commonjs/components/Livestream/LivestreamControls/ViewerLivestreamControls.js +64 -0
- package/dist/commonjs/components/Livestream/LivestreamControls/ViewerLivestreamControls.js.map +1 -0
- package/dist/commonjs/components/Livestream/LivestreamControls/index.js +61 -0
- package/dist/commonjs/components/Livestream/LivestreamControls/index.js.map +1 -0
- package/dist/commonjs/components/Livestream/LivestreamLayout/LivestreamLayout.js +65 -0
- package/dist/commonjs/components/Livestream/LivestreamLayout/LivestreamLayout.js.map +1 -0
- package/dist/commonjs/components/Livestream/LivestreamLayout/index.js +17 -0
- package/dist/commonjs/components/Livestream/LivestreamLayout/index.js.map +1 -0
- package/dist/commonjs/components/Livestream/LivestreamTopView/DurationBadge.js +144 -0
- package/dist/commonjs/components/Livestream/LivestreamTopView/DurationBadge.js.map +1 -0
- package/dist/commonjs/components/Livestream/LivestreamTopView/FollowerCount.js +71 -0
- package/dist/commonjs/components/Livestream/LivestreamTopView/FollowerCount.js.map +1 -0
- package/dist/commonjs/components/Livestream/LivestreamTopView/HostLivestreamTopView.js +87 -0
- package/dist/commonjs/components/Livestream/LivestreamTopView/HostLivestreamTopView.js.map +1 -0
- package/dist/commonjs/components/Livestream/LivestreamTopView/LiveIndicator.js +55 -0
- package/dist/commonjs/components/Livestream/LivestreamTopView/LiveIndicator.js.map +1 -0
- package/dist/commonjs/components/Livestream/LivestreamTopView/ViewerLivestreamTopView.js +80 -0
- package/dist/commonjs/components/Livestream/LivestreamTopView/ViewerLivestreamTopView.js.map +1 -0
- package/dist/commonjs/components/Livestream/LivestreamTopView/index.js +50 -0
- package/dist/commonjs/components/Livestream/LivestreamTopView/index.js.map +1 -0
- package/dist/commonjs/components/Livestream/ViewerLivestream/ViewerLivestream.js +88 -0
- package/dist/commonjs/components/Livestream/ViewerLivestream/ViewerLivestream.js.map +1 -0
- package/dist/commonjs/components/Livestream/ViewerLivestream/index.js +17 -0
- package/dist/commonjs/components/Livestream/ViewerLivestream/index.js.map +1 -0
- package/dist/commonjs/components/Livestream/index.js +61 -0
- package/dist/commonjs/components/Livestream/index.js.map +1 -0
- package/dist/commonjs/components/index.js +11 -0
- package/dist/commonjs/components/index.js.map +1 -1
- package/dist/commonjs/hooks/usePaginatedLayoutSortPreset.js +26 -0
- package/dist/commonjs/hooks/usePaginatedLayoutSortPreset.js.map +1 -0
- package/dist/commonjs/icons/EndStreamIcon.js +20 -0
- package/dist/commonjs/icons/EndStreamIcon.js.map +1 -0
- package/dist/commonjs/icons/Eye.js +20 -0
- package/dist/commonjs/icons/Eye.js.map +1 -0
- package/dist/commonjs/icons/LeaveStreamIcon.js +20 -0
- package/dist/commonjs/icons/LeaveStreamIcon.js.map +1 -0
- package/dist/commonjs/icons/ShieldBadge.js +20 -0
- package/dist/commonjs/icons/ShieldBadge.js.map +1 -0
- package/dist/commonjs/icons/StartStreamIcon.js +20 -0
- package/dist/commonjs/icons/StartStreamIcon.js.map +1 -0
- package/dist/commonjs/icons/index.js +55 -0
- package/dist/commonjs/icons/index.js.map +1 -1
- package/dist/commonjs/theme/theme.js +70 -0
- package/dist/commonjs/theme/theme.js.map +1 -1
- package/dist/commonjs/translations/en.json +6 -1
- package/dist/commonjs/version.js +1 -1
- package/dist/commonjs/version.js.map +1 -1
- package/dist/module/components/Call/CallContent/CallContent.js +1 -1
- package/dist/module/components/Call/CallContent/CallContent.js.map +1 -1
- package/dist/module/components/Livestream/HostLivestream/HostLivestream.js +64 -0
- package/dist/module/components/Livestream/HostLivestream/HostLivestream.js.map +1 -0
- package/dist/module/components/Livestream/HostLivestream/index.js +2 -0
- package/dist/module/components/Livestream/HostLivestream/index.js.map +1 -0
- package/dist/module/components/Livestream/LivestreamControls/HostLivestreamControls.js +62 -0
- package/dist/module/components/Livestream/LivestreamControls/HostLivestreamControls.js.map +1 -0
- package/dist/module/components/Livestream/LivestreamControls/HostStartStreamButton.js +105 -0
- package/dist/module/components/Livestream/LivestreamControls/HostStartStreamButton.js.map +1 -0
- package/dist/module/components/Livestream/LivestreamControls/LivestreamAudioControlButton.js +63 -0
- package/dist/module/components/Livestream/LivestreamControls/LivestreamAudioControlButton.js.map +1 -0
- package/dist/module/components/Livestream/LivestreamControls/LivestreamMediaControls.js +31 -0
- package/dist/module/components/Livestream/LivestreamControls/LivestreamMediaControls.js.map +1 -0
- package/dist/module/components/Livestream/LivestreamControls/LivestreamVideoControlButton.js +63 -0
- package/dist/module/components/Livestream/LivestreamControls/LivestreamVideoControlButton.js.map +1 -0
- package/dist/module/components/Livestream/LivestreamControls/ViewerLeaveStreamButton.js +75 -0
- package/dist/module/components/Livestream/LivestreamControls/ViewerLeaveStreamButton.js.map +1 -0
- package/dist/module/components/Livestream/LivestreamControls/ViewerLivestreamControls.js +57 -0
- package/dist/module/components/Livestream/LivestreamControls/ViewerLivestreamControls.js.map +1 -0
- package/dist/module/components/Livestream/LivestreamControls/index.js +6 -0
- package/dist/module/components/Livestream/LivestreamControls/index.js.map +1 -0
- package/dist/module/components/Livestream/LivestreamLayout/LivestreamLayout.js +58 -0
- package/dist/module/components/Livestream/LivestreamLayout/LivestreamLayout.js.map +1 -0
- package/dist/module/components/Livestream/LivestreamLayout/index.js +2 -0
- package/dist/module/components/Livestream/LivestreamLayout/index.js.map +1 -0
- package/dist/module/components/Livestream/LivestreamTopView/DurationBadge.js +136 -0
- package/dist/module/components/Livestream/LivestreamTopView/DurationBadge.js.map +1 -0
- package/dist/module/components/Livestream/LivestreamTopView/FollowerCount.js +64 -0
- package/dist/module/components/Livestream/LivestreamTopView/FollowerCount.js.map +1 -0
- package/dist/module/components/Livestream/LivestreamTopView/HostLivestreamTopView.js +80 -0
- package/dist/module/components/Livestream/LivestreamTopView/HostLivestreamTopView.js.map +1 -0
- package/dist/module/components/Livestream/LivestreamTopView/LiveIndicator.js +48 -0
- package/dist/module/components/Livestream/LivestreamTopView/LiveIndicator.js.map +1 -0
- package/dist/module/components/Livestream/LivestreamTopView/ViewerLivestreamTopView.js +73 -0
- package/dist/module/components/Livestream/LivestreamTopView/ViewerLivestreamTopView.js.map +1 -0
- package/dist/module/components/Livestream/LivestreamTopView/index.js +5 -0
- package/dist/module/components/Livestream/LivestreamTopView/index.js.map +1 -0
- package/dist/module/components/Livestream/ViewerLivestream/ViewerLivestream.js +81 -0
- package/dist/module/components/Livestream/ViewerLivestream/ViewerLivestream.js.map +1 -0
- package/dist/module/components/Livestream/ViewerLivestream/index.js +2 -0
- package/dist/module/components/Livestream/ViewerLivestream/index.js.map +1 -0
- package/dist/module/components/Livestream/index.js +6 -0
- package/dist/module/components/Livestream/index.js.map +1 -0
- package/dist/module/components/index.js +1 -0
- package/dist/module/components/index.js.map +1 -1
- package/dist/module/hooks/usePaginatedLayoutSortPreset.js +19 -0
- package/dist/module/hooks/usePaginatedLayoutSortPreset.js.map +1 -0
- package/dist/module/icons/EndStreamIcon.js +12 -0
- package/dist/module/icons/EndStreamIcon.js.map +1 -0
- package/dist/module/icons/Eye.js +12 -0
- package/dist/module/icons/Eye.js.map +1 -0
- package/dist/module/icons/LeaveStreamIcon.js +12 -0
- package/dist/module/icons/LeaveStreamIcon.js.map +1 -0
- package/dist/module/icons/ShieldBadge.js +12 -0
- package/dist/module/icons/ShieldBadge.js.map +1 -0
- package/dist/module/icons/StartStreamIcon.js +12 -0
- package/dist/module/icons/StartStreamIcon.js.map +1 -0
- package/dist/module/icons/index.js +5 -0
- package/dist/module/icons/index.js.map +1 -1
- package/dist/module/theme/theme.js +70 -0
- package/dist/module/theme/theme.js.map +1 -1
- package/dist/module/translations/en.json +6 -1
- package/dist/module/version.js +1 -1
- package/dist/module/version.js.map +1 -1
- package/dist/typescript/components/Livestream/HostLivestream/HostLivestream.d.ts +30 -0
- package/dist/typescript/components/Livestream/HostLivestream/HostLivestream.d.ts.map +1 -0
- package/dist/typescript/components/Livestream/HostLivestream/index.d.ts +2 -0
- package/dist/typescript/components/Livestream/HostLivestream/index.d.ts.map +1 -0
- package/dist/typescript/components/Livestream/LivestreamControls/HostLivestreamControls.d.ts +25 -0
- package/dist/typescript/components/Livestream/LivestreamControls/HostLivestreamControls.d.ts.map +1 -0
- package/dist/typescript/components/Livestream/LivestreamControls/HostStartStreamButton.d.ts +25 -0
- package/dist/typescript/components/Livestream/LivestreamControls/HostStartStreamButton.d.ts.map +1 -0
- package/dist/typescript/components/Livestream/LivestreamControls/LivestreamAudioControlButton.d.ts +6 -0
- package/dist/typescript/components/Livestream/LivestreamControls/LivestreamAudioControlButton.d.ts.map +1 -0
- package/dist/typescript/components/Livestream/LivestreamControls/LivestreamMediaControls.d.ts +10 -0
- package/dist/typescript/components/Livestream/LivestreamControls/LivestreamMediaControls.d.ts.map +1 -0
- package/dist/typescript/components/Livestream/LivestreamControls/LivestreamVideoControlButton.d.ts +6 -0
- package/dist/typescript/components/Livestream/LivestreamControls/LivestreamVideoControlButton.d.ts.map +1 -0
- package/dist/typescript/components/Livestream/LivestreamControls/ViewerLeaveStreamButton.d.ts +16 -0
- package/dist/typescript/components/Livestream/LivestreamControls/ViewerLeaveStreamButton.d.ts.map +1 -0
- package/dist/typescript/components/Livestream/LivestreamControls/ViewerLivestreamControls.d.ts +16 -0
- package/dist/typescript/components/Livestream/LivestreamControls/ViewerLivestreamControls.d.ts.map +1 -0
- package/dist/typescript/components/Livestream/LivestreamControls/index.d.ts +6 -0
- package/dist/typescript/components/Livestream/LivestreamControls/index.d.ts.map +1 -0
- package/dist/typescript/components/Livestream/LivestreamLayout/LivestreamLayout.d.ts +17 -0
- package/dist/typescript/components/Livestream/LivestreamLayout/LivestreamLayout.d.ts.map +1 -0
- package/dist/typescript/components/Livestream/LivestreamLayout/index.d.ts +2 -0
- package/dist/typescript/components/Livestream/LivestreamLayout/index.d.ts.map +1 -0
- package/dist/typescript/components/Livestream/LivestreamTopView/DurationBadge.d.ts +12 -0
- package/dist/typescript/components/Livestream/LivestreamTopView/DurationBadge.d.ts.map +1 -0
- package/dist/typescript/components/Livestream/LivestreamTopView/FollowerCount.d.ts +10 -0
- package/dist/typescript/components/Livestream/LivestreamTopView/FollowerCount.d.ts.map +1 -0
- package/dist/typescript/components/Livestream/LivestreamTopView/HostLivestreamTopView.d.ts +26 -0
- package/dist/typescript/components/Livestream/LivestreamTopView/HostLivestreamTopView.d.ts.map +1 -0
- package/dist/typescript/components/Livestream/LivestreamTopView/LiveIndicator.d.ts +10 -0
- package/dist/typescript/components/Livestream/LivestreamTopView/LiveIndicator.d.ts.map +1 -0
- package/dist/typescript/components/Livestream/LivestreamTopView/ViewerLivestreamTopView.d.ts +26 -0
- package/dist/typescript/components/Livestream/LivestreamTopView/ViewerLivestreamTopView.d.ts.map +1 -0
- package/dist/typescript/components/Livestream/LivestreamTopView/index.d.ts +5 -0
- package/dist/typescript/components/Livestream/LivestreamTopView/index.d.ts.map +1 -0
- package/dist/typescript/components/Livestream/ViewerLivestream/ViewerLivestream.d.ts +32 -0
- package/dist/typescript/components/Livestream/ViewerLivestream/ViewerLivestream.d.ts.map +1 -0
- package/dist/typescript/components/Livestream/ViewerLivestream/index.d.ts +2 -0
- package/dist/typescript/components/Livestream/ViewerLivestream/index.d.ts.map +1 -0
- package/dist/typescript/components/Livestream/index.d.ts +6 -0
- package/dist/typescript/components/Livestream/index.d.ts.map +1 -0
- package/dist/typescript/components/index.d.ts +1 -0
- package/dist/typescript/components/index.d.ts.map +1 -1
- package/dist/typescript/hooks/usePaginatedLayoutSortPreset.d.ts +3 -0
- package/dist/typescript/hooks/usePaginatedLayoutSortPreset.d.ts.map +1 -0
- package/dist/typescript/icons/EndStreamIcon.d.ts +3 -0
- package/dist/typescript/icons/EndStreamIcon.d.ts.map +1 -0
- package/dist/typescript/icons/Eye.d.ts +3 -0
- package/dist/typescript/icons/Eye.d.ts.map +1 -0
- package/dist/typescript/icons/LeaveStreamIcon.d.ts +3 -0
- package/dist/typescript/icons/LeaveStreamIcon.d.ts.map +1 -0
- package/dist/typescript/icons/ShieldBadge.d.ts +3 -0
- package/dist/typescript/icons/ShieldBadge.d.ts.map +1 -0
- package/dist/typescript/icons/StartStreamIcon.d.ts +3 -0
- package/dist/typescript/icons/StartStreamIcon.d.ts.map +1 -0
- package/dist/typescript/icons/index.d.ts +5 -0
- package/dist/typescript/icons/index.d.ts.map +1 -1
- package/dist/typescript/theme/theme.d.ts +70 -0
- package/dist/typescript/theme/theme.d.ts.map +1 -1
- package/dist/typescript/translations/index.d.ts +6 -1
- package/dist/typescript/translations/index.d.ts.map +1 -1
- package/dist/typescript/version.d.ts +1 -1
- package/dist/typescript/version.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/components/Call/CallContent/CallContent.tsx +1 -1
- package/src/components/Livestream/HostLivestream/HostLivestream.tsx +99 -0
- package/src/components/Livestream/HostLivestream/index.ts +1 -0
- package/src/components/Livestream/LivestreamControls/HostLivestreamControls.tsx +87 -0
- package/src/components/Livestream/LivestreamControls/HostStartStreamButton.tsx +163 -0
- package/src/components/Livestream/LivestreamControls/LivestreamAudioControlButton.tsx +78 -0
- package/src/components/Livestream/LivestreamControls/LivestreamMediaControls.tsx +32 -0
- package/src/components/Livestream/LivestreamControls/LivestreamVideoControlButton.tsx +78 -0
- package/src/components/Livestream/LivestreamControls/ViewerLeaveStreamButton.tsx +102 -0
- package/src/components/Livestream/LivestreamControls/ViewerLivestreamControls.tsx +75 -0
- package/src/components/Livestream/LivestreamControls/index.ts +5 -0
- package/src/components/Livestream/LivestreamLayout/LivestreamLayout.tsx +77 -0
- package/src/components/Livestream/LivestreamLayout/index.ts +1 -0
- package/src/components/Livestream/LivestreamTopView/DurationBadge.tsx +170 -0
- package/src/components/Livestream/LivestreamTopView/FollowerCount.tsx +74 -0
- package/src/components/Livestream/LivestreamTopView/HostLivestreamTopView.tsx +105 -0
- package/src/components/Livestream/LivestreamTopView/LiveIndicator.tsx +53 -0
- package/src/components/Livestream/LivestreamTopView/ViewerLivestreamTopView.tsx +102 -0
- package/src/components/Livestream/LivestreamTopView/index.ts +4 -0
- package/src/components/Livestream/ViewerLivestream/ViewerLivestream.tsx +126 -0
- package/src/components/Livestream/ViewerLivestream/index.ts +1 -0
- package/src/components/Livestream/index.ts +5 -0
- package/src/components/index.ts +1 -0
- package/src/hooks/usePaginatedLayoutSortPreset.ts +27 -0
- package/src/icons/EndStreamIcon.tsx +13 -0
- package/src/icons/Eye.tsx +13 -0
- package/src/icons/LeaveStreamIcon.tsx +13 -0
- package/src/icons/ShieldBadge.tsx +13 -0
- package/src/icons/StartStreamIcon.tsx +13 -0
- package/src/icons/index.tsx +5 -0
- package/src/theme/theme.ts +140 -0
- package/src/translations/en.json +6 -1
- package/src/version.ts +1 -1
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { StyleSheet, Text, View } from 'react-native';
|
|
3
|
+
import { useTheme } from '../../../contexts';
|
|
4
|
+
import { useI18n } from '@stream-io/video-react-bindings';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Props for the LiveIndicator component.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* The LiveIndicator component displays whether the live stream is live or not.
|
|
12
|
+
*/
|
|
13
|
+
export const LiveIndicator = _ref => {
|
|
14
|
+
let {} = _ref;
|
|
15
|
+
const {
|
|
16
|
+
theme: {
|
|
17
|
+
colors,
|
|
18
|
+
typefaces,
|
|
19
|
+
liveIndicator
|
|
20
|
+
}
|
|
21
|
+
} = useTheme();
|
|
22
|
+
const {
|
|
23
|
+
t
|
|
24
|
+
} = useI18n();
|
|
25
|
+
return /*#__PURE__*/React.createElement(View, {
|
|
26
|
+
style: [styles.container, {
|
|
27
|
+
backgroundColor: colors.primary
|
|
28
|
+
}, liveIndicator.container]
|
|
29
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
30
|
+
style: [styles.label, {
|
|
31
|
+
color: colors.static_white
|
|
32
|
+
}, typefaces.subtitleBold, liveIndicator.label]
|
|
33
|
+
}, t('Live')));
|
|
34
|
+
};
|
|
35
|
+
const styles = StyleSheet.create({
|
|
36
|
+
container: {
|
|
37
|
+
paddingHorizontal: 8,
|
|
38
|
+
paddingVertical: 4,
|
|
39
|
+
borderTopLeftRadius: 4,
|
|
40
|
+
borderBottomLeftRadius: 4,
|
|
41
|
+
justifyContent: 'center'
|
|
42
|
+
},
|
|
43
|
+
label: {
|
|
44
|
+
textAlign: 'center',
|
|
45
|
+
includeFontPadding: false
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
//# sourceMappingURL=LiveIndicator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","StyleSheet","Text","View","useTheme","useI18n","LiveIndicator","_ref","theme","colors","typefaces","liveIndicator","t","createElement","style","styles","container","backgroundColor","primary","label","color","static_white","subtitleBold","create","paddingHorizontal","paddingVertical","borderTopLeftRadius","borderBottomLeftRadius","justifyContent","textAlign","includeFontPadding"],"sourceRoot":"../../../../../src","sources":["components/Livestream/LivestreamTopView/LiveIndicator.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,EAAEC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AACrD,SAASC,QAAQ,QAAQ,mBAAmB;AAC5C,SAASC,OAAO,QAAQ,iCAAiC;;AAEzD;AACA;AACA;;AAGA;AACA;AACA;AACA,OAAO,MAAMC,aAAa,GAAGC,IAAA,IAA4B;EAAA,IAA3B,CAAqB,CAAC,GAAAA,IAAA;EAClD,MAAM;IACJC,KAAK,EAAE;MAAEC,MAAM;MAAEC,SAAS;MAAEC;IAAc;EAC5C,CAAC,GAAGP,QAAQ,CAAC,CAAC;EACd,MAAM;IAAEQ;EAAE,CAAC,GAAGP,OAAO,CAAC,CAAC;EACvB,oBACEL,KAAA,CAAAa,aAAA,CAACV,IAAI;IACHW,KAAK,EAAE,CACLC,MAAM,CAACC,SAAS,EAChB;MAAEC,eAAe,EAAER,MAAM,CAACS;IAAQ,CAAC,EACnCP,aAAa,CAACK,SAAS;EACvB,gBAEFhB,KAAA,CAAAa,aAAA,CAACX,IAAI;IACHY,KAAK,EAAE,CACLC,MAAM,CAACI,KAAK,EACZ;MAAEC,KAAK,EAAEX,MAAM,CAACY;IAAa,CAAC,EAC9BX,SAAS,CAACY,YAAY,EACtBX,aAAa,CAACQ,KAAK;EACnB,GAEDP,CAAC,CAAC,MAAM,CACL,CACF,CAAC;AAEX,CAAC;AAED,MAAMG,MAAM,GAAGd,UAAU,CAACsB,MAAM,CAAC;EAC/BP,SAAS,EAAE;IACTQ,iBAAiB,EAAE,CAAC;IACpBC,eAAe,EAAE,CAAC;IAClBC,mBAAmB,EAAE,CAAC;IACtBC,sBAAsB,EAAE,CAAC;IACzBC,cAAc,EAAE;EAClB,CAAC;EACDT,KAAK,EAAE;IACLU,SAAS,EAAE,QAAQ;IACnBC,kBAAkB,EAAE;EACtB;AACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { StyleSheet, View } from 'react-native';
|
|
3
|
+
import { DurationBadge as DefaultDurationBadge } from './DurationBadge';
|
|
4
|
+
import { LiveIndicator as DefaultLiveIndicator } from './LiveIndicator';
|
|
5
|
+
import { FollowerCount as DefaultFollowerCount } from './FollowerCount';
|
|
6
|
+
import { useTheme } from '../../../contexts';
|
|
7
|
+
import { Z_INDEX } from '../../../constants';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Props for the ViewerLivestreamTopView component.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* The ViewerLivestreamTopView component displays the top view component of the viewer's live stream.
|
|
15
|
+
*/
|
|
16
|
+
export const ViewerLivestreamTopView = _ref => {
|
|
17
|
+
let {
|
|
18
|
+
DurationBadge = DefaultDurationBadge,
|
|
19
|
+
LiveIndicator = DefaultLiveIndicator,
|
|
20
|
+
FollowerCount = DefaultFollowerCount
|
|
21
|
+
} = _ref;
|
|
22
|
+
const {
|
|
23
|
+
theme: {
|
|
24
|
+
colors,
|
|
25
|
+
viewerLivestreamTopView
|
|
26
|
+
}
|
|
27
|
+
} = useTheme();
|
|
28
|
+
return /*#__PURE__*/React.createElement(View, {
|
|
29
|
+
style: [styles.container, {
|
|
30
|
+
backgroundColor: colors.static_overlay
|
|
31
|
+
}, viewerLivestreamTopView.container]
|
|
32
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
33
|
+
style: [styles.leftElement, viewerLivestreamTopView.leftElement]
|
|
34
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
35
|
+
style: [styles.liveInfo, viewerLivestreamTopView.liveInfo]
|
|
36
|
+
}, LiveIndicator && /*#__PURE__*/React.createElement(LiveIndicator, null), FollowerCount && /*#__PURE__*/React.createElement(FollowerCount, null))), /*#__PURE__*/React.createElement(View, {
|
|
37
|
+
style: [styles.centerElement, viewerLivestreamTopView.centerElement]
|
|
38
|
+
}, DurationBadge && /*#__PURE__*/React.createElement(DurationBadge, {
|
|
39
|
+
mode: "viewer"
|
|
40
|
+
})), /*#__PURE__*/React.createElement(View, {
|
|
41
|
+
style: [styles.rightElement, viewerLivestreamTopView.rightElement]
|
|
42
|
+
}));
|
|
43
|
+
};
|
|
44
|
+
const styles = StyleSheet.create({
|
|
45
|
+
container: {
|
|
46
|
+
position: 'absolute',
|
|
47
|
+
top: 0,
|
|
48
|
+
flexDirection: 'row',
|
|
49
|
+
alignItems: 'center',
|
|
50
|
+
paddingVertical: 16,
|
|
51
|
+
paddingHorizontal: 8,
|
|
52
|
+
borderBottomEndRadius: 8,
|
|
53
|
+
borderBottomStartRadius: 8,
|
|
54
|
+
zIndex: Z_INDEX.IN_FRONT
|
|
55
|
+
},
|
|
56
|
+
liveInfo: {
|
|
57
|
+
flexDirection: 'row'
|
|
58
|
+
},
|
|
59
|
+
leftElement: {
|
|
60
|
+
flex: 1,
|
|
61
|
+
alignItems: 'flex-start'
|
|
62
|
+
},
|
|
63
|
+
centerElement: {
|
|
64
|
+
flex: 1,
|
|
65
|
+
alignItems: 'center',
|
|
66
|
+
flexGrow: 3
|
|
67
|
+
},
|
|
68
|
+
rightElement: {
|
|
69
|
+
flex: 1,
|
|
70
|
+
alignItems: 'flex-end'
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
//# sourceMappingURL=ViewerLivestreamTopView.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","StyleSheet","View","DurationBadge","DefaultDurationBadge","LiveIndicator","DefaultLiveIndicator","FollowerCount","DefaultFollowerCount","useTheme","Z_INDEX","ViewerLivestreamTopView","_ref","theme","colors","viewerLivestreamTopView","createElement","style","styles","container","backgroundColor","static_overlay","leftElement","liveInfo","centerElement","mode","rightElement","create","position","top","flexDirection","alignItems","paddingVertical","paddingHorizontal","borderBottomEndRadius","borderBottomStartRadius","zIndex","IN_FRONT","flex","flexGrow"],"sourceRoot":"../../../../../src","sources":["components/Livestream/LivestreamTopView/ViewerLivestreamTopView.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAC/C,SACEC,aAAa,IAAIC,oBAAoB,QAEhC,iBAAiB;AACxB,SACEC,aAAa,IAAIC,oBAAoB,QAEhC,iBAAiB;AACxB,SACEC,aAAa,IAAIC,oBAAoB,QAEhC,iBAAiB;AACxB,SAASC,QAAQ,QAAQ,mBAAmB;AAC5C,SAASC,OAAO,QAAQ,oBAAoB;;AAE5C;AACA;AACA;;AAgBA;AACA;AACA;AACA,OAAO,MAAMC,uBAAuB,GAAGC,IAAA,IAIH;EAAA,IAJI;IACtCT,aAAa,GAAGC,oBAAoB;IACpCC,aAAa,GAAGC,oBAAoB;IACpCC,aAAa,GAAGC;EACY,CAAC,GAAAI,IAAA;EAC7B,MAAM;IACJC,KAAK,EAAE;MAAEC,MAAM;MAAEC;IAAwB;EAC3C,CAAC,GAAGN,QAAQ,CAAC,CAAC;EAEd,oBACET,KAAA,CAAAgB,aAAA,CAACd,IAAI;IACHe,KAAK,EAAE,CACLC,MAAM,CAACC,SAAS,EAChB;MAAEC,eAAe,EAAEN,MAAM,CAACO;IAAe,CAAC,EAC1CN,uBAAuB,CAACI,SAAS;EACjC,gBAEFnB,KAAA,CAAAgB,aAAA,CAACd,IAAI;IAACe,KAAK,EAAE,CAACC,MAAM,CAACI,WAAW,EAAEP,uBAAu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EAAE,CAAC;IACPP,UAAU,EAAE;EACd;AACF,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["components/Livestream/LivestreamTopView/index.ts"],"mappings":"AAAA,cAAc,iBAAiB;AAC/B,cAAc,iBAAiB;AAC/B,cAAc,iBAAiB;AAC/B,cAAc,yBAAyB"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { StyleSheet, SafeAreaView, View } from 'react-native';
|
|
3
|
+
import { useIncallManager } from '../../../hooks';
|
|
4
|
+
import { useTheme } from '../../../contexts';
|
|
5
|
+
import { ViewerLivestreamTopView as DefaultViewerLivestreamTopView } from '../LivestreamTopView/ViewerLivestreamTopView';
|
|
6
|
+
import { ViewerLivestreamControls as DefaultViewerLivestreamControls } from '../LivestreamControls/ViewerLivestreamControls';
|
|
7
|
+
import { LivestreamLayout as DefaultLivestreamLayout } from '../LivestreamLayout';
|
|
8
|
+
import { useCallStateHooks } from '@stream-io/video-react-bindings';
|
|
9
|
+
import { FloatingParticipantView as DefaultFloatingParticipantView } from '../../Participant';
|
|
10
|
+
import { Z_INDEX } from '../../../constants';
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Props for the ViewerLivestream component.
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* The ViewerLivestream component renders the UI for the Viewer's live stream.
|
|
18
|
+
*/
|
|
19
|
+
export const ViewerLivestream = _ref => {
|
|
20
|
+
let {
|
|
21
|
+
ViewerLivestreamTopView = DefaultViewerLivestreamTopView,
|
|
22
|
+
ViewerLivestreamControls = DefaultViewerLivestreamControls,
|
|
23
|
+
LivestreamLayout = DefaultLivestreamLayout,
|
|
24
|
+
FloatingParticipantView = DefaultFloatingParticipantView,
|
|
25
|
+
LiveIndicator,
|
|
26
|
+
FollowerCount,
|
|
27
|
+
DurationBadge,
|
|
28
|
+
ViewerLeaveStreamButton,
|
|
29
|
+
onLeaveStreamHandler
|
|
30
|
+
} = _ref;
|
|
31
|
+
const {
|
|
32
|
+
theme: {
|
|
33
|
+
colors,
|
|
34
|
+
viewerLivestream
|
|
35
|
+
}
|
|
36
|
+
} = useTheme();
|
|
37
|
+
const {
|
|
38
|
+
useHasOngoingScreenShare,
|
|
39
|
+
useParticipants
|
|
40
|
+
} = useCallStateHooks();
|
|
41
|
+
const hasOngoingScreenShare = useHasOngoingScreenShare();
|
|
42
|
+
const [currentSpeaker] = useParticipants();
|
|
43
|
+
|
|
44
|
+
// Automatically route audio to speaker devices as relevant for watching videos.
|
|
45
|
+
useIncallManager({
|
|
46
|
+
media: 'video',
|
|
47
|
+
auto: true
|
|
48
|
+
});
|
|
49
|
+
const topViewProps = {
|
|
50
|
+
LiveIndicator,
|
|
51
|
+
FollowerCount,
|
|
52
|
+
DurationBadge
|
|
53
|
+
};
|
|
54
|
+
return /*#__PURE__*/React.createElement(SafeAreaView, {
|
|
55
|
+
style: [styles.container, {
|
|
56
|
+
backgroundColor: colors.static_grey
|
|
57
|
+
}, viewerLivestream.container]
|
|
58
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
59
|
+
style: [styles.view, viewerLivestream.view]
|
|
60
|
+
}, ViewerLivestreamTopView && /*#__PURE__*/React.createElement(ViewerLivestreamTopView, topViewProps), /*#__PURE__*/React.createElement(View, {
|
|
61
|
+
style: [styles.floatingParticipantView, viewerLivestream.floatingParticipantView]
|
|
62
|
+
}, hasOngoingScreenShare && FloatingParticipantView && /*#__PURE__*/React.createElement(FloatingParticipantView, {
|
|
63
|
+
participant: currentSpeaker
|
|
64
|
+
})), ViewerLivestreamControls && /*#__PURE__*/React.createElement(ViewerLivestreamControls, {
|
|
65
|
+
ViewerLeaveStreamButton: ViewerLeaveStreamButton,
|
|
66
|
+
onLeaveStreamHandler: onLeaveStreamHandler
|
|
67
|
+
})), LivestreamLayout && /*#__PURE__*/React.createElement(LivestreamLayout, null));
|
|
68
|
+
};
|
|
69
|
+
const styles = StyleSheet.create({
|
|
70
|
+
container: {
|
|
71
|
+
flex: 1
|
|
72
|
+
},
|
|
73
|
+
floatingParticipantView: {
|
|
74
|
+
flex: 1
|
|
75
|
+
},
|
|
76
|
+
view: {
|
|
77
|
+
...StyleSheet.absoluteFillObject,
|
|
78
|
+
zIndex: Z_INDEX.IN_FRONT
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
//# sourceMappingURL=ViewerLivestream.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","StyleSheet","SafeAreaView","View","useIncallManager","useTheme","ViewerLivestreamTopView","DefaultViewerLivestreamTopView","ViewerLivestreamControls","DefaultViewerLivestreamControls","LivestreamLayout","DefaultLivestreamLayout","useCallStateHooks","FloatingParticipantView","DefaultFloatingParticipantView","Z_INDEX","ViewerLivestream","_ref","LiveIndicator","FollowerCount","DurationBadge","ViewerLeaveStreamButton","onLeaveStreamHandler","theme","colors","viewerLivestream","useHasOngoingScreenShare","useParticipants","hasOngoingScreenShare","currentSpeaker","media","auto","topViewProps","createElement","style","styles","container","backgroundColor","static_grey","view","floatingParticipantView","participant","create","flex","absoluteFillObject","zIndex","IN_FRONT"],"sourceRoot":"../../../../../src","sources":["components/Livestream/ViewerLivestream/ViewerLivestream.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,SAASC,UAAU,EAAEC,YAAY,EAAEC,IAAI,QAAQ,cAAc;AAC7D,SAASC,gBAAgB,QAAQ,gBAAgB;AACjD,SAASC,QAAQ,QAAQ,mBAAmB;AAC5C,SACEC,uBAAuB,IAAIC,8BAA8B,QAEpD,8CAA8C;AACrD,SACEC,wBAAwB,IAAIC,+BAA+B,QAEtD,gDAAgD;AAEvD,SACEC,gBAAgB,IAAIC,uBAAuB,QAEtC,qBAAqB;AAC5B,SAASC,iBAAiB,QAAQ,iCAAiC;AACnE,SACEC,uBAAuB,IAAIC,8BAA8B,QAEpD,mBAAm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,CACLC,MAAM,CAACK,uBAAuB,EAC9Bf,gBAAgB,CAACe,uBAAuB;EACxC,GAEDZ,qBAAqB,IAAIf,uBAAuB,iBAC/Cb,KAAA,CAAAiC,aAAA,CAACpB,uBAAuB;IAAC4B,WAAW,EAAEZ;EAAe,CAAE,CAErD,CAAC,EAENrB,wBAAwB,iBACvBR,KAAA,CAAAiC,aAAA,CAACzB,wBAAwB;IACvBa,uBAAuB,EAAEA,uBAAwB;IACjDC,oBAAoB,EAAEA;EAAqB,CAC5C,CAEC,CAAC,EACNZ,gBAAgB,iBAAIV,KAAA,CAAAiC,aAAA,CAACvB,gBAAgB,MAAE,CAC5B,CAAC;AAEnB,CAAC;AAED,MAAMyB,MAAM,GAAGlC,UAAU,CAACyC,MAAM,CAAC;EAC/BN,SAAS,EAAE;IACTO,IAAI,EAAE;EACR,CAAC;EACDH,uBAAuB,EAAE;IACvBG,IAAI,EAAE;EACR,CAAC;EACDJ,IAAI,EAAE;IACJ,GAAGtC,UAAU,CAAC2C,kBAAkB;IAChCC,MAAM,EAAE9B,OAAO,CAAC+B;EAClB;AACF,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["components/Livestream/ViewerLivestream/index.ts"],"mappings":"AAAA,cAAc,oBAAoB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/Livestream/index.ts"],"mappings":"AAAA,cAAc,kBAAkB;AAChC,cAAc,sBAAsB;AACpC,cAAc,qBAAqB;AACnC,cAAc,oBAAoB;AAClC,cAAc,oBAAoB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["components/index.ts"],"mappings":"AAAA;AACA,cAAc,QAAQ;AACtB,cAAc,WAAW;AACzB,cAAc,eAAe"}
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["components/index.ts"],"mappings":"AAAA;AACA,cAAc,QAAQ;AACtB,cAAc,WAAW;AACzB,cAAc,eAAe;AAC7B,cAAc,cAAc"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { CallTypes, defaultSortPreset, paginatedLayoutSortPreset } from '@stream-io/video-client';
|
|
2
|
+
import { useEffect } from 'react';
|
|
3
|
+
const resetSortPreset = call => {
|
|
4
|
+
// reset the sorting to the default for the call type
|
|
5
|
+
const callConfig = CallTypes.get(call.type);
|
|
6
|
+
call.setSortParticipantsBy(callConfig.options.sortParticipantsBy || defaultSortPreset);
|
|
7
|
+
};
|
|
8
|
+
export const usePaginatedLayoutSortPreset = call => {
|
|
9
|
+
useEffect(() => {
|
|
10
|
+
if (!call) {
|
|
11
|
+
return;
|
|
12
|
+
}
|
|
13
|
+
call.setSortParticipantsBy(paginatedLayoutSortPreset);
|
|
14
|
+
return () => {
|
|
15
|
+
resetSortPreset(call);
|
|
16
|
+
};
|
|
17
|
+
}, [call]);
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=usePaginatedLayoutSortPreset.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["CallTypes","defaultSortPreset","paginatedLayoutSortPreset","useEffect","resetSortPreset","call","callConfig","get","type","setSortParticipantsBy","options","sortParticipantsBy","usePaginatedLayoutSortPreset"],"sourceRoot":"../../../src","sources":["hooks/usePaginatedLayoutSortPreset.ts"],"mappings":"AAAA,SAEEA,SAAS,EACTC,iBAAiB,EACjBC,yBAAyB,QACpB,yBAAyB;AAChC,SAASC,SAAS,QAAQ,OAAO;AAEjC,MAAMC,eAAe,GAAIC,IAAU,IAAK;EACtC;EACA,MAAMC,UAAU,GAAGN,SAAS,CAACO,GAAG,CAACF,IAAI,CAACG,IAAI,CAAC;EAC3CH,IAAI,CAACI,qBAAqB,CACxBH,UAAU,CAACI,OAAO,CAACC,kBAAkB,IAAIV,iBAC3C,CAAC;AACH,CAAC;AAED,OAAO,MAAMW,4BAA4B,GAAIP,IAAsB,IAAK;EACtEF,SAAS,CAAC,MAAM;IACd,IAAI,CAACE,IAAI,EAAE;MACT;IACF;IACAA,IAAI,CAACI,qBAAqB,CAACP,yBAAyB,CAAC;IACrD,OAAO,MAAM;MACXE,eAAe,CAACC,IAAI,CAAC;IACvB,CAAC;EACH,CAAC,EAAE,CAACA,IAAI,CAAC,CAAC;AACZ,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Path, Svg } from 'react-native-svg';
|
|
3
|
+
export const EndBroadcastIcon = () => {
|
|
4
|
+
return /*#__PURE__*/React.createElement(Svg, {
|
|
5
|
+
viewBox: "0 0 26 26",
|
|
6
|
+
fill: "none"
|
|
7
|
+
}, /*#__PURE__*/React.createElement(Path, {
|
|
8
|
+
d: "M8.55615 10.8184C8.44365 11.2309 8.38115 11.6684 8.38115 12.1184C8.38115 13.4934 8.94365 14.7434 9.84365 15.6559L8.06865 17.4309C6.71865 16.0684 5.88115 14.1934 5.88115 12.1184C5.88115 10.9559 6.14365 9.86836 6.60615 8.88086L4.76865 7.04336C3.88115 8.53086 3.38115 10.2684 3.38115 12.1184C3.38115 14.8809 4.50615 17.3809 6.31865 19.1809L4.54365 20.9559C2.28115 18.6934 0.881152 15.5684 0.881152 12.1184C0.881152 9.56836 1.64365 7.20586 2.95615 5.23086L0.118652 2.39336L1.88115 0.630859L24.8562 23.6059L23.0937 25.3684L8.55615 10.8184ZM20.1562 15.3559C20.6187 14.3684 20.8812 13.2809 20.8812 12.1184C20.8812 10.0434 20.0437 8.16836 18.6812 6.81836L16.9062 8.59336C17.8187 9.49336 18.3812 10.7434 18.3812 12.1184C18.3812 12.5684 18.3187 13.0059 18.2062 13.4184L20.1562 15.3559ZM23.3812 12.1184C23.3812 13.9684 22.8812 15.7059 21.9937 17.1934L23.8062 19.0059C25.1187 17.0309 25.8812 14.6684 25.8812 12.1184C25.8812 8.66836 24.4812 5.54336 22.2187 3.28086L20.4437 5.05586C22.2562 6.85586 23.3812 9.35586 23.3812 12.1184Z",
|
|
9
|
+
fill: "#FCFCFC"
|
|
10
|
+
}));
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=EndStreamIcon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","Path","Svg","EndBroadcastIcon","createElement","viewBox","fill","d"],"sourceRoot":"../../../src","sources":["icons/EndStreamIcon.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,GAAG,QAAQ,kBAAkB;AAE5C,OAAO,MAAMC,gBAAgB,GAAGA,CAAA,KAAM;EACpC,oBACEH,KAAA,CAAAI,aAAA,CAACF,GAAG;IAACG,OAAO,EAAC,WAAW;IAACC,IAAI,EAAC;EAAM,gBAClCN,KAAA,CAAAI,aAAA,CAACH,IAAI;IACHM,CAAC,EAAC,0/BAA0/B;IAC5/BD,IAAI,EAAC;EAAS,CACf,CACE,CAAC;AAEV,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Svg, Path } from 'react-native-svg';
|
|
3
|
+
export const Eye = () => {
|
|
4
|
+
return /*#__PURE__*/React.createElement(Svg, {
|
|
5
|
+
viewBox: "0 0 15 10",
|
|
6
|
+
fill: "none"
|
|
7
|
+
}, /*#__PURE__*/React.createElement(Path, {
|
|
8
|
+
d: "M7.25488 1.5625C9.62363 1.5625 11.7361 2.89375 12.7674 5C11.7361 7.10625 9.62363 8.4375 7.25488 8.4375C4.88613 8.4375 2.77363 7.10625 1.74238 5C2.77363 2.89375 4.88613 1.5625 7.25488 1.5625ZM7.25488 0.3125C4.12988 0.3125 1.46113 2.25625 0.379883 5C1.46113 7.74375 4.12988 9.6875 7.25488 9.6875C10.3799 9.6875 13.0486 7.74375 14.1299 5C13.0486 2.25625 10.3799 0.3125 7.25488 0.3125ZM7.25488 3.4375C8.11738 3.4375 8.81738 4.1375 8.81738 5C8.81738 5.8625 8.11738 6.5625 7.25488 6.5625C6.39238 6.5625 5.69238 5.8625 5.69238 5C5.69238 4.1375 6.39238 3.4375 7.25488 3.4375ZM7.25488 2.1875C5.70488 2.1875 4.44238 3.45 4.44238 5C4.44238 6.55 5.70488 7.8125 7.25488 7.8125C8.80488 7.8125 10.0674 6.55 10.0674 5C10.0674 3.45 8.80488 2.1875 7.25488 2.1875Z",
|
|
9
|
+
fill: "#FCFCFC"
|
|
10
|
+
}));
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=Eye.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","Svg","Path","Eye","createElement","viewBox","fill","d"],"sourceRoot":"../../../src","sources":["icons/Eye.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,GAAG,EAAEC,IAAI,QAAQ,kBAAkB;AAE5C,OAAO,MAAMC,GAAG,GAAGA,CAAA,KAAM;EACvB,oBACEH,KAAA,CAAAI,aAAA,CAACH,GAAG;IAACI,OAAO,EAAC,WAAW;IAACC,IAAI,EAAC;EAAM,gBAClCN,KAAA,CAAAI,aAAA,CAACF,IAAI;IACHK,CAAC,EAAC,2uBAA2uB;IAC7uBD,IAAI,EAAC;EAAS,CACf,CACE,CAAC;AAEV,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Path, Svg } from 'react-native-svg';
|
|
3
|
+
export const LeaveStreamIcon = () => {
|
|
4
|
+
return /*#__PURE__*/React.createElement(Svg, {
|
|
5
|
+
viewBox: "0 0 25 24",
|
|
6
|
+
fill: "none"
|
|
7
|
+
}, /*#__PURE__*/React.createElement(Path, {
|
|
8
|
+
d: "M18.75 5.75L16.9875 7.5125L20.2125 10.75H7.5V13.25H20.2125L16.9875 16.475L18.75 18.25L25 12L18.75 5.75ZM2.5 3.25H12.5V0.75H2.5C1.125 0.75 0 1.875 0 3.25V20.75C0 22.125 1.125 23.25 2.5 23.25H12.5V20.75H2.5V3.25Z",
|
|
9
|
+
fill: "#FCFCFC"
|
|
10
|
+
}));
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=LeaveStreamIcon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","Path","Svg","LeaveStreamIcon","createElement","viewBox","fill","d"],"sourceRoot":"../../../src","sources":["icons/LeaveStreamIcon.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,GAAG,QAAQ,kBAAkB;AAE5C,OAAO,MAAMC,eAAe,GAAGA,CAAA,KAAM;EACnC,oBACEH,KAAA,CAAAI,aAAA,CAACF,GAAG;IAACG,OAAO,EAAC,WAAW;IAACC,IAAI,EAAC;EAAM,gBAClCN,KAAA,CAAAI,aAAA,CAACH,IAAI;IACHM,CAAC,EAAC,oNAAoN;IACtND,IAAI,EAAC;EAAS,CACf,CACE,CAAC;AAEV,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Svg, Path } from 'react-native-svg';
|
|
3
|
+
export const ShieldBadge = () => {
|
|
4
|
+
return /*#__PURE__*/React.createElement(Svg, {
|
|
5
|
+
viewBox: "0 0 9 10",
|
|
6
|
+
fill: "none"
|
|
7
|
+
}, /*#__PURE__*/React.createElement(Path, {
|
|
8
|
+
d: "M2.79919 8.79157L4.02014 9.63654C4.22869 9.7774 4.49664 9.7774 4.70498 9.63654L5.92594 8.79157C7.6828 7.5523 8.75481 5.60898 8.75481 3.52489V1.60984C8.75481 1.35641 8.57617 1.13107 8.30822 1.07467L4.3774 0.257812L0.446587 1.07447C0.178632 1.13085 0 1.35619 0 1.60964V3.52469C0 5.60888 1.04233 7.58057 2.79919 8.79157ZM2.56093 4.05991L3.69256 5.13019L6.16414 2.79258L7.05753 3.63755L3.72223 6.82014L1.69742 4.90488L2.56093 4.05991Z",
|
|
9
|
+
fill: "#00E2A1"
|
|
10
|
+
}));
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=ShieldBadge.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","Svg","Path","ShieldBadge","createElement","viewBox","fill","d"],"sourceRoot":"../../../src","sources":["icons/ShieldBadge.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,GAAG,EAAEC,IAAI,QAAQ,kBAAkB;AAE5C,OAAO,MAAMC,WAAW,GAAGA,CAAA,KAAM;EAC/B,oBACEH,KAAA,CAAAI,aAAA,CAACH,GAAG;IAACI,OAAO,EAAC,UAAU;IAACC,IAAI,EAAC;EAAM,gBACjCN,KAAA,CAAAI,aAAA,CAACF,IAAI;IACHK,CAAC,EAAC,gbAAgb;IAClbD,IAAI,EAAC;EAAS,CACf,CACE,CAAC;AAEV,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Path, Svg } from 'react-native-svg';
|
|
3
|
+
export const StartStreamIcon = () => {
|
|
4
|
+
return /*#__PURE__*/React.createElement(Svg, {
|
|
5
|
+
viewBox: "0 0 25 18",
|
|
6
|
+
fill: "none"
|
|
7
|
+
}, /*#__PURE__*/React.createElement(Path, {
|
|
8
|
+
d: "M7.2 14.2996C5.8375 12.9496 5 11.0746 5 8.99961C5 6.92461 5.8375 5.04961 7.2 3.69961L8.975 5.47461C8.0625 6.37461 7.5 7.62461 7.5 8.99961C7.5 10.3746 8.0625 11.6246 8.9625 12.5371L7.2 14.2996ZM17.8 14.2996C19.1625 12.9496 20 11.0746 20 8.99961C20 6.92461 19.1625 5.04961 17.8 3.69961L16.025 5.47461C16.9375 6.37461 17.5 7.62461 17.5 8.99961C17.5 10.3746 16.9375 11.6246 16.0375 12.5371L17.8 14.2996ZM12.5 6.49961C11.125 6.49961 10 7.62461 10 8.99961C10 10.3746 11.125 11.4996 12.5 11.4996C13.875 11.4996 15 10.3746 15 8.99961C15 7.62461 13.875 6.49961 12.5 6.49961ZM22.5 8.99961C22.5 11.7621 21.375 14.2621 19.5625 16.0621L21.3375 17.8371C23.6 15.5746 25 12.4496 25 8.99961C25 5.54961 23.6 2.42461 21.3375 0.162109L19.5625 1.93711C21.375 3.73711 22.5 6.23711 22.5 8.99961ZM5.4375 1.93711L3.6625 0.162109C1.4 2.42461 0 5.54961 0 8.99961C0 12.4496 1.4 15.5746 3.6625 17.8371L5.4375 16.0621C3.625 14.2621 2.5 11.7621 2.5 8.99961C2.5 6.23711 3.625 3.73711 5.4375 1.93711Z",
|
|
9
|
+
fill: "#FCFCFC"
|
|
10
|
+
}));
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=StartStreamIcon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","Path","Svg","StartStreamIcon","createElement","viewBox","fill","d"],"sourceRoot":"../../../src","sources":["icons/StartStreamIcon.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,GAAG,QAAQ,kBAAkB;AAE5C,OAAO,MAAMC,eAAe,GAAGA,CAAA,KAAM;EACnC,oBACEH,KAAA,CAAAI,aAAA,CAACF,GAAG;IAACG,OAAO,EAAC,WAAW;IAACC,IAAI,EAAC;EAAM,gBAClCN,KAAA,CAAAI,aAAA,CAACH,IAAI;IACHM,CAAC,EAAC,y8BAAy8B;IAC38BD,IAAI,EAAC;EAAS,CACf,CACE,CAAC;AAEV,CAAC"}
|
|
@@ -14,4 +14,9 @@ export * from './Spotlight';
|
|
|
14
14
|
export * from './ScreenShare';
|
|
15
15
|
export * from './Reaction';
|
|
16
16
|
export * from './TopViewBackground';
|
|
17
|
+
export * from './Eye';
|
|
18
|
+
export * from './ShieldBadge';
|
|
19
|
+
export * from './StartStreamIcon';
|
|
20
|
+
export * from './EndStreamIcon';
|
|
21
|
+
export * from './LeaveStreamIcon';
|
|
17
22
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["icons/index.tsx"],"mappings":"AAAA,cAAc,gBAAgB;AAC9B,cAAc,OAAO;AACrB,cAAc,UAAU;AACxB,cAAc,SAAS;AACvB,cAAc,aAAa;AAC3B,cAAc,YAAY;AAC1B,cAAc,SAAS;AACvB,cAAc,cAAc;AAC5B,cAAc,QAAQ;AACtB,cAAc,gBAAgB;AAC9B,cAAc,aAAa;AAC3B,cAAc,eAAe;AAC7B,cAAc,aAAa;AAC3B,cAAc,eAAe;AAC7B,cAAc,YAAY;AAC1B,cAAc,qBAAqB"}
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["icons/index.tsx"],"mappings":"AAAA,cAAc,gBAAgB;AAC9B,cAAc,OAAO;AACrB,cAAc,UAAU;AACxB,cAAc,SAAS;AACvB,cAAc,aAAa;AAC3B,cAAc,YAAY;AAC1B,cAAc,SAAS;AACvB,cAAc,cAAc;AAC5B,cAAc,QAAQ;AACtB,cAAc,gBAAgB;AAC9B,cAAc,aAAa;AAC3B,cAAc,eAAe;AAC7B,cAAc,aAAa;AAC3B,cAAc,eAAe;AAC7B,cAAc,YAAY;AAC1B,cAAc,qBAAqB;AACnC,cAAc,OAAO;AACrB,cAAc,eAAe;AAC7B,cAAc,mBAAmB;AACjC,cAAc,iBAAiB;AAC/B,cAAc,mBAAmB"}
|
|
@@ -224,6 +224,76 @@ export const defaultTheme = {
|
|
|
224
224
|
participantCountContainer: {},
|
|
225
225
|
participantsIconContainer: {},
|
|
226
226
|
participantsCountText: {}
|
|
227
|
+
},
|
|
228
|
+
hostLivestream: {
|
|
229
|
+
container: {}
|
|
230
|
+
},
|
|
231
|
+
hostLivestreamTopView: {
|
|
232
|
+
container: {},
|
|
233
|
+
leftElement: {},
|
|
234
|
+
rightElement: {},
|
|
235
|
+
centerElement: {},
|
|
236
|
+
liveInfo: {}
|
|
237
|
+
},
|
|
238
|
+
viewerLivestream: {
|
|
239
|
+
container: {},
|
|
240
|
+
floatingParticipantView: {},
|
|
241
|
+
view: {}
|
|
242
|
+
},
|
|
243
|
+
livestreamLayout: {
|
|
244
|
+
container: {}
|
|
245
|
+
},
|
|
246
|
+
viewerLivestreamTopView: {
|
|
247
|
+
container: {},
|
|
248
|
+
leftElement: {},
|
|
249
|
+
centerElement: {},
|
|
250
|
+
rightElement: {},
|
|
251
|
+
liveInfo: {}
|
|
252
|
+
},
|
|
253
|
+
followerCount: {
|
|
254
|
+
container: {},
|
|
255
|
+
icon: {},
|
|
256
|
+
label: {}
|
|
257
|
+
},
|
|
258
|
+
durationBadge: {
|
|
259
|
+
container: {},
|
|
260
|
+
icon: {},
|
|
261
|
+
label: {}
|
|
262
|
+
},
|
|
263
|
+
liveIndicator: {
|
|
264
|
+
container: {},
|
|
265
|
+
label: {}
|
|
266
|
+
},
|
|
267
|
+
hostLivestreamControls: {
|
|
268
|
+
container: {},
|
|
269
|
+
leftElement: {},
|
|
270
|
+
rightElement: {}
|
|
271
|
+
},
|
|
272
|
+
viewerLivestreamControls: {
|
|
273
|
+
container: {},
|
|
274
|
+
leftElement: {},
|
|
275
|
+
rightElement: {}
|
|
276
|
+
},
|
|
277
|
+
hostStartStreamButton: {
|
|
278
|
+
container: {},
|
|
279
|
+
icon: {},
|
|
280
|
+
text: {}
|
|
281
|
+
},
|
|
282
|
+
viewerLeaveStreamButton: {
|
|
283
|
+
container: {},
|
|
284
|
+
icon: {},
|
|
285
|
+
text: {}
|
|
286
|
+
},
|
|
287
|
+
livestreamMediaControls: {
|
|
288
|
+
container: {}
|
|
289
|
+
},
|
|
290
|
+
livestreamAudioControlButton: {
|
|
291
|
+
container: {},
|
|
292
|
+
icon: {}
|
|
293
|
+
},
|
|
294
|
+
livestreamVideoControlButton: {
|
|
295
|
+
container: {},
|
|
296
|
+
icon: {}
|
|
227
297
|
}
|
|
228
298
|
};
|
|
229
299
|
//# sourceMappingURL=theme.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["colors","defaultTheme","variants","buttonSizes","xs","sm","md","lg","xl","iconSizes","avatarSizes","typefaces","heading4","fontSize","fontWeight","heading5","heading6","subtitle","subtitleBold","bodyBold","caption","avatar","container","image","text","acceptCallButton","svgContainer","callContent","callParticipantsContainer","topContainer","callControls","callControlsButton","joinCallButton","label","chatButton","hangupCallButton","rejectCallButton","toggleAudioPreviewButton","toggleAudioPublishingButton","toggleCameraFaceButton","toggleVideoPreviewButton","toggleVideoPublishingButton","callParticipantsGrid","callParticipantsSpotlight","fullScreenSpotlightContainer","callParticipantsListContainer","spotlightContainer","lobby","heading","subHeading","bottomContainer","videoContainer","infoContainer","infoText","participantStatusContainer","avatarContainer","userNameLabel","audioMutedIconContainer","floatingParticipantsView","participantViewContainer","videoFallback","participantLabel","videoMutedIconContainer","pinIconContainer","screenShareIconContainer","participantNetworkQualityIndicator","participantReaction","reaction","participantVideoFallback","avatarText","avatarImage","participantView","footerContainer","highligtedContainer","reactionsPicker","reactionsPopup","reactionsButtonDimmer","reactionItem","reactionText","videoRenderer","videoStream","incomingCall","background","content","incomingCallText","incomingCallControls","buttonGroup","outgoingCall","callingText","outgoingCallControls","deviceControlButtons","ringingCallContent","joiningCallIndicator","callTopView","backIconContainer","leftElement","centerElement","rightElement","title","userInfo","avatarGroup","name","lobbyControls","participantInfoBadge","participantCountContainer","participantsIconContainer","participantsCountText"],"sourceRoot":"../../../src","sources":["theme/theme.ts"],"mappings":"AACA,SAASA,MAAM,QAAQ,UAAU;
|
|
1
|
+
{"version":3,"names":["colors","defaultTheme","variants","buttonSizes","xs","sm","md","lg","xl","iconSizes","avatarSizes","typefaces","heading4","fontSize","fontWeight","heading5","heading6","subtitle","subtitleBold","bodyBold","caption","avatar","container","image","text","acceptCallButton","svgContainer","callContent","callParticipantsContainer","topContainer","callControls","callControlsButton","joinCallButton","label","chatButton","hangupCallButton","rejectCallButton","toggleAudioPreviewButton","toggleAudioPublishingButton","toggleCameraFaceButton","toggleVideoPreviewButton","toggleVideoPublishingButton","callParticipantsGrid","callParticipantsSpotlight","fullScreenSpotlightContainer","callParticipantsListContainer","spotlightContainer","lobby","heading","subHeading","bottomContainer","videoContainer","infoContainer","infoText","participantStatusContainer","avatarContainer","userNameLabel","audioMutedIconContainer","floatingParticipantsView","participantViewContainer","videoFallback","participantLabel","videoMutedIconContainer","pinIconContainer","screenShareIconContainer","participantNetworkQualityIndicator","participantReaction","reaction","participantVideoFallback","avatarText","avatarImage","participantView","footerContainer","highligtedContainer","reactionsPicker","reactionsPopup","reactionsButtonDimmer","reactionItem","reactionText","videoRenderer","videoStream","incomingCall","background","content","incomingCallText","incomingCallControls","buttonGroup","outgoingCall","callingText","outgoingCallControls","deviceControlButtons","ringingCallContent","joiningCallIndicator","callTopView","backIconContainer","leftElement","centerElement","rightElement","title","userInfo","avatarGroup","name","lobbyControls","participantInfoBadge","participantCountContainer","participantsIconContainer","participantsCountText","hostLivestream","hostLivestreamTopView","liveInfo","viewerLivestream","floatingParticipantView","view","livestreamLayout","viewerLivestreamTopView","followerCount","icon","durationBadge","liveIndicator","hostLivestreamControls","viewerLivestreamControls","hostStartStreamButton","viewerLeaveStreamButton","livestreamMediaControls","livestreamAudioControlButton","livestreamVideoControlButton"],"sourceRoot":"../../../src","sources":["theme/theme.ts"],"mappings":"AACA,SAASA,MAAM,QAAQ,UAAU;AAgRjC,OAAO,MAAMC,YAAmB,GAAG;EACjCC,QAAQ,EAAE;IACRC,WAAW,EAAE;MACXC,EAAE,EAAE,EAAE;MACNC,EAAE,EAAE,EAAE;MACNC,EAAE,EAAE,EAAE;MACNC,EAAE,EAAE,EAAE;MACNC,EAAE,EAAE;IACN,CAAC;IACDC,SAAS,EAAE;MACTL,EAAE,EAAE,EAAE;MACNC,EAAE,EAAE,EAAE;MACNC,EAAE,EAAE,EAAE;MACNC,EAAE,EAAE,EAAE;MACNC,EAAE,EAAE;IACN,CAAC;IACDE,WAAW,EAAE;MACXN,EAAE,EAAE,EAAE;MACNC,EAA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AAE,CAAC,CAAC;IACb8F,IAAI,EAAE,CAAC,CAAC;IACR5F,IAAI,EAAE,CAAC;EACT,CAAC;EACDmG,uBAAuB,EAAE;IACvBrG,SAAS,EAAE,CAAC;EACd,CAAC;EACDsG,4BAA4B,EAAE;IAC5BtG,SAAS,EAAE,CAAC,CAAC;IACb8F,IAAI,EAAE,CAAC;EACT,CAAC;EACDS,4BAA4B,EAAE;IAC5BvG,SAAS,EAAE,CAAC,CAAC;IACb8F,IAAI,EAAE,CAAC;EACT;AACF,CAAC"}
|
|
@@ -6,7 +6,12 @@
|
|
|
6
6
|
"Join": "Join",
|
|
7
7
|
"You": "You",
|
|
8
8
|
"Reconnecting...": "Reconnecting...",
|
|
9
|
-
"
|
|
9
|
+
"Loading...": "Loading...",
|
|
10
|
+
"Start Stream": "Start Stream",
|
|
11
|
+
"End Stream": "End Stream",
|
|
12
|
+
"Leave Stream": "Leave Stream",
|
|
13
|
+
"Live": "Live",
|
|
14
|
+
"You are first to Join the call.": "You are first to Join the call.",
|
|
10
15
|
"Participants ({{ numberOfParticipants }})": "Participants ({{ numberOfParticipants }})",
|
|
11
16
|
"{{ userName }} is sharing their screen": "{{ userName }} is sharing their screen",
|
|
12
17
|
"{{ numberOfParticipants }} participant(s) are in the call.": "{{ numberOfParticipants }} participant(s) are in the call.",
|
package/dist/module/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const version = '0.1.
|
|
1
|
+
export const version = '0.1.11';
|
|
2
2
|
//# sourceMappingURL=version.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["version"],"sourceRoot":"../../src","sources":["version.ts"],"mappings":"AAAA,OAAO,MAAMA,OAAO,GAAG,
|
|
1
|
+
{"version":3,"names":["version"],"sourceRoot":"../../src","sources":["version.ts"],"mappings":"AAAA,OAAO,MAAMA,OAAO,GAAG,QAAQ"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { HostLivestreamTopViewProps } from '../LivestreamTopView/HostLivestreamTopView';
|
|
3
|
+
import { HostLivestreamControlsProps } from '../LivestreamControls/HostLivestreamControls';
|
|
4
|
+
import { LivestreamLayoutProps } from '../LivestreamLayout';
|
|
5
|
+
/**
|
|
6
|
+
* Props for the HostLivestream component.
|
|
7
|
+
*/
|
|
8
|
+
export type HostLivestreamProps = HostLivestreamTopViewProps & HostLivestreamControlsProps & {
|
|
9
|
+
/**
|
|
10
|
+
* Component to customize the top view at the host's live stream.
|
|
11
|
+
*/
|
|
12
|
+
HostLivestreamTopView?: React.ComponentType<HostLivestreamTopViewProps> | null;
|
|
13
|
+
/**
|
|
14
|
+
* Component to customize the live stream video layout.
|
|
15
|
+
*/
|
|
16
|
+
LivestreamLayout?: React.ComponentType<LivestreamLayoutProps> | null;
|
|
17
|
+
/**
|
|
18
|
+
* Component to customize the bottom view controls at the host's live stream.
|
|
19
|
+
*/
|
|
20
|
+
HostLivestreamControls?: React.ComponentType<HostLivestreamControlsProps> | null;
|
|
21
|
+
/**
|
|
22
|
+
* Enable HTTP live streaming
|
|
23
|
+
*/
|
|
24
|
+
hls?: boolean;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* The HostLivestream component displays the UI for the Host's live stream.
|
|
28
|
+
*/
|
|
29
|
+
export declare const HostLivestream: ({ HostLivestreamTopView, HostLivestreamControls, LivestreamLayout, LiveIndicator, FollowerCount, DurationBadge, HostStartStreamButton, LivestreamMediaControls, onEndStreamHandler, onStartStreamHandler, hls, }: HostLivestreamProps) => React.JSX.Element;
|
|
30
|
+
//# sourceMappingURL=HostLivestream.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HostLivestream.d.ts","sourceRoot":"","sources":["../../../../../src/components/Livestream/HostLivestream/HostLivestream.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAEL,0BAA0B,EAC3B,MAAM,4CAA4C,CAAC;AACpD,OAAO,EAEL,2BAA2B,EAC5B,MAAM,8CAA8C,CAAC;AACtD,OAAO,EAEL,qBAAqB,EACtB,MAAM,qBAAqB,CAAC;AAE7B;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG,0BAA0B,GAC1D,2BAA2B,GAAG;IAC5B;;OAEG;IACH,qBAAqB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,0BAA0B,CAAC,GAAG,IAAI,CAAC;IAC/E;;OAEG;IACH,gBAAgB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,qBAAqB,CAAC,GAAG,IAAI,CAAC;IACrE;;OAEG;IACH,sBAAsB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,2BAA2B,CAAC,GAAG,IAAI,CAAC;IACjF;;OAEG;IACH,GAAG,CAAC,EAAE,OAAO,CAAC;CACf,CAAC;AAEJ;;GAEG;AACH,eAAO,MAAM,cAAc,qNAYxB,mBAAmB,sBAqCrB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Livestream/HostLivestream/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { HostStartStreamButtonProps } from './HostStartStreamButton';
|
|
3
|
+
import { LivestreamMediaControlsProps } from './LivestreamMediaControls';
|
|
4
|
+
/**
|
|
5
|
+
* Props for the HostLivestreamControls component.
|
|
6
|
+
*/
|
|
7
|
+
export type HostLivestreamControlsProps = HostStartStreamButtonProps & {
|
|
8
|
+
/**
|
|
9
|
+
* Component to customize the host's start/end live stream button.
|
|
10
|
+
*/
|
|
11
|
+
HostStartStreamButton?: React.ComponentType<HostStartStreamButtonProps> | null;
|
|
12
|
+
/**
|
|
13
|
+
* Component to customize the host's media control(audio/video) buttons.
|
|
14
|
+
*/
|
|
15
|
+
LivestreamMediaControls?: React.ComponentType<LivestreamMediaControlsProps> | null;
|
|
16
|
+
/**
|
|
17
|
+
* Enable HTTP live streaming
|
|
18
|
+
*/
|
|
19
|
+
hls?: boolean;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* The HostLivestreamControls component displays the call controls for the live stream at host's end.
|
|
23
|
+
*/
|
|
24
|
+
export declare const HostLivestreamControls: ({ HostStartStreamButton, LivestreamMediaControls, onEndStreamHandler, onStartStreamHandler, hls, }: HostLivestreamControlsProps) => React.JSX.Element;
|
|
25
|
+
//# sourceMappingURL=HostLivestreamControls.d.ts.map
|
package/dist/typescript/components/Livestream/LivestreamControls/HostLivestreamControls.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HostLivestreamControls.d.ts","sourceRoot":"","sources":["../../../../../src/components/Livestream/LivestreamControls/HostLivestreamControls.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAEL,0BAA0B,EAC3B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAEL,4BAA4B,EAC7B,MAAM,2BAA2B,CAAC;AAInC;;GAEG;AACH,MAAM,MAAM,2BAA2B,GAAG,0BAA0B,GAAG;IACrE;;OAEG;IACH,qBAAqB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,0BAA0B,CAAC,GAAG,IAAI,CAAC;IAC/E;;OAEG;IACH,uBAAuB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,4BAA4B,CAAC,GAAG,IAAI,CAAC;IACnF;;OAEG;IACH,GAAG,CAAC,EAAE,OAAO,CAAC;CACf,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,sBAAsB,uGAMhC,2BAA2B,sBA0B7B,CAAC"}
|