-
Notifications
You must be signed in to change notification settings - Fork 163
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #233 from dyte-io/upstream/2024-01-03
docs: plugin, mobile and the rest!
- Loading branch information
Showing
47 changed files
with
2,975 additions
and
680 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
title: Release Notes | ||
sidebar_position: 101 | ||
sidebar_class_name: releaseSidebarHeading | ||
tags: [mobile-core, releasenotes] | ||
--- | ||
|
||
import ReleaseNotesGenerator from '@site/src/components/ReleaseNotesGenerator'; | ||
|
||
<ReleaseNotesGenerator noteKey="android-core" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
title: Release Notes | ||
sidebar_position: 101 | ||
sidebar_class_name: releaseSidebarHeading | ||
tags: [releasenotes] | ||
--- | ||
|
||
import ReleaseNotesGenerator from '@site/src/components/ReleaseNotesGenerator'; | ||
|
||
<ReleaseNotesGenerator noteKey="android-ui-kit" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
title: Release Notes | ||
sidebar_position: 101 | ||
sidebar_class_name: releaseSidebarHeading | ||
tags: [mobile-core, releasenotes] | ||
--- | ||
|
||
import ReleaseNotesGenerator from '@site/src/components/ReleaseNotesGenerator'; | ||
|
||
<ReleaseNotesGenerator noteKey="flutter-core" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
title: Release Notes | ||
sidebar_position: 101 | ||
sidebar_class_name: releaseSidebarHeading | ||
tags: [releasenotes] | ||
--- | ||
|
||
import ReleaseNotesGenerator from '@site/src/components/ReleaseNotesGenerator'; | ||
|
||
<ReleaseNotesGenerator noteKey="flutter-ui-kit" /> |
115 changes: 115 additions & 0 deletions
115
docs/guides/capabilities/breakoutroom/integrating-breakout-rooms.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,115 @@ | ||
--- | ||
title: 'Integrating Breakout Rooms' | ||
sidebar_position: 3 | ||
--- | ||
|
||
import Tabs from '@theme/Tabs'; | ||
import TabItem from '@theme/TabItem'; | ||
import { WebCoreCDNInstallation } from '@site/src/components/LatestInstallation'; | ||
|
||
## Step 1: Install the SDK | ||
|
||
You can install the package using CDN, npm or Yarn. | ||
|
||
<Tabs | ||
groupId="node-pm" | ||
defaultValue="npm" | ||
values={[ | ||
{ label: "npm", value: "npm" }, | ||
{ label: "yarn", value: "yarn" }, | ||
{ label: "CDN", value: "CDN" }, | ||
]} | ||
> | ||
<TabItem value="npm"> | ||
Install the SDK using npm. | ||
|
||
```shell | ||
npm install @dytesdk/web-core | ||
``` | ||
|
||
[![npm version](https://badge.fury.io/js/@dytesdk%2Fweb-core.svg)](https://badge.fury.io/js/@dytesdk%2Fweb-core) | ||
|
||
</TabItem> | ||
<TabItem value="yarn"> | ||
Install the SDK using yarn. | ||
|
||
```shell | ||
yarn add @dytesdk/web-core | ||
``` | ||
|
||
[![npm version](https://badge.fury.io/js/@dytesdk%2Fweb-core.svg)](https://badge.fury.io/js/@dytesdk%2Fweb-core) | ||
|
||
</TabItem> | ||
<TabItem value="CDN"> | ||
Add the following script tag in the head of your HTML file. | ||
|
||
<WebCoreCDNInstallation /> | ||
</TabItem> | ||
</Tabs> | ||
|
||
## Step 2: Initialize the SDK | ||
|
||
| | | | ||
| ----------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ||
| `authToken` | After you've created the meeting, add each participant to the meeting using the [Add Participant API](/api#/operations/add_participant). The API response contains the authToken. | | ||
|
||
```js | ||
let meeting = await DyteClient.init({ | ||
authToken, | ||
}); | ||
|
||
// add additional event handler for breakout rooms | ||
meeting.connectedMeetings.on('meetingChanged', (newMeeting) => { | ||
meeting = newMeeting; | ||
}); | ||
``` | ||
|
||
## Step 3: Pass the meeting object to pre-built ui component | ||
|
||
<Tabs> | ||
<TabItem value="HTML"> | ||
|
||
```html | ||
<body> | ||
<dyte-meeting id="my-meeting"></dyte-meeting> | ||
<script> | ||
document.getElementById('my-meeting').meeting = meeting; | ||
</script> | ||
</body> | ||
``` | ||
|
||
For detailed guide, check out - https://docs.dyte.io/ui-kit/quickstart | ||
|
||
</TabItem> | ||
<TabItem value="ReactJS"> | ||
|
||
```jsx | ||
<DyteMeeting meeting={meeting} /> | ||
``` | ||
|
||
For detailed guide, check out - https://docs.dyte.io/react-ui-kit/quickstart | ||
|
||
</TabItem> | ||
<TabItem value="Angular"> | ||
|
||
```js | ||
class AppComponent { | ||
title = 'MyProject'; | ||
@ViewChild('myid') meetingComponent: DyteMeeting; | ||
dyteMeeting: DyteClient; | ||
|
||
async ngAfterViewInit() { | ||
const meeting = await DyteClient.init({ | ||
authToken: '<auth-token>', | ||
}); | ||
meeting.joinRoom(); | ||
this.dyteMeeting = meeting; | ||
if (this.meetingComponent) this.meetingComponent.meeting = meeting; | ||
} | ||
} | ||
``` | ||
|
||
For detailed guide, check out - https://docs.dyte.io/angular-ui-kit/quickstart | ||
|
||
</TabItem> | ||
</Tabs> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"position": 4, | ||
"label": "Plugins", | ||
"collapsible": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Document Sharing | ||
|
||
DocShare allows you to share, view documents and annotate the documents collaboratively. | ||
The plugin exposes a few APIs to control the document viewer | ||
|
||
## Loading a document | ||
|
||
You can specify the following parameters: | ||
|
||
- `followId`: It syncs the zoom and scroll values of the userId specified to other users (including the recording) | ||
- `document` : You can also specify the document that you wish to open beforehand. | ||
|
||
```ts | ||
const id = '317b4f59-40f0-46af-90d6-1ed6035bb477'; | ||
const docsharePlugin = meeting.plugins.all.get(id); | ||
docsharePlugin.on('ready', () => { | ||
// Ensure the isHost check is only there for one participant | ||
// since the recording can't follow multiple people | ||
const isHost = meeting.self.presetName === '<presetnameofhost>'; | ||
if (!isHost) return; | ||
docsharePlugin.sendData({ | ||
eventName: 'config', | ||
data: { | ||
eventName: 'config', | ||
document: '<document-url>', | ||
followId: meeting.self.userId, | ||
}, | ||
}); | ||
}); | ||
``` | ||
|
||
Now whenever the plugin is loaded it will use the specified parameters. | ||
To open the plugin you can call | ||
|
||
```ts | ||
docsharePlugin.activate(); | ||
``` |
Oops, something went wrong.