Skip to content

Commit

Permalink
feat: update sdk to 0.14.1 (#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
faiq-naufal authored Jan 11, 2024
1 parent da06c21 commit db79a40
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions app/(pages)/room/[roomID]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,9 @@ export default async function Page({ searchParams }: PageProps) {

const codecPreferences = hubRoomResponse?.data?.codecPreferences || [];
const bitrateConfig = {
maxBitrate: hubRoomResponse?.data?.bitrates.videoHigh || 0,
highBitrate: hubRoomResponse?.data?.bitrates.videoHigh || 0,
midBitrate: hubRoomResponse?.data?.bitrates.videoMid || 0,
minBitrate: hubRoomResponse?.data?.bitrates.videoLow || 0,
lowBitrate: hubRoomResponse?.data?.bitrates.videoLow || 0,
};
const roomType = roomData.meta ? roomData.meta.type : 'meeting' || 'meeting';

Expand Down
4 changes: 2 additions & 2 deletions app/_features/room/components/view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ type ViewProps = {
debug: boolean;
codecPreferences: string[];
bitrateConfig: {
maxBitrate: number;
highBitrate: number;
midBitrate: number;
minBitrate: number;
lowBitrate: number;
};
};

Expand Down
8 changes: 4 additions & 4 deletions app/_features/room/contexts/peer-context.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ type PeerProviderProps = {
debug: boolean;
codecPreferences: string[];
bitrateConfig: {
maxBitrate: number;
highBitrate: number;
midBitrate: number;
minBitrate: number;
lowBitrate: number;
};
};

Expand All @@ -44,9 +44,9 @@ export function PeerProvider({
const peer = await clientSDK.createPeer(roomID, client.clientID, {
codecs: codecPreferences,
bitrate: {
maxBitrate: bitrateConfig.maxBitrate,
highBitrate: bitrateConfig.highBitrate,
midBitrate: bitrateConfig.midBitrate,
minBitrate: bitrateConfig.minBitrate,
lowBitrate: bitrateConfig.lowBitrate,
},
});
setPeer(peer);
Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"migrate": "ts-node ./migrate.ts"
},
"dependencies": {
"@inlivedev/inlive-js-sdk": "^0.14.0",
"@inlivedev/inlive-js-sdk": "^0.14.1",
"@nextui-org/react": "^2.2.9",
"@sentry/nextjs": "^7.70.0",
"drizzle-orm": "^0.28.6",
Expand Down

0 comments on commit db79a40

Please sign in to comment.