Skip to content

Commit

Permalink
updated to version 1.12.1-1
Browse files Browse the repository at this point in the history
  • Loading branch information
tommygaessler committed Sep 4, 2024
1 parent 9893201 commit d3ea881
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 11 deletions.
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ To get started, clone the repo:
| Variable | Description |
| -----------------------|-------------|
| authEndpoint | Required, your Video SDK auth endpoint that securely generates a Video SDK JWT. [Get a Video SDK auth endpoint here.](https://github.com/zoom/videosdk-auth-endpoint-sample) |
| config | Your Video SDK [session details](https://developers.zoom.us/docs/video-sdk/web/ui-toolkit/#join-session) and [enabled features](https://developers.zoom.us/docs/video-sdk/web/ui-toolkit/#supported-features). The `videoSDKJWT` will be set from the response of your `authEndpoint`. |
| config | Your Video SDK [session details](https://developers.zoom.us/docs/video-sdk/web/ui-toolkit/#create-a-configuration-object) and [enabled features](https://developers.zoom.us/docs/video-sdk/web/ui-toolkit/#supported-features). The `videoSDKJWT` will be set from the response of your `authEndpoint`. |
| role | Required, `0` to specify participant, `1` to specify host. |

Example:
Expand All @@ -42,7 +42,13 @@ To get started, clone the repo:
sessionName: 'test',
userName: 'ZoomDev',
sessionPasscode: '123',
features: ['video', 'audio', 'settings', 'users', 'chat', 'share']
features: ['preview', 'video', 'audio', 'settings', 'users', 'chat', 'share'],
options: { init: {}, audio: {}, video: {}, share: {}},
virtualBackground: {
allowVirtualBackground: true,
allowVirtualBackgroundUpload: true,
virtualBackgrounds: ['https://images.unsplash.com/photo-1715490187538-30a365fa05bd?q=80&w=1945&auto=format&fit=crop']
}
};
var role = 1
```
Expand Down
13 changes: 7 additions & 6 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "videosdk-ui-toolkit-react-sample",
"version": "1.10.8-1",
"version": "1.12.1-1",
"author": "Zoom Video Communications, Inc.",
"contributors": [
{
Expand All @@ -13,7 +13,7 @@
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^13.4.0",
"@testing-library/user-event": "^13.5.0",
"@zoom/videosdk-ui-toolkit": "^1.10.8-1",
"@zoom/videosdk-ui-toolkit": "^1.12.1-1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-scripts": "5.0.1",
Expand Down
9 changes: 8 additions & 1 deletion src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,13 @@ function App() {
sessionName: 'test',
userName: 'React',
sessionPasscode: '123',
features: ['video', 'audio', 'settings', 'users', 'chat', 'share']
features: ['preview', 'video', 'audio', 'settings', 'users', 'chat', 'share'],
options: { init: {}, audio: {}, video: {}, share: {}},
virtualBackground: {
allowVirtualBackground: true,
allowVirtualBackgroundUpload: true,
virtualBackgrounds: ['https://images.unsplash.com/photo-1715490187538-30a365fa05bd?q=80&w=1945&auto=format&fit=crop']
}
};
var role = 1

Expand All @@ -23,6 +29,7 @@ function App() {

fetch(authEndpoint, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
sessionName: config.sessionName,
role: role,
Expand Down

0 comments on commit d3ea881

Please sign in to comment.