Skip to content
This repository has been archived by the owner on Jun 28, 2024. It is now read-only.

Commit

Permalink
Metadata validator (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
kamil-stasiak authored Feb 28, 2024
1 parent fb313d3 commit eaa49e6
Show file tree
Hide file tree
Showing 20 changed files with 814 additions and 883 deletions.
223 changes: 113 additions & 110 deletions examples/minimal-react/package-lock.json

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions examples/minimal-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@
"react-dom": "^18.2.0"
},
"devDependencies": {
"@types/react": "^18.2.42",
"@types/react-dom": "^18.2.17",
"@vitejs/plugin-react-swc": "^3.5.0",
"autoprefixer": "^10.4.16",
"postcss": "^8.4.32",
"typescript": "^5.3.2",
"vite": "^5.0.5",
"vite-plugin-checker": "^0.6.2"
"@types/react": "^18.2.55",
"@types/react-dom": "^18.2.19",
"@vitejs/plugin-react-swc": "^3.6.0",
"autoprefixer": "^10.4.17",
"postcss": "^8.4.35",
"typescript": "^5.3.3",
"vite": "^5.1.2",
"vite-plugin-checker": "^0.6.4"
}
}
161 changes: 85 additions & 76 deletions examples/use-camera-and-microphone-example/package-lock.json

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

21 changes: 11 additions & 10 deletions examples/use-camera-and-microphone-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,21 @@
},
"dependencies": {
"@jellyfish-dev/react-client-sdk": "file:../..",
"jotai": "^2.6.0",
"jotai": "^2.6.4",
"react": "^18.2.0",
"react-dom": "^18.2.0"
"react-dom": "^18.2.0",
"zod": "^3.22.4"
},
"devDependencies": {
"@tailwindcss/typography": "^0.5.10",
"@types/react": "^18.2.42",
"@types/react-dom": "^18.2.17",
"@types/react": "^18.2.55",
"@types/react-dom": "^18.2.19",
"@vitejs/plugin-react": "^4.2.1",
"autoprefixer": "^10.4.16",
"daisyui": "^4.4.19",
"postcss": "^8.4.32",
"tailwindcss": "^3.3.6",
"typescript": "^5.3.2",
"vite": "^5.0.5"
"autoprefixer": "^10.4.17",
"daisyui": "^4.7.2",
"postcss": "^8.4.35",
"tailwindcss": "^3.4.1",
"typescript": "^5.3.3",
"vite": "^5.1.2"
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import {
DEFAULT_AUDIO_TRACK_METADATA,
DEFAULT_VIDEO_TRACK_METADATA,
EXAMPLE_PEER_METADATA,
MANUAL_AUDIO_TRACK_METADATA,
MANUAL_SCREENSHARE_TRACK_METADATA,
MANUAL_VIDEO_TRACK_METADATA,
Expand Down Expand Up @@ -64,6 +65,7 @@ export const MainControls = () => {
defaultSimulcastConfig: {
enabled: true,
activeEncodings: ["l", "m", "h"],
disabledEncodings: [],
},
},
microphone: {
Expand Down Expand Up @@ -167,7 +169,7 @@ export const MainControls = () => {
onClick={() => {
if (!token || token === "") throw Error("Token is empty");
connect({
peerMetadata: { name: "John Doe" }, // example metadata
peerMetadata: EXAMPLE_PEER_METADATA,
token: token,
});
}}
Expand Down
Loading

0 comments on commit eaa49e6

Please sign in to comment.