Skip to content

Commit a8667f5

Browse files
committed
a
1 parent f4204a8 commit a8667f5

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

packages/react-client/src/hooks/usePeers.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ export function usePeers<PeerMetadata = Record<string, unknown>, ServerMetadata
120120
);
121121

122122
const setReceivedTrackQuality = useCallback(
123-
(trackId: string, encoding: Variant) => fishjamClient.current.setTargetTrackEncoding(trackId, encoding),
123+
(trackId: string, quality: Variant) => fishjamClient.current.setTargetTrackEncoding(trackId, quality),
124124
[fishjamClient],
125125
);
126126

@@ -131,8 +131,13 @@ export function usePeers<PeerMetadata = Record<string, unknown>, ServerMetadata
131131
*/ localPeer,
132132
/**
133133
* Array of remote peers with distinguished tracks (camera, microphone, screen share).
134+
*/ remotePeers,
135+
/**
136+
* @deprecated Use remotePeers instead
137+
* Legacy array containing remote peers.
138+
* This property will be removed in future versions.
134139
*/
135-
remotePeers,
140+
peers: remotePeers,
136141
/**
137142
* This function allows to set the quality of a track received from a remote peer.
138143
* @param trackId The id of the track to set the quality for.

0 commit comments

Comments
 (0)