File tree Expand file tree Collapse file tree 5 files changed +18
-4
lines changed
Expand file tree Collapse file tree 5 files changed +18
-4
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,11 @@ export function Component() {
5050``` tsx
5151import React from " react" ;
5252import { View , Text } from " react-native" ;
53- import { usePeers , RTCView } from " @fishjam-cloud/react-native-client" ;
53+ import {
54+ usePeers ,
55+ RTCView ,
56+ type MediaStream ,
57+ } from " @fishjam-cloud/react-native-client" ;
5458
5559function VideoPlayer({ stream }: { stream: MediaStream | null }) {
5660 if (! stream ) return <Text >No video</Text >;
Original file line number Diff line number Diff line change @@ -148,7 +148,11 @@ const localTrack = localPeer?.tracks.find((t) => t.type === "Video");
148148``` tsx
149149import React from " react" ;
150150// ---cut---
151- import { usePeers , RTCView } from " @fishjam-cloud/react-native-client" ;
151+ import {
152+ usePeers ,
153+ RTCView ,
154+ type MediaStream ,
155+ } from " @fishjam-cloud/react-native-client" ;
152156
153157function VideoPlayer({ stream }: { stream: MediaStream | null | undefined }) {
154158 return (
Original file line number Diff line number Diff line change @@ -308,6 +308,7 @@ import {
308308 startPIP ,
309309 stopPIP ,
310310 usePeers ,
311+ type MediaStream ,
311312} from " @fishjam-cloud/react-native-client" ;
312313
313314function VideoPlayer({ stream }: { stream: MediaStream | null }) {
Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ We provide a helper factory to initialize the Google Client.
7070
7171 ``` ts
7272 import { FishjamClient } from ' @fishjam-cloud/js-server-sdk' ;
73- import * as GeminiIntegration from ' @fishjam-cloud/js-server-sdk/gemini' ;
73+ import GeminiIntegration from ' @fishjam-cloud/js-server-sdk/gemini' ;
7474
7575 const fishjamClient = new FishjamClient ({
7676 fishjamId: process .env .FISHJAM_ID ! ,
Original file line number Diff line number Diff line change @@ -255,7 +255,11 @@ Show video from other peers in the room:
255255``` tsx
256256import React from " react" ;
257257import { View , Text } from " react-native" ;
258- import { usePeers , RTCView } from " @fishjam-cloud/react-native-client" ;
258+ import {
259+ usePeers ,
260+ RTCView ,
261+ type MediaStream ,
262+ } from " @fishjam-cloud/react-native-client" ;
259263
260264function VideoPlayer({ stream }: { stream: MediaStream | null | undefined }) {
261265 return (
@@ -305,6 +309,7 @@ import {
305309 useInitializeDevices ,
306310 useSandbox ,
307311 RTCView ,
312+ type MediaStream ,
308313} from " @fishjam-cloud/react-native-client" ;
309314
310315// Check https://fishjam.io/app/ for your Fishjam ID
You can’t perform that action at this time.
0 commit comments