@tellescope/video-chat 0.0.82 → 0.0.85
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.d.ts +3 -0
- package/lib/cjs/index.d.ts.map +1 -1
- package/lib/cjs/index.js +10 -0
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/index.native.d.ts +3 -0
- package/lib/cjs/index.native.d.ts.map +1 -1
- package/lib/cjs/index.native.js +10 -0
- package/lib/cjs/index.native.js.map +1 -1
- package/lib/cjs/native/RNVideoRenderView.d.ts +1 -1
- package/lib/cjs/native/RNVideoRenderView.d.ts.map +1 -1
- package/lib/cjs/native/RNVideoRenderView.js +11 -10
- package/lib/cjs/native/RNVideoRenderView.js.map +1 -1
- package/lib/cjs/video.d.ts.map +1 -1
- package/lib/cjs/video.js +5 -5
- package/lib/cjs/video.js.map +1 -1
- package/lib/cjs/video.native.d.ts +1 -2
- package/lib/cjs/video.native.d.ts.map +1 -1
- package/lib/cjs/video.native.js +26 -29
- package/lib/cjs/video.native.js.map +1 -1
- package/lib/cjs/video_shared.d.ts +1 -0
- package/lib/cjs/video_shared.d.ts.map +1 -1
- package/lib/cjs/video_shared.js +5 -1
- package/lib/cjs/video_shared.js.map +1 -1
- package/lib/esm/index.d.ts +3 -0
- package/lib/esm/index.d.ts.map +1 -1
- package/lib/esm/index.js +3 -0
- package/lib/esm/index.js.map +1 -1
- package/lib/esm/index.native.d.ts +3 -0
- package/lib/esm/index.native.d.ts.map +1 -1
- package/lib/esm/index.native.js +3 -0
- package/lib/esm/index.native.js.map +1 -1
- package/lib/esm/native/RNVideoRenderView.d.ts +1 -1
- package/lib/esm/native/RNVideoRenderView.d.ts.map +1 -1
- package/lib/esm/native/RNVideoRenderView.js +10 -9
- package/lib/esm/native/RNVideoRenderView.js.map +1 -1
- package/lib/esm/video.d.ts.map +1 -1
- package/lib/esm/video.js +1 -1
- package/lib/esm/video.js.map +1 -1
- package/lib/esm/video.native.d.ts +1 -2
- package/lib/esm/video.native.d.ts.map +1 -1
- package/lib/esm/video.native.js +4 -7
- package/lib/esm/video.native.js.map +1 -1
- package/lib/esm/video_shared.d.ts +1 -0
- package/lib/esm/video_shared.d.ts.map +1 -1
- package/lib/esm/video_shared.js +3 -0
- package/lib/esm/video_shared.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +9 -9
- package/src/index.native.ts +14 -2
- package/src/index.ts +13 -1
- package/src/native/RNVideoRenderView.tsx +3 -2
- package/src/video.native.tsx +7 -10
- package/src/video.tsx +2 -2
- package/src/video_shared.tsx +5 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tellescope/video-chat",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.85",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./lib/cjs/index.js",
|
|
6
6
|
"module": "./lib/esm/index.js",
|
|
@@ -33,13 +33,13 @@
|
|
|
33
33
|
"@fontsource/roboto": "^4.5.1",
|
|
34
34
|
"@mui/icons-material": "^5.0.1",
|
|
35
35
|
"@mui/material": "^5.0.2",
|
|
36
|
-
"@tellescope/constants": "^0.0.
|
|
37
|
-
"@tellescope/react-components": "^0.0.
|
|
38
|
-
"@tellescope/sdk": "^0.0.
|
|
39
|
-
"@tellescope/types-client": "^0.0.
|
|
40
|
-
"@tellescope/types-models": "^0.0.
|
|
41
|
-
"@tellescope/types-utilities": "^0.0.
|
|
42
|
-
"@tellescope/utilities": "^0.0.
|
|
36
|
+
"@tellescope/constants": "^0.0.85",
|
|
37
|
+
"@tellescope/react-components": "^0.0.85",
|
|
38
|
+
"@tellescope/sdk": "^0.0.85",
|
|
39
|
+
"@tellescope/types-client": "^0.0.85",
|
|
40
|
+
"@tellescope/types-models": "^0.0.85",
|
|
41
|
+
"@tellescope/types-utilities": "^0.0.85",
|
|
42
|
+
"@tellescope/utilities": "^0.0.85",
|
|
43
43
|
"@typescript-eslint/eslint-plugin": "^4.33.0",
|
|
44
44
|
"@typescript-eslint/parser": "^4.33.0",
|
|
45
45
|
"amazon-chime-sdk-component-library-react": "^2.12.0",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"react": "^17.0.2",
|
|
55
55
|
"react-dom": "^17.0.2"
|
|
56
56
|
},
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "47925dd3a6948c55f0ac0468b15e72e30a590841",
|
|
58
58
|
"publishConfig": {
|
|
59
59
|
"access": "public"
|
|
60
60
|
}
|
package/src/index.native.ts
CHANGED
|
@@ -1,2 +1,14 @@
|
|
|
1
|
-
export * from "./video"
|
|
2
|
-
export * from "./controls"
|
|
1
|
+
export * from "./video"
|
|
2
|
+
export * from "./controls"
|
|
3
|
+
export {
|
|
4
|
+
CurrentCallContext,
|
|
5
|
+
useCurrentCallContext,
|
|
6
|
+
} from "./video_shared"
|
|
7
|
+
export {
|
|
8
|
+
RNVideoRenderView,
|
|
9
|
+
} from "./native/RNVideoRenderView"
|
|
10
|
+
export {
|
|
11
|
+
MobileSDKEvent,
|
|
12
|
+
NativeFunction,
|
|
13
|
+
getSDKEventEmitter,
|
|
14
|
+
} from "./native/bridge"
|
package/src/index.ts
CHANGED
|
@@ -1,2 +1,14 @@
|
|
|
1
1
|
export * from "./video"
|
|
2
|
-
export * from "./controls"
|
|
2
|
+
export * from "./controls"
|
|
3
|
+
export {
|
|
4
|
+
CurrentCallContext,
|
|
5
|
+
useCurrentCallContext,
|
|
6
|
+
} from "./video_shared"
|
|
7
|
+
export {
|
|
8
|
+
RNVideoRenderView,
|
|
9
|
+
} from "./native/RNVideoRenderView"
|
|
10
|
+
export {
|
|
11
|
+
MobileSDKEvent,
|
|
12
|
+
NativeFunction,
|
|
13
|
+
getSDKEventEmitter,
|
|
14
|
+
} from "./native/bridge"
|
|
@@ -7,7 +7,7 @@ import React from 'react';
|
|
|
7
7
|
import { requireNativeComponent, findNodeHandle, ViewStyle } from 'react-native';
|
|
8
8
|
import { NativeFunction } from './bridge';
|
|
9
9
|
|
|
10
|
-
export class
|
|
10
|
+
export class RNVideoRenderView extends React.Component<{ tileId: number, style?: ViewStyle }> {
|
|
11
11
|
componentDidMount() {
|
|
12
12
|
// we need to delay the bind video
|
|
13
13
|
// Because "componentDidMount" will be called "immediately after the initial rendering occurs"
|
|
@@ -29,4 +29,5 @@ export class RNVideoView extends React.Component<{ tileId: number, style?: ViewS
|
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
// can try ts ignore and using RNVideoView as a second argument to this function
|
|
32
|
-
|
|
32
|
+
// @ts-ignore
|
|
33
|
+
const RNVideoRenderViewNative = requireNativeComponent('RNVideoView', RNVideoRenderView);
|
package/src/video.native.tsx
CHANGED
|
@@ -27,22 +27,19 @@ import {
|
|
|
27
27
|
} from "@tellescope/react-components/lib/esm/mui.native"
|
|
28
28
|
|
|
29
29
|
import {
|
|
30
|
-
CurrentCallContext,
|
|
31
30
|
JoinVideoCallReturnType,
|
|
32
31
|
StartVideoCallReturnType,
|
|
33
32
|
VideoProps,
|
|
34
33
|
AttendeeDisplayInfo,
|
|
35
34
|
VideoViewProps,
|
|
36
35
|
} from "./video_shared"
|
|
37
|
-
|
|
38
36
|
import {
|
|
37
|
+
CurrentCallContext,
|
|
38
|
+
RNVideoRenderView,
|
|
39
39
|
getSDKEventEmitter,
|
|
40
40
|
MobileSDKEvent,
|
|
41
41
|
NativeFunction,
|
|
42
|
-
} from "./
|
|
43
|
-
import { RNVideoView } from "./native/RNVideoRenderView"
|
|
44
|
-
|
|
45
|
-
export { CurrentCallContext }
|
|
42
|
+
} from "./index"
|
|
46
43
|
|
|
47
44
|
interface TileState {
|
|
48
45
|
isLocal: boolean,
|
|
@@ -172,7 +169,7 @@ export const useRemoteViews = (props={} as { style: React.CSSProperties }) => {
|
|
|
172
169
|
const nonLocal = videoTiles.filter(v => v !== localTileId)
|
|
173
170
|
|
|
174
171
|
return nonLocal.map(tileId =>
|
|
175
|
-
<
|
|
172
|
+
<RNVideoRenderView key={tileId} style={convert_CSS_to_RNStyles(props.style) ?? styles.video} tileId={tileId} />
|
|
176
173
|
)
|
|
177
174
|
}
|
|
178
175
|
|
|
@@ -181,7 +178,7 @@ export const SelfView = ({ style } : VideoViewProps) => {
|
|
|
181
178
|
if (localTileId === null) return null // localTileId may be zero, don't return null on simple falsey check
|
|
182
179
|
|
|
183
180
|
return (
|
|
184
|
-
<
|
|
181
|
+
<RNVideoRenderView style={convert_CSS_to_RNStyles(style) ?? styles.video} tileId={localTileId}/>
|
|
185
182
|
)
|
|
186
183
|
}
|
|
187
184
|
|
|
@@ -271,7 +268,7 @@ export const VideoTileGrid = () => {
|
|
|
271
268
|
<Flex style={styles.videoContainer}>
|
|
272
269
|
{
|
|
273
270
|
videoTiles.length > 0 ? videoTiles.map(tileId =>
|
|
274
|
-
<
|
|
271
|
+
<RNVideoRenderView style={styles.video} key={tileId} tileId={tileId} />
|
|
275
272
|
) : <Typography style={styles.subtitle}>No one is sharing video at this moment</Typography>
|
|
276
273
|
}
|
|
277
274
|
</Flex>
|
|
@@ -282,7 +279,7 @@ export const VideoTileGrid = () => {
|
|
|
282
279
|
<React.Fragment>
|
|
283
280
|
<Typography style={styles.title}>Screen Share</Typography>
|
|
284
281
|
<View style={styles.videoContainer}>
|
|
285
|
-
<
|
|
282
|
+
<RNVideoRenderView style={styles.screenShare} key={shareScreenId} tileId={shareScreenId} />
|
|
286
283
|
</View>
|
|
287
284
|
</React.Fragment>
|
|
288
285
|
}
|
package/src/video.tsx
CHANGED
|
@@ -38,10 +38,10 @@ import {
|
|
|
38
38
|
// useRemoteVideoTileState,
|
|
39
39
|
// useContentShareControls, // screen sharing
|
|
40
40
|
} from 'amazon-chime-sdk-component-library-react';
|
|
41
|
-
|
|
42
41
|
import {
|
|
43
42
|
CurrentCallContext,
|
|
44
|
-
|
|
43
|
+
} from "./index"
|
|
44
|
+
import {
|
|
45
45
|
AttendeeDisplayInfo,
|
|
46
46
|
VideoProps,
|
|
47
47
|
VideoViewProps,
|
package/src/video_shared.tsx
CHANGED
|
@@ -21,6 +21,11 @@ export interface CallContext {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
export const CurrentCallContext = React.createContext({} as CallContext)
|
|
24
|
+
|
|
25
|
+
export const useCurrentCallContext = () => {
|
|
26
|
+
return React.useContext(CurrentCallContext)
|
|
27
|
+
}
|
|
28
|
+
|
|
24
29
|
export interface VideoProps {
|
|
25
30
|
children?: React.ReactNode,
|
|
26
31
|
}
|