@stream-io/video-react-native-sdk 1.13.3 → 1.14.1
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 +22 -0
- package/android/gradle.properties +1 -1
- package/dist/commonjs/components/Livestream/LivestreamControls/ViewerLeaveStreamButton.js +23 -29
- package/dist/commonjs/components/Livestream/LivestreamControls/ViewerLeaveStreamButton.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamControls/ViewerLivestreamControls.js +187 -29
- package/dist/commonjs/components/Livestream/LivestreamControls/ViewerLivestreamControls.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamLayout/LivestreamLayout.js +1 -1
- package/dist/commonjs/components/Livestream/LivestreamLayout/LivestreamLayout.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamPlayer/LivestreamEnded.js +111 -0
- package/dist/commonjs/components/Livestream/LivestreamPlayer/LivestreamEnded.js.map +1 -0
- package/dist/commonjs/components/Livestream/LivestreamPlayer/LivestreamPlayer.js +5 -6
- package/dist/commonjs/components/Livestream/LivestreamPlayer/LivestreamPlayer.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamTopView/DurationBadge.js +32 -28
- package/dist/commonjs/components/Livestream/LivestreamTopView/DurationBadge.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamTopView/FollowerCount.js +36 -36
- package/dist/commonjs/components/Livestream/LivestreamTopView/FollowerCount.js.map +1 -1
- package/dist/commonjs/components/Livestream/LivestreamTopView/LiveIndicator.js +21 -15
- package/dist/commonjs/components/Livestream/LivestreamTopView/LiveIndicator.js.map +1 -1
- package/dist/commonjs/components/Livestream/ViewerLivestream/ViewerLivestream.js +70 -4
- package/dist/commonjs/components/Livestream/ViewerLivestream/ViewerLivestream.js.map +1 -1
- package/dist/commonjs/components/Livestream/ViewerLivestream/ViewerLobby.js +143 -0
- package/dist/commonjs/components/Livestream/ViewerLivestream/ViewerLobby.js.map +1 -0
- package/dist/commonjs/icons/LivestreamControls.js +73 -0
- package/dist/commonjs/icons/LivestreamControls.js.map +1 -0
- package/dist/commonjs/icons/Maximize.js +52 -0
- package/dist/commonjs/icons/Maximize.js.map +1 -0
- package/dist/commonjs/icons/index.js +11 -0
- package/dist/commonjs/icons/index.js.map +1 -1
- package/dist/commonjs/index.js +12 -0
- package/dist/commonjs/index.js.map +1 -1
- package/dist/commonjs/providers/NoiseCancellation/NoiseCancellationProvider.js +75 -0
- package/dist/commonjs/providers/NoiseCancellation/NoiseCancellationProvider.js.map +1 -0
- package/dist/commonjs/providers/NoiseCancellation/index.js +17 -0
- package/dist/commonjs/providers/NoiseCancellation/index.js.map +1 -0
- package/dist/commonjs/providers/NoiseCancellation/lib.js +34 -0
- package/dist/commonjs/providers/NoiseCancellation/lib.js.map +1 -0
- package/dist/commonjs/version.js +1 -1
- package/dist/module/components/Livestream/LivestreamControls/ViewerLeaveStreamButton.js +27 -33
- package/dist/module/components/Livestream/LivestreamControls/ViewerLeaveStreamButton.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamControls/ViewerLivestreamControls.js +187 -30
- package/dist/module/components/Livestream/LivestreamControls/ViewerLivestreamControls.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamLayout/LivestreamLayout.js +1 -1
- package/dist/module/components/Livestream/LivestreamLayout/LivestreamLayout.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamPlayer/LivestreamEnded.js +104 -0
- package/dist/module/components/Livestream/LivestreamPlayer/LivestreamEnded.js.map +1 -0
- package/dist/module/components/Livestream/LivestreamPlayer/LivestreamPlayer.js +5 -6
- package/dist/module/components/Livestream/LivestreamPlayer/LivestreamPlayer.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamTopView/DurationBadge.js +33 -29
- package/dist/module/components/Livestream/LivestreamTopView/DurationBadge.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamTopView/FollowerCount.js +35 -35
- package/dist/module/components/Livestream/LivestreamTopView/FollowerCount.js.map +1 -1
- package/dist/module/components/Livestream/LivestreamTopView/LiveIndicator.js +20 -14
- package/dist/module/components/Livestream/LivestreamTopView/LiveIndicator.js.map +1 -1
- package/dist/module/components/Livestream/ViewerLivestream/ViewerLivestream.js +73 -7
- package/dist/module/components/Livestream/ViewerLivestream/ViewerLivestream.js.map +1 -1
- package/dist/module/components/Livestream/ViewerLivestream/ViewerLobby.js +136 -0
- package/dist/module/components/Livestream/ViewerLivestream/ViewerLobby.js.map +1 -0
- package/dist/module/icons/LivestreamControls.js +62 -0
- package/dist/module/icons/LivestreamControls.js.map +1 -0
- package/dist/module/icons/Maximize.js +43 -0
- package/dist/module/icons/Maximize.js.map +1 -0
- package/dist/module/icons/index.js +1 -0
- package/dist/module/icons/index.js.map +1 -1
- package/dist/module/index.js +1 -0
- package/dist/module/index.js.map +1 -1
- package/dist/module/providers/NoiseCancellation/NoiseCancellationProvider.js +67 -0
- package/dist/module/providers/NoiseCancellation/NoiseCancellationProvider.js.map +1 -0
- package/dist/module/providers/NoiseCancellation/index.js +2 -0
- package/dist/module/providers/NoiseCancellation/index.js.map +1 -0
- package/dist/module/providers/NoiseCancellation/lib.js +26 -0
- package/dist/module/providers/NoiseCancellation/lib.js.map +1 -0
- package/dist/module/version.js +1 -1
- package/dist/typescript/components/Livestream/LivestreamControls/ViewerLeaveStreamButton.d.ts.map +1 -1
- package/dist/typescript/components/Livestream/LivestreamControls/ViewerLivestreamControls.d.ts +7 -0
- package/dist/typescript/components/Livestream/LivestreamControls/ViewerLivestreamControls.d.ts.map +1 -1
- package/dist/typescript/components/Livestream/LivestreamPlayer/LivestreamEnded.d.ts +3 -0
- package/dist/typescript/components/Livestream/LivestreamPlayer/LivestreamEnded.d.ts.map +1 -0
- package/dist/typescript/components/Livestream/LivestreamPlayer/LivestreamPlayer.d.ts +13 -1
- package/dist/typescript/components/Livestream/LivestreamPlayer/LivestreamPlayer.d.ts.map +1 -1
- package/dist/typescript/components/Livestream/LivestreamTopView/DurationBadge.d.ts.map +1 -1
- package/dist/typescript/components/Livestream/LivestreamTopView/FollowerCount.d.ts.map +1 -1
- package/dist/typescript/components/Livestream/LivestreamTopView/LiveIndicator.d.ts.map +1 -1
- package/dist/typescript/components/Livestream/ViewerLivestream/ViewerLivestream.d.ts +9 -1
- package/dist/typescript/components/Livestream/ViewerLivestream/ViewerLivestream.d.ts.map +1 -1
- package/dist/typescript/components/Livestream/ViewerLivestream/ViewerLobby.d.ts +8 -0
- package/dist/typescript/components/Livestream/ViewerLivestream/ViewerLobby.d.ts.map +1 -0
- package/dist/typescript/icons/LivestreamControls.d.ts +12 -0
- package/dist/typescript/icons/LivestreamControls.d.ts.map +1 -0
- package/dist/typescript/icons/Maximize.d.ts +10 -0
- package/dist/typescript/icons/Maximize.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/index.d.ts +1 -0
- package/dist/typescript/index.d.ts.map +1 -1
- package/dist/typescript/providers/NoiseCancellation/NoiseCancellationProvider.d.ts +34 -0
- package/dist/typescript/providers/NoiseCancellation/NoiseCancellationProvider.d.ts.map +1 -0
- package/dist/typescript/providers/NoiseCancellation/index.d.ts +2 -0
- package/dist/typescript/providers/NoiseCancellation/index.d.ts.map +1 -0
- package/dist/typescript/providers/NoiseCancellation/lib.d.ts +8 -0
- package/dist/typescript/providers/NoiseCancellation/lib.d.ts.map +1 -0
- package/dist/typescript/version.d.ts +1 -1
- package/expo-config-plugin/dist/index.js +2 -0
- package/expo-config-plugin/dist/withAndroidPermissions.js +1 -0
- package/expo-config-plugin/dist/withAppDelegate.js +26 -7
- package/expo-config-plugin/dist/withMainApplication.js +24 -0
- package/package.json +10 -5
- package/src/components/Livestream/LivestreamControls/ViewerLeaveStreamButton.tsx +30 -48
- package/src/components/Livestream/LivestreamControls/ViewerLivestreamControls.tsx +260 -43
- package/src/components/Livestream/LivestreamLayout/LivestreamLayout.tsx +1 -1
- package/src/components/Livestream/LivestreamPlayer/LivestreamEnded.tsx +130 -0
- package/src/components/Livestream/LivestreamPlayer/LivestreamPlayer.tsx +15 -5
- package/src/components/Livestream/LivestreamTopView/DurationBadge.tsx +35 -38
- package/src/components/Livestream/LivestreamTopView/FollowerCount.tsx +40 -47
- package/src/components/Livestream/LivestreamTopView/LiveIndicator.tsx +22 -14
- package/src/components/Livestream/ViewerLivestream/ViewerLivestream.tsx +107 -10
- package/src/components/Livestream/ViewerLivestream/ViewerLobby.tsx +171 -0
- package/src/icons/LivestreamControls.tsx +51 -0
- package/src/icons/Maximize.tsx +48 -0
- package/src/icons/index.tsx +1 -0
- package/src/index.ts +1 -0
- package/src/providers/NoiseCancellation/NoiseCancellationProvider.tsx +147 -0
- package/src/providers/NoiseCancellation/index.ts +1 -0
- package/src/providers/NoiseCancellation/lib.ts +37 -0
- package/src/version.ts +1 -1
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Path, Svg } from 'react-native-svg';
|
|
3
|
+
export const VolumeOn = ({
|
|
4
|
+
color,
|
|
5
|
+
size
|
|
6
|
+
}) => /*#__PURE__*/React.createElement(Svg, {
|
|
7
|
+
viewBox: "0 0 24 24",
|
|
8
|
+
width: size,
|
|
9
|
+
height: size
|
|
10
|
+
}, /*#__PURE__*/React.createElement(Path, {
|
|
11
|
+
d: "M14 5.6v12.8c0 .88-1.04 1.32-1.66.8L7.5 15H5c-.6 0-1-.4-1-1v-4c0-.6.4-1 1-1h2.5l4.84-4.2c.62-.52 1.66-.08 1.66.8z",
|
|
12
|
+
fill: color
|
|
13
|
+
}), /*#__PURE__*/React.createElement(Path, {
|
|
14
|
+
d: "M16.5 8.5c1 1 1.5 2.3 1.5 3.5s-.5 2.5-1.5 3.5",
|
|
15
|
+
stroke: color,
|
|
16
|
+
strokeWidth: 1.5,
|
|
17
|
+
strokeLinecap: "round"
|
|
18
|
+
}), /*#__PURE__*/React.createElement(Path, {
|
|
19
|
+
d: "M18 6c1.5 1.5 2.5 3.6 2.5 6s-1 4.5-2.5 6",
|
|
20
|
+
stroke: color,
|
|
21
|
+
strokeWidth: 1.5,
|
|
22
|
+
strokeLinecap: "round"
|
|
23
|
+
}));
|
|
24
|
+
export const VolumeOff = ({
|
|
25
|
+
color,
|
|
26
|
+
size
|
|
27
|
+
}) => /*#__PURE__*/React.createElement(Svg, {
|
|
28
|
+
viewBox: "0 0 24 24",
|
|
29
|
+
width: size,
|
|
30
|
+
height: size
|
|
31
|
+
}, /*#__PURE__*/React.createElement(Path, {
|
|
32
|
+
d: "M14 5.6v12.8c0 .88-1.04 1.32-1.66.8L7.5 15H5c-.6 0-1-.4-1-1v-4c0-.6.4-1 1-1h2.5l4.84-4.2c.62-.52 1.66-.08 1.66.8z",
|
|
33
|
+
fill: color
|
|
34
|
+
}), /*#__PURE__*/React.createElement(Path, {
|
|
35
|
+
d: "M3 3L21 21",
|
|
36
|
+
stroke: color,
|
|
37
|
+
strokeWidth: 2,
|
|
38
|
+
strokeLinecap: "round"
|
|
39
|
+
}));
|
|
40
|
+
export const PlayIcon = ({
|
|
41
|
+
color,
|
|
42
|
+
size
|
|
43
|
+
}) => /*#__PURE__*/React.createElement(Svg, {
|
|
44
|
+
viewBox: "0 0 24 24",
|
|
45
|
+
width: size,
|
|
46
|
+
height: size
|
|
47
|
+
}, /*#__PURE__*/React.createElement(Path, {
|
|
48
|
+
d: "M8 5v14l11-7z",
|
|
49
|
+
fill: color
|
|
50
|
+
}));
|
|
51
|
+
export const PauseIcon = ({
|
|
52
|
+
color,
|
|
53
|
+
size
|
|
54
|
+
}) => /*#__PURE__*/React.createElement(Svg, {
|
|
55
|
+
viewBox: "0 0 24 24",
|
|
56
|
+
width: size,
|
|
57
|
+
height: size
|
|
58
|
+
}, /*#__PURE__*/React.createElement(Path, {
|
|
59
|
+
d: "M6 19h4V5H6v14zm8-14v14h4V5h-4z",
|
|
60
|
+
fill: color
|
|
61
|
+
}));
|
|
62
|
+
//# sourceMappingURL=LivestreamControls.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","Path","Svg","VolumeOn","color","size","createElement","viewBox","width","height","d","fill","stroke","strokeWidth","strokeLinecap","VolumeOff","PlayIcon","PauseIcon"],"sourceRoot":"../../../src","sources":["icons/LivestreamControls.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,GAAG,QAAQ,kBAAkB;AAQ5C,OAAO,MAAMC,QAAQ,GAAGA,CAAC;EAAEC,KAAK;EAAEC;AAAgB,CAAC,kBACjDL,KAAA,CAAAM,aAAA,CAACJ,GAAG;EAACK,OAAO,EAAC,WAAW;EAACC,KAAK,EAAEH,IAAK;EAACI,MAAM,EAAEJ;AAAK,gBACjDL,KAAA,CAAAM,aAAA,CAACL,IAAI;EACHS,CAAC,EAAC,mHAAmH;EACrHC,IAAI,EAAEP;AAAM,CACb,CAAC,eACFJ,KAAA,CAAAM,aAAA,CAACL,IAAI;EACHS,CAAC,EAAC,+CAA+C;EACjDE,MAAM,EAAER,KAAM;EACdS,WAAW,EAAE,GAAI;EACjBC,aAAa,EAAC;AAAO,CACtB,CAAC,eACFd,KAAA,CAAAM,aAAA,CAACL,IAAI;EACHS,CAAC,EAAC,0CAA0C;EAC5CE,MAAM,EAAER,KAAM;EACdS,WAAW,EAAE,GAAI;EACjBC,aAAa,EAAC;AAAO,CACtB,CACE,CACN;AAED,OAAO,MAAMC,SAAS,GAAGA,CAAC;EAAEX,KAAK;EAAEC;AAAgB,CAAC,kBAClDL,KAAA,CAAAM,aAAA,CAACJ,GAAG;EAACK,OAAO,EAAC,WAAW;EAACC,KAAK,EAAEH,IAAK;EAACI,MAAM,EAAEJ;AAAK,gBACjDL,KAAA,CAAAM,aAAA,CAACL,IAAI;EACHS,CAAC,EAAC,mHAAmH;EACrHC,IAAI,EAAEP;AAAM,CACb,CAAC,eACFJ,KAAA,CAAAM,aAAA,CAACL,IAAI;EAACS,CAAC,EAAC,YAAY;EAACE,MAAM,EAAER,KAAM;EAACS,WAAW,EAAE,CAAE;EAACC,aAAa,EAAC;AAAO,CAAE,CACxE,CACN;AAED,OAAO,MAAME,QAAQ,GAAGA,CAAC;EAAEZ,KAAK;EAAEC;AAAgB,CAAC,kBACjDL,KAAA,CAAAM,aAAA,CAACJ,GAAG;EAACK,OAAO,EAAC,WAAW;EAACC,KAAK,EAAEH,IAAK;EAACI,MAAM,EAAEJ;AAAK,gBACjDL,KAAA,CAAAM,aAAA,CAACL,IAAI;EAACS,CAAC,EAAC,eAAe;EAACC,IAAI,EAAEP;AAAM,CAAE,CACnC,CACN;AAED,OAAO,MAAMa,SAAS,GAAGA,CAAC;EAAEb,KAAK;EAAEC;AAAgB,CAAC,kBAClDL,KAAA,CAAAM,aAAA,CAACJ,GAAG;EAACK,OAAO,EAAC,WAAW;EAACC,KAAK,EAAEH,IAAK;EAACI,MAAM,EAAEJ;AAAK,gBACjDL,KAAA,CAAAM,aAAA,CAACL,IAAI;EAACS,CAAC,EAAC,iCAAiC;EAACC,IAAI,EAAEP;AAAM,CAAE,CACrD,CACN","ignoreList":[]}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Svg, { Path } from 'react-native-svg';
|
|
3
|
+
export const Maximize = ({
|
|
4
|
+
color,
|
|
5
|
+
width,
|
|
6
|
+
height
|
|
7
|
+
}) => {
|
|
8
|
+
return /*#__PURE__*/React.createElement(Svg, {
|
|
9
|
+
width: width,
|
|
10
|
+
height: height,
|
|
11
|
+
viewBox: "0 0 24 24",
|
|
12
|
+
fill: "none"
|
|
13
|
+
}, /*#__PURE__*/React.createElement(Path, {
|
|
14
|
+
d: "M8 3V5H4V9H2V3H8Z",
|
|
15
|
+
fill: color,
|
|
16
|
+
stroke: color,
|
|
17
|
+
strokeWidth: 2,
|
|
18
|
+
strokeLinecap: "round",
|
|
19
|
+
strokeLinejoin: "round"
|
|
20
|
+
}), /*#__PURE__*/React.createElement(Path, {
|
|
21
|
+
d: "M16 3H22V9H20V5H16V3Z",
|
|
22
|
+
fill: color,
|
|
23
|
+
stroke: color,
|
|
24
|
+
strokeWidth: 2,
|
|
25
|
+
strokeLinecap: "round",
|
|
26
|
+
strokeLinejoin: "round"
|
|
27
|
+
}), /*#__PURE__*/React.createElement(Path, {
|
|
28
|
+
d: "M4 15H2V21H8V19H4V15Z",
|
|
29
|
+
fill: color,
|
|
30
|
+
stroke: color,
|
|
31
|
+
strokeWidth: 2,
|
|
32
|
+
strokeLinecap: "round",
|
|
33
|
+
strokeLinejoin: "round"
|
|
34
|
+
}), /*#__PURE__*/React.createElement(Path, {
|
|
35
|
+
d: "M20 15V19H16V21H22V15H20Z",
|
|
36
|
+
fill: color,
|
|
37
|
+
stroke: color,
|
|
38
|
+
strokeWidth: 2,
|
|
39
|
+
strokeLinecap: "round",
|
|
40
|
+
strokeLinejoin: "round"
|
|
41
|
+
}));
|
|
42
|
+
};
|
|
43
|
+
//# sourceMappingURL=Maximize.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","Svg","Path","Maximize","color","width","height","createElement","viewBox","fill","d","stroke","strokeWidth","strokeLinecap","strokeLinejoin"],"sourceRoot":"../../../src","sources":["icons/Maximize.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,OAAOC,GAAG,IAAIC,IAAI,QAAQ,kBAAkB;AAQ5C,OAAO,MAAMC,QAAQ,GAAGA,CAAC;EAAEC,KAAK;EAAEC,KAAK;EAAEC;AAAkB,CAAC,KAAK;EAC/D,oBACEN,KAAA,CAAAO,aAAA,CAACN,GAAG;IAACI,KAAK,EAAEA,KAAM;IAACC,MAAM,EAAEA,MAAO;IAACE,OAAO,EAAC,WAAW;IAACC,IAAI,EAAC;EAAM,gBAChET,KAAA,CAAAO,aAAA,CAACL,IAAI;IACHQ,CAAC,EAAC,mBAAmB;IACrBD,IAAI,EAAEL,KAAM;IACZO,MAAM,EAAEP,KAAM;IACdQ,WAAW,EAAE,CAAE;IACfC,aAAa,EAAC,OAAO;IACrBC,cAAc,EAAC;EAAO,CACvB,CAAC,eACFd,KAAA,CAAAO,aAAA,CAACL,IAAI;IACHQ,CAAC,EAAC,uBAAuB;IACzBD,IAAI,EAAEL,KAAM;IACZO,MAAM,EAAEP,KAAM;IACdQ,WAAW,EAAE,CAAE;IACfC,aAAa,EAAC,OAAO;IACrBC,cAAc,EAAC;EAAO,CACvB,CAAC,eACFd,KAAA,CAAAO,aAAA,CAACL,IAAI;IACHQ,CAAC,EAAC,uBAAuB;IACzBD,IAAI,EAAEL,KAAM;IACZO,MAAM,EAAEP,KAAM;IACdQ,WAAW,EAAE,CAAE;IACfC,aAAa,EAAC,OAAO;IACrBC,cAAc,EAAC;EAAO,CACvB,CAAC,eACFd,KAAA,CAAAO,aAAA,CAACL,IAAI;IACHQ,CAAC,EAAC,2BAA2B;IAC7BD,IAAI,EAAEL,KAAM;IACZO,MAAM,EAAEP,KAAM;IACdQ,WAAW,EAAE,CAAE;IACfC,aAAa,EAAC,OAAO;IACrBC,cAAc,EAAC;EAAO,CACvB,CACE,CAAC;AAEV,CAAC","ignoreList":[]}
|
|
@@ -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,aAAa;AAC3B,cAAc,eAAe;AAC7B,cAAc,aAAa;AAC3B,cAAc,wBAAwB;AACtC,cAAc,eAAe;AAC7B,cAAc,YAAY;AAC1B,cAAc,qBAAqB;AACnC,cAAc,OAAO;AACrB,cAAc,eAAe;AAC7B,cAAc,mBAAmB;AACjC,cAAc,mBAAmB;AACjC,cAAc,iBAAiB;AAC/B,cAAc,mBAAmB;AACjC,cAAc,eAAe","ignoreList":[]}
|
|
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,aAAa;AAC3B,cAAc,eAAe;AAC7B,cAAc,aAAa;AAC3B,cAAc,wBAAwB;AACtC,cAAc,eAAe;AAC7B,cAAc,YAAY;AAC1B,cAAc,qBAAqB;AACnC,cAAc,OAAO;AACrB,cAAc,eAAe;AAC7B,cAAc,mBAAmB;AACjC,cAAc,mBAAmB;AACjC,cAAc,iBAAiB;AAC/B,cAAc,mBAAmB;AACjC,cAAc,eAAe;AAC7B,cAAc,YAAY","ignoreList":[]}
|
package/dist/module/index.js
CHANGED
|
@@ -31,5 +31,6 @@ export * from './translations';
|
|
|
31
31
|
// Explicitly re-exporting to resolve ambiguity.
|
|
32
32
|
export { StreamVideo } from './providers/StreamVideo';
|
|
33
33
|
export { StreamCall } from './providers/StreamCall';
|
|
34
|
+
export * from './providers/NoiseCancellation';
|
|
34
35
|
setClientDetails();
|
|
35
36
|
//# sourceMappingURL=index.js.map
|
package/dist/module/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["setClientDetails","registerGlobals","Logger","Platform","OS","enable","ROOT_PREFIX","StreamVideo","StreamCall"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":"AAAA,SAASA,gBAAgB,QAAQ,0BAA0B;AAC3D;AACA,OAAO,wBAAwB;AAC/B;AACA,OAAO,gCAAgC;AACvC;AACA,OAAO,kBAAkB;AACzB,SAASC,eAAe,QAAQ,gCAAgC;AAChE,OAAOC,MAAM,MAAM,2CAA2C;AAC9D,SAASC,QAAQ,QAAQ,cAAc;;AAEvC;AACA;AACA;AACA,IAAIA,QAAQ,CAACC,EAAE,KAAK,KAAK,EAAE;EACzBH,eAAe,CAAC,CAAC;AACnB;;AAEA;AACAC,MAAM,CAACG,MAAM,CAAC,GAAGH,MAAM,CAACI,WAAW,eAAe,CAAC;AAEnD,cAAc,yBAAyB;AACvC,cAAc,iCAAiC;AAC/C,cAAc,cAAc;AAC5B,cAAc,YAAY;AAC1B,cAAc,SAAS;AACvB,cAAc,SAAS;AACvB,cAAc,SAAS;AACvB,cAAc,gBAAgB;;AAE9B;AACA;AACA,SAASC,WAAW,QAAQ,yBAAyB;AACrD,SAASC,UAAU,QAAQ,wBAAwB;
|
|
1
|
+
{"version":3,"names":["setClientDetails","registerGlobals","Logger","Platform","OS","enable","ROOT_PREFIX","StreamVideo","StreamCall"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":"AAAA,SAASA,gBAAgB,QAAQ,0BAA0B;AAC3D;AACA,OAAO,wBAAwB;AAC/B;AACA,OAAO,gCAAgC;AACvC;AACA,OAAO,kBAAkB;AACzB,SAASC,eAAe,QAAQ,gCAAgC;AAChE,OAAOC,MAAM,MAAM,2CAA2C;AAC9D,SAASC,QAAQ,QAAQ,cAAc;;AAEvC;AACA;AACA;AACA,IAAIA,QAAQ,CAACC,EAAE,KAAK,KAAK,EAAE;EACzBH,eAAe,CAAC,CAAC;AACnB;;AAEA;AACAC,MAAM,CAACG,MAAM,CAAC,GAAGH,MAAM,CAACI,WAAW,eAAe,CAAC;AAEnD,cAAc,yBAAyB;AACvC,cAAc,iCAAiC;AAC/C,cAAc,cAAc;AAC5B,cAAc,YAAY;AAC1B,cAAc,SAAS;AACvB,cAAc,SAAS;AACvB,cAAc,SAAS;AACvB,cAAc,gBAAgB;;AAE9B;AACA;AACA,SAASC,WAAW,QAAQ,yBAAyB;AACrD,SAASC,UAAU,QAAQ,wBAAwB;AACnD,cAAc,+BAA+B;AAE7CR,gBAAgB,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import React, { createContext, useContext, useEffect, useState } from 'react';
|
|
2
|
+
import { getLogger, NoiseCancellationSettingsModeEnum, OwnCapability } from '@stream-io/video-client';
|
|
3
|
+
import { useCall, useCallStateHooks } from '@stream-io/video-react-bindings';
|
|
4
|
+
import { getNoiseCancellationLibThrowIfNotInstalled, NoiseCancellationWrapper } from './lib';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* The Noise Cancellation API.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
const NoiseCancellationContext = /*#__PURE__*/createContext(null);
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Exposes the NoiseCancellation API.
|
|
14
|
+
* Throws an error if used outside <NoiseCancellationProvider />.
|
|
15
|
+
*/
|
|
16
|
+
export const useNoiseCancellation = () => {
|
|
17
|
+
const context = useContext(NoiseCancellationContext);
|
|
18
|
+
if (!context) {
|
|
19
|
+
throw new Error('useNoiseCancellation must be used within a NoiseCancellationProvider');
|
|
20
|
+
}
|
|
21
|
+
return context;
|
|
22
|
+
};
|
|
23
|
+
export const NoiseCancellationProvider = props => {
|
|
24
|
+
const call = useCall();
|
|
25
|
+
const [deviceSupportsAdvancedAudioProcessing, setDeviceSupportsAdvancedAudioProcessing] = useState();
|
|
26
|
+
const {
|
|
27
|
+
useCallSettings,
|
|
28
|
+
useHasPermissions
|
|
29
|
+
} = useCallStateHooks();
|
|
30
|
+
const settings = useCallSettings();
|
|
31
|
+
const noiseCancellationAllowed = !!(settings && settings.audio.noise_cancellation && settings.audio.noise_cancellation.mode !== NoiseCancellationSettingsModeEnum.DISABLED);
|
|
32
|
+
const hasCapability = useHasPermissions(OwnCapability.ENABLE_NOISE_CANCELLATION);
|
|
33
|
+
const [isEnabled, setIsEnabled] = useState(false);
|
|
34
|
+
useEffect(() => {
|
|
35
|
+
const noiseCancellationNativeLib = getNoiseCancellationLibThrowIfNotInstalled();
|
|
36
|
+
noiseCancellationNativeLib.deviceSupportsAdvancedAudioProcessing().then(result => setDeviceSupportsAdvancedAudioProcessing(result));
|
|
37
|
+
noiseCancellationNativeLib.isEnabled().then(e => setIsEnabled(e));
|
|
38
|
+
}, []);
|
|
39
|
+
const isSupported = hasCapability && noiseCancellationAllowed;
|
|
40
|
+
useEffect(() => {
|
|
41
|
+
if (!call || !isSupported) return;
|
|
42
|
+
const ncInstance = NoiseCancellationWrapper.getInstance();
|
|
43
|
+
const unsubscribe = ncInstance.on('change', v => setIsEnabled(v));
|
|
44
|
+
call.microphone.enableNoiseCancellation(ncInstance).catch(err => getLogger(['NoiseCancellationProvider'])('error', `Can't initialize noise suppression`, err));
|
|
45
|
+
return () => {
|
|
46
|
+
call.microphone.disableNoiseCancellation().catch(err => getLogger(['NoiseCancellationProvider'])('error', `Can't disable noise suppression`, err));
|
|
47
|
+
unsubscribe();
|
|
48
|
+
};
|
|
49
|
+
}, [call, isSupported]);
|
|
50
|
+
return /*#__PURE__*/React.createElement(NoiseCancellationContext.Provider, {
|
|
51
|
+
value: {
|
|
52
|
+
deviceSupportsAdvancedAudioProcessing,
|
|
53
|
+
isSupported,
|
|
54
|
+
isEnabled,
|
|
55
|
+
setEnabled: enabledOrSetter => {
|
|
56
|
+
const ncInstance = NoiseCancellationWrapper.getInstance();
|
|
57
|
+
const enable = typeof enabledOrSetter === 'function' ? enabledOrSetter(isEnabled) : enabledOrSetter;
|
|
58
|
+
if (enable) {
|
|
59
|
+
ncInstance.enable();
|
|
60
|
+
} else {
|
|
61
|
+
ncInstance.disable();
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}, props.children);
|
|
66
|
+
};
|
|
67
|
+
//# sourceMappingURL=NoiseCancellationProvider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","createContext","useContext","useEffect","useState","getLogger","NoiseCancellationSettingsModeEnum","OwnCapability","useCall","useCallStateHooks","getNoiseCancellationLibThrowIfNotInstalled","NoiseCancellationWrapper","NoiseCancellationContext","useNoiseCancellation","context","Error","NoiseCancellationProvider","props","call","deviceSupportsAdvancedAudioProcessing","setDeviceSupportsAdvancedAudioProcessing","useCallSettings","useHasPermissions","settings","noiseCancellationAllowed","audio","noise_cancellation","mode","DISABLED","hasCapability","ENABLE_NOISE_CANCELLATION","isEnabled","setIsEnabled","noiseCancellationNativeLib","then","result","e","isSupported","ncInstance","getInstance","unsubscribe","on","v","microphone","enableNoiseCancellation","catch","err","disableNoiseCancellation","createElement","Provider","value","setEnabled","enabledOrSetter","enable","disable","children"],"sourceRoot":"../../../../src","sources":["providers/NoiseCancellation/NoiseCancellationProvider.tsx"],"mappings":"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","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["providers/NoiseCancellation/index.ts"],"mappings":"AAAA,cAAc,6BAA6B","ignoreList":[]}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
let noiseCancellationLib;
|
|
2
|
+
try {
|
|
3
|
+
noiseCancellationLib = require('@stream-io/noise-cancellation-react-native');
|
|
4
|
+
} catch {}
|
|
5
|
+
export function getNoiseCancellationLibThrowIfNotInstalled() {
|
|
6
|
+
if (!noiseCancellationLib) {
|
|
7
|
+
throw Error('@stream-io/noise-cancellation-react-native is not installed. It is required for implementing noise cancellation. ');
|
|
8
|
+
}
|
|
9
|
+
return noiseCancellationLib;
|
|
10
|
+
}
|
|
11
|
+
export class NoiseCancellationWrapper {
|
|
12
|
+
constructor() {}
|
|
13
|
+
static getInstance() {
|
|
14
|
+
if (!this.noiseCancellationInstance) {
|
|
15
|
+
const ncLib = getNoiseCancellationLibThrowIfNotInstalled();
|
|
16
|
+
this.noiseCancellationInstance = new ncLib.NoiseCancellation();
|
|
17
|
+
}
|
|
18
|
+
return this.noiseCancellationInstance;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/*
|
|
23
|
+
IMPORTANT: must keep a failing import in a different file
|
|
24
|
+
Else on commonjs, metro doesnt resolve any other modules properly in a file, if one of the module is not installed
|
|
25
|
+
*/
|
|
26
|
+
//# sourceMappingURL=lib.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["noiseCancellationLib","require","getNoiseCancellationLibThrowIfNotInstalled","Error","NoiseCancellationWrapper","constructor","getInstance","noiseCancellationInstance","ncLib","NoiseCancellation"],"sourceRoot":"../../../../src","sources":["providers/NoiseCancellation/lib.ts"],"mappings":"AAEA,IAAIA,oBAAsC;AAE1C,IAAI;EACFA,oBAAoB,GAAGC,OAAO,CAAC,4CAA4C,CAAC;AAC9E,CAAC,CAAC,MAAM,CAAC;AAET,OAAO,SAASC,0CAA0CA,CAAA,EAAG;EAC3D,IAAI,CAACF,oBAAoB,EAAE;IACzB,MAAMG,KAAK,CACT,mHACF,CAAC;EACH;EACA,OAAOH,oBAAoB;AAC7B;AAEA,OAAO,MAAMI,wBAAwB,CAAC;EAK5BC,WAAWA,CAAA,EAAG,CAAC;EAEvB,OAAOC,WAAWA,CAAA,EAA4C;IAC5D,IAAI,CAAC,IAAI,CAACC,yBAAyB,EAAE;MACnC,MAAMC,KAAK,GAAGN,0CAA0C,CAAC,CAAC;MAC1D,IAAI,CAACK,yBAAyB,GAAG,IAAIC,KAAK,CAACC,iBAAiB,CAAC,CAAC;IAChE;IACA,OAAO,IAAI,CAACF,yBAAyB;EACvC;AACF;;AAEA;AACA;AACA;AACA","ignoreList":[]}
|
package/dist/module/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const version = '1.
|
|
1
|
+
export const version = '1.14.1';
|
|
2
2
|
//# sourceMappingURL=version.js.map
|
package/dist/typescript/components/Livestream/LivestreamControls/ViewerLeaveStreamButton.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ViewerLeaveStreamButton.d.ts","sourceRoot":"","sources":["../../../../../src/components/Livestream/LivestreamControls/ViewerLeaveStreamButton.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"ViewerLeaveStreamButton.d.ts","sourceRoot":"","sources":["../../../../../src/components/Livestream/LivestreamControls/ViewerLeaveStreamButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAOjD;;GAEG;AACH,MAAM,MAAM,4BAA4B,GAAG;IACzC;;;OAGG;IACH,oBAAoB,CAAC,EAAE,MAAM,IAAI,CAAC;CACnC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,uBAAuB,GAAI,2BAErC,4BAA4B,sBAyC9B,CAAC"}
|
package/dist/typescript/components/Livestream/LivestreamControls/ViewerLivestreamControls.d.ts
CHANGED
|
@@ -9,6 +9,13 @@ export type ViewerLivestreamControlsProps = ViewerLeaveStreamButtonProps & {
|
|
|
9
9
|
* Component to customize the leave stream button on the viewer's end live stream.
|
|
10
10
|
*/
|
|
11
11
|
ViewerLeaveStreamButton?: React.ComponentType<ViewerLeaveStreamButtonProps> | null;
|
|
12
|
+
/**
|
|
13
|
+
* Handler to be called when the leave stream button is pressed.
|
|
14
|
+
*/
|
|
15
|
+
onLeaveStreamHandler?: () => void;
|
|
16
|
+
/**
|
|
17
|
+
* Handler to be called when the layout of the component changes.
|
|
18
|
+
*/
|
|
12
19
|
onLayout?: ViewProps['onLayout'];
|
|
13
20
|
};
|
|
14
21
|
/**
|
package/dist/typescript/components/Livestream/LivestreamControls/ViewerLivestreamControls.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ViewerLivestreamControls.d.ts","sourceRoot":"","sources":["../../../../../src/components/Livestream/LivestreamControls/ViewerLivestreamControls.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"ViewerLivestreamControls.d.ts","sourceRoot":"","sources":["../../../../../src/components/Livestream/LivestreamControls/ViewerLivestreamControls.tsx"],"names":[],"mappings":"AAAA,OAAO,KAMN,MAAM,OAAO,CAAC;AACf,OAAO,EAA+B,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAC3E,OAAO,EAEL,KAAK,4BAA4B,EAClC,MAAM,2BAA2B,CAAC;AAiBnC;;GAEG;AACH,MAAM,MAAM,6BAA6B,GAAG,4BAA4B,GAAG;IACzE;;OAEG;IACH,uBAAuB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,4BAA4B,CAAC,GAAG,IAAI,CAAC;IAEnF;;OAEG;IACH,oBAAoB,CAAC,EAAE,MAAM,IAAI,CAAC;IAElC;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC,UAAU,CAAC,CAAC;CAClC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,wBAAwB,GAAI,8DAItC,6BAA6B,sBAyJ/B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LivestreamEnded.d.ts","sourceRoot":"","sources":["../../../../../src/components/Livestream/LivestreamPlayer/LivestreamEnded.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAc1B,eAAO,MAAM,aAAa,yBA0EzB,CAAC"}
|
|
@@ -14,6 +14,18 @@ export type LivestreamPlayerProps = {
|
|
|
14
14
|
* **Default** [ViewerLivestream](https://github.com/GetStream/stream-video-js/blob/main/packages/react-native-sdk/src/components/Livestream/ViewerLivestream/ViewerLivestream.tsx)
|
|
15
15
|
*/
|
|
16
16
|
ViewerLivestream?: React.ComponentType<ViewerLivestreamProps>;
|
|
17
|
+
/**
|
|
18
|
+
* Determines when the viewer joins the call.
|
|
19
|
+
*
|
|
20
|
+
* `"asap"` behavior means joining the call as soon as it is possible
|
|
21
|
+
* (either the `join_ahead_time_seconds` setting allows it, or the user
|
|
22
|
+
* has a the capability to join backstage).
|
|
23
|
+
*
|
|
24
|
+
* `"live"` behavior means joining the call when it goes live.
|
|
25
|
+
*
|
|
26
|
+
* @default "asap"
|
|
27
|
+
*/
|
|
28
|
+
joinBehavior?: 'asap' | 'live';
|
|
17
29
|
};
|
|
18
|
-
export declare const LivestreamPlayer: ({ callType, callId, ViewerLivestream, }: LivestreamPlayerProps) => React.JSX.Element | null;
|
|
30
|
+
export declare const LivestreamPlayer: ({ callType, callId, ViewerLivestream, joinBehavior, }: LivestreamPlayerProps) => React.JSX.Element | null;
|
|
19
31
|
//# sourceMappingURL=LivestreamPlayer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LivestreamPlayer.d.ts","sourceRoot":"","sources":["../../../../../src/components/Livestream/LivestreamPlayer/LivestreamPlayer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AACnD,OAAO,EAEL,KAAK,qBAAqB,EAC3B,MAAM,qBAAqB,CAAC;AAK7B,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,gBAAgB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,qBAAqB,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"LivestreamPlayer.d.ts","sourceRoot":"","sources":["../../../../../src/components/Livestream/LivestreamPlayer/LivestreamPlayer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AACnD,OAAO,EAEL,KAAK,qBAAqB,EAC3B,MAAM,qBAAqB,CAAC;AAK7B,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,gBAAgB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,qBAAqB,CAAC,CAAC;IAE9D;;;;;;;;;;OAUG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAChC,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,uDAK9B,qBAAqB,6BA2CvB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DurationBadge.d.ts","sourceRoot":"","sources":["../../../../../src/components/Livestream/LivestreamTopView/DurationBadge.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"DurationBadge.d.ts","sourceRoot":"","sources":["../../../../../src/components/Livestream/LivestreamTopView/DurationBadge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAS5D;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC;CAC1B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,aAAa,GAAI,UAAU,kBAAkB,sBAsHzD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FollowerCount.d.ts","sourceRoot":"","sources":["../../../../../src/components/Livestream/LivestreamTopView/FollowerCount.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"FollowerCount.d.ts","sourceRoot":"","sources":["../../../../../src/components/Livestream/LivestreamTopView/FollowerCount.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAMvC;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,EAAE,CAAC;AAEpC;;GAEG;AACH,eAAO,MAAM,aAAa,GAAI,IAAI,kBAAkB,sBAmBnD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LiveIndicator.d.ts","sourceRoot":"","sources":["../../../../../src/components/Livestream/LivestreamTopView/LiveIndicator.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"LiveIndicator.d.ts","sourceRoot":"","sources":["../../../../../src/components/Livestream/LivestreamTopView/LiveIndicator.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAKvC;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,EAAE,CAAC;AAEpC;;GAEG;AACH,eAAO,MAAM,aAAa,GAAI,IAAI,kBAAkB,sBA0BnD,CAAC"}
|
|
@@ -24,9 +24,17 @@ export type ViewerLivestreamProps = ViewerLivestreamTopViewProps & ViewerLivestr
|
|
|
24
24
|
* Component to customize the FloatingParticipantView when screen is shared.
|
|
25
25
|
*/
|
|
26
26
|
FloatingParticipantView?: React.ComponentType<FloatingParticipantViewProps> | null;
|
|
27
|
+
/**
|
|
28
|
+
* Determines when the viewer joins the call.
|
|
29
|
+
*
|
|
30
|
+
* `"asap"` behavior means joining the call as soon as it is possible
|
|
31
|
+
* (either the `join_ahead_time_seconds` setting allows it, or the user
|
|
32
|
+
* has a the capability to join backstage).
|
|
33
|
+
*/
|
|
34
|
+
joinBehavior?: 'asap' | 'live';
|
|
27
35
|
};
|
|
28
36
|
/**
|
|
29
37
|
* The ViewerLivestream component renders the UI for the Viewer's live stream.
|
|
30
38
|
*/
|
|
31
|
-
export declare const ViewerLivestream: ({ ViewerLivestreamTopView, ViewerLivestreamControls, LivestreamLayout, FloatingParticipantView, LiveIndicator, FollowerCount, DurationBadge, ViewerLeaveStreamButton, onLeaveStreamHandler, }: ViewerLivestreamProps) => React.JSX.Element;
|
|
39
|
+
export declare const ViewerLivestream: ({ ViewerLivestreamTopView, ViewerLivestreamControls, LivestreamLayout, FloatingParticipantView, LiveIndicator, FollowerCount, DurationBadge, ViewerLeaveStreamButton, onLeaveStreamHandler, joinBehavior, }: ViewerLivestreamProps) => React.JSX.Element;
|
|
32
40
|
//# sourceMappingURL=ViewerLivestream.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ViewerLivestream.d.ts","sourceRoot":"","sources":["../../../../../src/components/Livestream/ViewerLivestream/ViewerLivestream.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"ViewerLivestream.d.ts","sourceRoot":"","sources":["../../../../../src/components/Livestream/ViewerLivestream/ViewerLivestream.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAI5D,OAAO,EAAE,KAAK,4BAA4B,EAAE,MAAM,8CAA8C,CAAC;AACjG,OAAO,EAEL,KAAK,6BAA6B,EACnC,MAAM,gDAAgD,CAAC;AACxD,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,+CAA+C,CAAC;AAClG,OAAO,EAEL,KAAK,qBAAqB,EAC3B,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAEL,KAAK,4BAA4B,EAClC,MAAM,mBAAmB,CAAC;AAK3B;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG,4BAA4B,GAC9D,6BAA6B,GAC7B,4BAA4B,GAAG;IAC7B;;OAEG;IACH,uBAAuB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,4BAA4B,CAAC,GAAG,IAAI,CAAC;IACnF;;OAEG;IACH,gBAAgB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,qBAAqB,CAAC,GAAG,IAAI,CAAC;IACrE;;OAEG;IACH,wBAAwB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,6BAA6B,CAAC,GAAG,IAAI,CAAC;IACrF;;OAEG;IACH,uBAAuB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,4BAA4B,CAAC,GAAG,IAAI,CAAC;IACnF;;;;;;OAMG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAChC,CAAC;AAEJ;;GAEG;AACH,eAAO,MAAM,gBAAgB,GAAI,6MAW9B,qBAAqB,sBAuHvB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ViewerLobby.d.ts","sourceRoot":"","sources":["../../../../../src/components/Livestream/ViewerLivestream/ViewerLobby.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAY5D,KAAK,UAAU,GAAG;IAChB,MAAM,EAAE,OAAO,CAAC;IAChB,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;CAC7B,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,YAAY,UAAU,sBAoGjD,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ColorValue } from 'react-native/types';
|
|
3
|
+
type IconProps = {
|
|
4
|
+
color: ColorValue;
|
|
5
|
+
size: number;
|
|
6
|
+
};
|
|
7
|
+
export declare const VolumeOn: ({ color, size }: IconProps) => React.JSX.Element;
|
|
8
|
+
export declare const VolumeOff: ({ color, size }: IconProps) => React.JSX.Element;
|
|
9
|
+
export declare const PlayIcon: ({ color, size }: IconProps) => React.JSX.Element;
|
|
10
|
+
export declare const PauseIcon: ({ color, size }: IconProps) => React.JSX.Element;
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=LivestreamControls.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LivestreamControls.d.ts","sourceRoot":"","sources":["../../../src/icons/LivestreamControls.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAEhD,KAAK,SAAS,GAAG;IACf,KAAK,EAAE,UAAU,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAI,iBAAiB,SAAS,sBAmBlD,CAAC;AAEF,eAAO,MAAM,SAAS,GAAI,iBAAiB,SAAS,sBAQnD,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAI,iBAAiB,SAAS,sBAIlD,CAAC;AAEF,eAAO,MAAM,SAAS,GAAI,iBAAiB,SAAS,sBAInD,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type ColorValue } from 'react-native/types';
|
|
3
|
+
type IconProps = {
|
|
4
|
+
color: ColorValue;
|
|
5
|
+
width: number;
|
|
6
|
+
height: number;
|
|
7
|
+
};
|
|
8
|
+
export declare const Maximize: ({ color, width, height }: IconProps) => React.JSX.Element;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=Maximize.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Maximize.d.ts","sourceRoot":"","sources":["../../../src/icons/Maximize.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAGrD,KAAK,SAAS,GAAG;IACf,KAAK,EAAE,UAAU,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAI,0BAA0B,SAAS,sBAqC3D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/icons/index.tsx"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,OAAO,CAAC;AACtB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,wBAAwB,CAAC;AACvC,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,qBAAqB,CAAC;AACpC,cAAc,OAAO,CAAC;AACtB,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/icons/index.tsx"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,OAAO,CAAC;AACtB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,wBAAwB,CAAC;AACvC,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,qBAAqB,CAAC;AACpC,cAAc,OAAO,CAAC;AACtB,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,+CAA+C;AAC/C,OAAO,wBAAwB,CAAC;AAChC,8BAA8B;AAC9B,OAAO,gCAAgC,CAAC;AACxC,6IAA6I;AAC7I,OAAO,kBAAkB,CAAC;AAe1B,cAAc,yBAAyB,CAAC;AACxC,cAAc,iCAAiC,CAAC;AAChD,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAI/B,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,+CAA+C;AAC/C,OAAO,wBAAwB,CAAC;AAChC,8BAA8B;AAC9B,OAAO,gCAAgC,CAAC;AACxC,6IAA6I;AAC7I,OAAO,kBAAkB,CAAC;AAe1B,cAAc,yBAAyB,CAAC;AACxC,cAAc,iCAAiC,CAAC;AAChD,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAI/B,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,cAAc,+BAA+B,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import React, { PropsWithChildren } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* The Noise Cancellation API.
|
|
4
|
+
*/
|
|
5
|
+
export type NoiseCancellationAPI = {
|
|
6
|
+
/**
|
|
7
|
+
* A boolean providing information whether the device supports advanced audio processing recommended for noise cancellation.
|
|
8
|
+
* This boolean returns `true` if the iOS device supports Apple's Neural Engine or if an Android device has the FEATURE_AUDIO_PROCESSING feature enabled.
|
|
9
|
+
* Devices with this capability are better suited for handling noise cancellation efficiently.
|
|
10
|
+
*/
|
|
11
|
+
deviceSupportsAdvancedAudioProcessing: boolean | undefined;
|
|
12
|
+
/**
|
|
13
|
+
* A boolean providing information whether Noise Cancelling functionalities
|
|
14
|
+
* are supported for the current user in call settings.
|
|
15
|
+
*/
|
|
16
|
+
isSupported: boolean | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* Provides information whether Noise Cancellation is active or not.
|
|
19
|
+
*/
|
|
20
|
+
isEnabled: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Allows you to enable or disable the Noise Cancellation audio filter.
|
|
23
|
+
*
|
|
24
|
+
* @param enabled a boolean or a setter.
|
|
25
|
+
*/
|
|
26
|
+
setEnabled: (enabled: boolean | ((value: boolean) => boolean)) => void;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Exposes the NoiseCancellation API.
|
|
30
|
+
* Throws an error if used outside <NoiseCancellationProvider />.
|
|
31
|
+
*/
|
|
32
|
+
export declare const useNoiseCancellation: () => NoiseCancellationAPI;
|
|
33
|
+
export declare const NoiseCancellationProvider: (props: PropsWithChildren<{}>) => React.JSX.Element;
|
|
34
|
+
//# sourceMappingURL=NoiseCancellationProvider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NoiseCancellationProvider.d.ts","sourceRoot":"","sources":["../../../../src/providers/NoiseCancellation/NoiseCancellationProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAEZ,iBAAiB,EAIlB,MAAM,OAAO,CAAC;AAaf;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC;;;;OAIG;IACH,qCAAqC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC3D;;;OAGG;IACH,WAAW,EAAE,OAAO,GAAG,SAAS,CAAC;IACjC;;OAEG;IACH,SAAS,EAAE,OAAO,CAAC;IACnB;;;;OAIG;IACH,UAAU,EAAE,CAAC,OAAO,EAAE,OAAO,GAAG,CAAC,CAAC,KAAK,EAAE,OAAO,KAAK,OAAO,CAAC,KAAK,IAAI,CAAC;CACxE,CAAC;AAMF;;;GAGG;AACH,eAAO,MAAM,oBAAoB,QAAO,oBAQvC,CAAC;AAEF,eAAO,MAAM,yBAAyB,GAAI,OAAO,iBAAiB,CAAC,EAAE,CAAC,sBAkFrE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/providers/NoiseCancellation/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export type Type = typeof import('@stream-io/noise-cancellation-react-native');
|
|
2
|
+
export declare function getNoiseCancellationLibThrowIfNotInstalled(): typeof import("@stream-io/noise-cancellation-react-native");
|
|
3
|
+
export declare class NoiseCancellationWrapper {
|
|
4
|
+
private static noiseCancellationInstance;
|
|
5
|
+
private constructor();
|
|
6
|
+
static getInstance(): InstanceType<Type['NoiseCancellation']>;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=lib.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lib.d.ts","sourceRoot":"","sources":["../../../../src/providers/NoiseCancellation/lib.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,IAAI,GAAG,cAAc,4CAA4C,CAAC,CAAC;AAQ/E,wBAAgB,0CAA0C,gEAOzD;AAED,qBAAa,wBAAwB;IACnC,OAAO,CAAC,MAAM,CAAC,yBAAyB,CAE1B;IAEd,OAAO;IAEP,MAAM,CAAC,WAAW,IAAI,YAAY,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC;CAO9D"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const version = "1.
|
|
1
|
+
export declare const version = "1.14.1";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
|
@@ -9,6 +9,7 @@ const withAndroidPermissions_1 = __importDefault(require("./withAndroidPermissio
|
|
|
9
9
|
const withAndroidManifest_1 = __importDefault(require("./withAndroidManifest"));
|
|
10
10
|
const withiOSInfoPlist_1 = __importDefault(require("./withiOSInfoPlist"));
|
|
11
11
|
const withMainActivity_1 = __importDefault(require("./withMainActivity"));
|
|
12
|
+
const withMainApplication_1 = __importDefault(require("./withMainApplication"));
|
|
12
13
|
const withBuildProperties_1 = __importDefault(require("./withBuildProperties"));
|
|
13
14
|
const withAppBuildGradle_1 = __importDefault(require("./withAppBuildGradle"));
|
|
14
15
|
const withIosScreenCapture_1 = __importDefault(require("./withIosScreenCapture"));
|
|
@@ -26,6 +27,7 @@ const withStreamVideoReactNativeSDK = (config, props) => {
|
|
|
26
27
|
withBuildProperties_1.default,
|
|
27
28
|
() => (0, withAndroidManifest_1.default)(config, props),
|
|
28
29
|
() => (0, withMainActivity_1.default)(config, props),
|
|
30
|
+
() => (0, withMainApplication_1.default)(config, props),
|
|
29
31
|
]);
|
|
30
32
|
};
|
|
31
33
|
exports.default = (0, config_plugins_1.createRunOncePlugin)(withStreamVideoReactNativeSDK, pkg.name, pkg.version);
|
|
@@ -6,6 +6,7 @@ const withStreamVideoReactNativeSDKAndroidPermissions = (configuration, props) =
|
|
|
6
6
|
'android.permission.BLUETOOTH',
|
|
7
7
|
'android.permission.BLUETOOTH_CONNECT',
|
|
8
8
|
'android.permission.BLUETOOTH_ADMIN',
|
|
9
|
+
'android.permission.WAKE_LOCK',
|
|
9
10
|
];
|
|
10
11
|
if (props?.ringingPushNotifications || props?.enableScreenshare) {
|
|
11
12
|
permissions.push('android.permission.POST_NOTIFICATIONS', 'android.permission.FOREGROUND_SERVICE');
|