Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release PR #2130

Merged
merged 161 commits into from
Apr 9, 2024
Merged
Changes from all commits
Commits
Show all changes
161 commits
Select commit Hold shift + click to select a range
2abb0ef
Sync QA (#1848)
saikatmitra91 Nov 7, 2023
d578886
Qa main backmerge 2 (#1855)
hdz-666 Nov 8, 2023
ec9b1ec
Merge branch 'main' into qa
hdz-666 Nov 8, 2023
eb69449
fix: typos (#1850) (#1856)
hdz-666 Nov 8, 2023
e8e5bb0
Backmerge main to QA (#1891)
KaustubhKumar05 Dec 6, 2023
85df7f2
Update qa (#1917)
KaustubhKumar05 Dec 18, 2023
726c48c
fix: sidebar rendering in examples pages (#1916)
KaustubhKumar05 Dec 18, 2023
3378802
Revert sidebar changes (#1918)
KaustubhKumar05 Dec 18, 2023
159079a
Fix link fetching (#1919)
KaustubhKumar05 Dec 18, 2023
c21157a
Merge branch 'main' into qa
KaustubhKumar05 Dec 18, 2023
3744078
Update QA (#1924)
KaustubhKumar05 Dec 20, 2023
18c8101
migration guide update for android and ios (#1923)
mntrspace Dec 20, 2023
16c8ac3
Update qa w main (#1927)
KaustubhKumar05 Dec 20, 2023
fd009db
Main to QA backmerge (#1928)
AnkitRastogi3 Dec 20, 2023
8f7e11e
Merge branch 'main' into qa
hdz-666 Dec 21, 2023
96388c9
HMS-7303 (#1931)
vivekd-100ms Dec 22, 2023
d489b64
add room_name and recording_id in webhooks (#1905)
pratishbodhale Dec 23, 2023
795e860
Merge branch 'main' into qa
KaustubhKumar05 Dec 26, 2023
ae51521
live transcription doc (#1922)
mntrspace Dec 26, 2023
c2e25ef
updated PIP docs (#1934)
ygit Dec 27, 2023
5a512ae
1.4.2 iOS Release (#1935)
gzerad Jan 4, 2024
e5c1ff9
Added jsx to accept.txt (#1944)
mntrspace Jan 9, 2024
326318d
Updates to post call transcription guide, rtmp ingestion guide, live …
mntrspace Jan 9, 2024
fb552ce
Security and compliance (#1946)
mntrspace Jan 10, 2024
0ab95e6
fix: vale version (#1949)
KaustubhKumar05 Jan 10, 2024
dbf2eb4
Merge branch 'main' into qa
KaustubhKumar05 Jan 10, 2024
d3b245d
Main to QA backmerge (#1953)
KaustubhKumar05 Jan 12, 2024
2505361
5 Jan web release notes (#1945)
KaustubhKumar05 Jan 12, 2024
e36ad88
virtual background (#1937)
akankshat100ms Jan 16, 2024
6d972b4
Merge branch 'main' into qa
KaustubhKumar05 Jan 16, 2024
3884e45
Virtual background (#1960)
akankshat100ms Jan 17, 2024
4b5bec1
fix: update (#1962)
KaustubhKumar05 Jan 18, 2024
755d398
Merge branch 'main' into qa
KaustubhKumar05 Jan 18, 2024
3fecca2
docs(web): update api reference (#1965)
s-dvd Jan 19, 2024
47f7719
Merge branch 'main' into qa
KaustubhKumar05 Jan 19, 2024
0bdde97
Web release notes 1901 (#1967)
KaustubhKumar05 Jan 19, 2024
2022114
remove redundant vb file (#1969)
KaustubhKumar05 Jan 22, 2024
fa86a5f
docs: 25 Jan 2024 web release notes
raviteja83 Jan 29, 2024
da7ca34
docs: update
raviteja83 Jan 29, 2024
aae54b9
SS-3421 : Added suggested blogs component (#1959)
AnkitRastogi3 Jan 29, 2024
87dfbbf
SS-3634 : Moved prebuilt from overview and added in sidebar list (#1974)
AnkitRastogi3 Jan 30, 2024
26a72d1
SS: 3634 updates (#1975)
AnkitRastogi3 Jan 30, 2024
867a406
Docs release PR (#1980)
KaustubhKumar05 Feb 2, 2024
ac4927d
fix modes in template request
pratishbodhale Feb 7, 2024
8fbe54b
Ss 3637 (#1977)
AnkitRastogi3 Feb 9, 2024
9f26ea1
Merge branch 'main' into qa
KaustubhKumar05 Feb 12, 2024
137c880
Ss 3637 - handling hash (#1996)
AnkitRastogi3 Feb 12, 2024
b250d25
HMS-8358 (#2000)
vivekd-100ms Feb 14, 2024
f205f82
removed dummy blogs (#1986)
AnkitRastogi3 Feb 14, 2024
c494d0f
list query params (#1988)
KaustubhKumar05 Feb 14, 2024
c07f910
Merge branch 'main' into qa
KaustubhKumar05 Feb 14, 2024
4575fe0
User context (#2003)
akankshat100ms Feb 15, 2024
88e700d
Roomauth (#2004)
akankshat100ms Feb 15, 2024
eddb6a6
Roomauth (#2005)
akankshat100ms Feb 16, 2024
a77e4d3
Update adaptive-bitrate.md (#1884)
mntrspace Feb 16, 2024
730a3a4
Update qa (#2007)
KaustubhKumar05 Feb 16, 2024
bf380a7
Qa backmerge (#2008)
KaustubhKumar05 Feb 16, 2024
dd8bca0
Merge branch 'main' into qa
KaustubhKumar05 Feb 16, 2024
0dae993
fix: update HMSQuizLeaderboard (#1939)
KaustubhKumar05 Feb 16, 2024
36cf44c
docs: add web release notes
raviteja83 Feb 19, 2024
a02511f
Merge branch 'main' into qa
KaustubhKumar05 Feb 20, 2024
c309f3f
Migration guide update 20feb2024 (#2021)
mntrspace Feb 22, 2024
b092bfd
Hipaa compliance 20feb2024 (#2022)
mntrspace Feb 22, 2024
232dd12
Merge branch 'main' into qa
KaustubhKumar05 Feb 22, 2024
e87d6e0
Effects VB integration doc (#1990)
KaustubhKumar05 Feb 22, 2024
12bca85
Automation workflows (#2024)
KaustubhKumar05 Feb 22, 2024
a85ec55
Hipaa updates 22feb2024 (#2026)
mntrspace Feb 22, 2024
3f028f7
Merge branch 'main' into qa
mntrspace Feb 23, 2024
ab94791
docs(web): update api reference (#2027)
s-dvd Feb 23, 2024
c3fc4b7
Backmerge PR (#2030)
KaustubhKumar05 Feb 23, 2024
9098bf9
Merge branch 'main' into qa
KaustubhKumar05 Feb 23, 2024
845ff56
Release notes 2024-02-23 (#2032)
KaustubhKumar05 Feb 26, 2024
e0a8907
Peerinsights (#2014)
akankshat100ms Feb 26, 2024
5a85d56
Update peerinsights.mdx
akankshat100ms Feb 26, 2024
69eaaf9
Merge branch 'main' into qa
KaustubhKumar05 Feb 26, 2024
0123f72
fix: release automation actions (#2034)
KaustubhKumar05 Feb 26, 2024
b8b4fcd
Merge branch 'main' into qa
KaustubhKumar05 Feb 26, 2024
70518f8
fix: tags in release notes (#2036)
KaustubhKumar05 Feb 26, 2024
0c81e9e
fix: tags for subheading
KaustubhKumar05 Feb 26, 2024
a4a0c2a
Sip and hipaa updates 27feb2024 (#2045)
mntrspace Feb 28, 2024
b3b5f86
Merge branch 'main' into qa
KaustubhKumar05 Feb 28, 2024
5d0f290
SS-3439 : support all react-icons in Callout (#2044)
AnkitRastogi3 Mar 1, 2024
64ff69a
New recordings (#2031)
akankshat100ms Mar 4, 2024
556ec34
Merge branch 'main' into qa
KaustubhKumar05 Mar 4, 2024
dd3887f
fix: icons for callout component (#2050)
KaustubhKumar05 Mar 4, 2024
faad040
fix: closing tag for flexcontainer
KaustubhKumar05 Mar 4, 2024
ac9467e
Merge branch 'qa' of https://github.com/100mslive/100ms-docs into qa
KaustubhKumar05 Mar 4, 2024
2030ad7
Fix recording mode description in the overview. (#2051)
rtpriya Mar 4, 2024
8c75464
Merge open prs (#2052)
KaustubhKumar05 Mar 4, 2024
21c19cd
Added poll methods (#2048)
Decoder07 Mar 4, 2024
e9feb95
Merge branch 'main' into qa
ygit Mar 4, 2024
5e7d23b
Updated release notes (#2049)
Decoder07 Mar 4, 2024
efe91e4
fix: links
KaustubhKumar05 Mar 4, 2024
618919d
backmerge: main to qa (#2055)
github-actions[bot] Mar 4, 2024
b06db63
Merge branch 'main' into qa
KaustubhKumar05 Mar 4, 2024
6e00099
fix: links (#2057)
KaustubhKumar05 Mar 5, 2024
d0c7334
fix: links (#2059)
KaustubhKumar05 Mar 5, 2024
62d9aa5
Merge branch 'main' into qa
KaustubhKumar05 Mar 5, 2024
6ccd2c9
fix: link
KaustubhKumar05 Mar 5, 2024
d1e4f8a
docs: 05 Mar web release notes (#2063)
raviteja83 Mar 5, 2024
a3eab3b
docs(web): update api reference (#2062)
s-dvd Mar 5, 2024
1e983e1
backmerge: main to qa (#2064)
github-actions[bot] Mar 5, 2024
8e9b9df
Merge branch 'main' into qa
KaustubhKumar05 Mar 5, 2024
74cd382
HMS-8358 Add examples for track and stream assets (#2066)
vivekd-100ms Mar 5, 2024
9aab5b7
updated React Native release notes (#2067)
ygit Mar 5, 2024
7819848
Fix stream recording mode changes (#2069)
rtpriya Mar 7, 2024
cb35cb1
Merge branch 'main' into qa
KaustubhKumar05 Mar 7, 2024
aa213fb
docs: update to proper version (#2071)
raviteja83 Mar 7, 2024
bf05052
Merge branch 'main' into qa
KaustubhKumar05 Mar 7, 2024
a6db2e8
Flutter/faq update (#2073)
Decoder07 Mar 8, 2024
c854afe
docs(rn): :sparkles: added expo prebuilt quickstart guide (#2075)
stanwolverine Mar 8, 2024
0bfe4ab
Merge branch 'main' into qa
ygit Mar 8, 2024
70cc315
Update expo-prebuilt.mdx
ygit Mar 8, 2024
b89f593
updated width and height of image
stanwolverine Mar 8, 2024
54f0eb9
Update expo-prebuilt.mdx
ygit Mar 8, 2024
7d62f3d
backmerge: main to qa (#2078)
github-actions[bot] Mar 12, 2024
ae92cee
fix: added new method defination (#2002)
amar-1995 Mar 12, 2024
9bcc7ed
docs(rn): :sparkles: added call interruption handling docs on rn (#2080)
stanwolverine Mar 13, 2024
9dfa206
docs(rn): :sparkles: added docs for quiz leaderboard and quiz (#2060)
stanwolverine Mar 13, 2024
924426d
RN: added `FOREGROUND_SERVICE_MEDIA_PROJECTION` permission in docs (#…
stanwolverine Mar 13, 2024
4d4c820
Merge branch 'main' into qa
ygit Mar 14, 2024
a70cc3f
fix: ignore repetition unless typo
KaustubhKumar05 Mar 14, 2024
aad10ec
Merge branch 'main' into qa
ygit Mar 14, 2024
92dcc0d
Ss dashboard docs insights (#2084)
akankshat100ms Mar 14, 2024
bb0aafa
SSO -> OAuth (#2087)
akankshat100ms Mar 14, 2024
448dbec
fix: OAuth casing
KaustubhKumar05 Mar 14, 2024
05eae72
Merge branch 'main' into qa
KaustubhKumar05 Mar 14, 2024
4936146
fix: import HMSNotificationTypes enum
KaustubhKumar05 Mar 14, 2024
d7263df
fix: image indentation causes overflow (#2089)
KaustubhKumar05 Mar 14, 2024
a78379d
Merge branch 'main' into qa
KaustubhKumar05 Mar 14, 2024
7135c3e
Added release notes for 1.9.13 (#2092)
Decoder07 Mar 15, 2024
0eb532b
backmerge: main to qa (#2094)
github-actions[bot] Mar 15, 2024
e0141e4
Merge branch 'main' into qa
ygit Mar 15, 2024
dfbf840
Flutter/updated release notes (#2096)
Decoder07 Mar 15, 2024
6fc2655
Merge branch 'main' into qa
Decoder07 Mar 15, 2024
88c213e
backmerge: main to qa (#2098)
github-actions[bot] Mar 15, 2024
0ea3444
Merge branch 'main' into qa
ygit Mar 15, 2024
50f1098
added doc for newly added `switchAudioOutput` method on ios (#2100)
stanwolverine Mar 15, 2024
1e2bf67
updated docs (#2099)
ygit Mar 15, 2024
1aa9d9c
updated docs
ygit Mar 15, 2024
32f50ce
Merge branch 'main' into qa
ygit Mar 15, 2024
8d81717
updated API References (#2102)
ygit Mar 15, 2024
acfbada
Recording Edits (#2104)
akankshat100ms Mar 18, 2024
81e5add
Android API reference docs PR (#2110)
AniketSK Mar 23, 2024
733ba0e
added initial sdk quickstart guide for expo (#2109)
stanwolverine Mar 23, 2024
25f58c0
Merge branch 'main' into qa
ygit Mar 23, 2024
653d9cf
feat: add release notes
KaustubhKumar05 Mar 26, 2024
50f278f
Merge branch 'main' into qa
raviteja83 Mar 26, 2024
f841cd5
Added release notes (#2115)
Decoder07 Apr 1, 2024
feed7bb
Merge branch 'main' into qa
ygit Apr 1, 2024
9c381a6
Update release notes (#2119)
ygit Apr 1, 2024
fa5c7ca
Merge branch 'main' into qa
ygit Apr 1, 2024
3143fd6
docs(web): update api reference (#2121)
s-dvd Apr 8, 2024
08ed357
Merge branch 'main' into qa
KaustubhKumar05 Apr 8, 2024
d84f45f
fix: add changelog (#2123)
KaustubhKumar05 Apr 8, 2024
f581703
fix: web changelog (#2126)
KaustubhKumar05 Apr 8, 2024
28ba496
Added RN release notes (#2127)
ygit Apr 8, 2024
64f8e44
Merge branch 'main' into qa
ygit Apr 8, 2024
bfae162
resolved typo
ygit Apr 8, 2024
0e30297
Feature/whiteboard (#2124)
gulzar1996 Apr 9, 2024
a227b50
Merge branch 'main' into qa
gulzar1996 Apr 9, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
131 changes: 131 additions & 0 deletions docs/android/v2/how-to-guides/extend-capabilities/whiteboard.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,131 @@
---
title: Whiteboard
nav: 4.7
---

## Introduction

The Android SDK provided by 100ms offers support for starting and stopping a whiteboard feature using a `WebView`.
This feature allows users to collaborate on a shared digital whiteboard in real-time. However, it's important to note that for a user to be able to start or view the whiteboard,
their role must have the whiteboard functionality enabled in the 100ms dashboard.

## Supported Versions

- Minimum 100ms SDK version it can work with is `2.9.53`

## WebView configuration for whiteboard

To make sure whiteboard work correctly with android's `WebView` the follwing configuration needs to be added.

```kotlin

webview.apply {
settings?.javaScriptEnabled = true
settings?.domStorageEnabled = true
}

```



# Listen for whiteboard updates

When the `HMSWhiteboardUpdateListener` is triggered, it will receive an instance of `HMSWhiteboardUpdate`, which can be one of two types:

- `HMSWhiteboardUpdate.Start`: Indicates that the whiteboard has been started.
- `HMSWhiteboardUpdate.Stop`: Indicates that the whiteboard has been stopped.

```kotlin

val hmsSDK = HMSSDK
.Builder(application) //application context
.build()

//setting up whiteboard listener.
hmsSDK.getHmsInteractivityCenter().setWhiteboardUpdateListener(object : HMSWhiteboardUpdateListener {
override fun onUpdate(hmsWhiteboardUpdate: HMSWhiteboardUpdate) {
when(hmsWhiteboardUpdate) {
is HMSWhiteboardUpdate.Start -> //handle start
is HMSWhiteboardUpdate.Stop -> //handle stop
}
}
})

```

## Start whiteboard update

When the `HMSWhiteboardUpdateListener` receives an instance of `HMSWhiteboardUpdate.Start`, it indicates that the whiteboard has been started.
In this case, you can load the `url` from `HMSWhiteboard` class into a Webview. This will render the whiteboard on the webview.

## Stop whiteboard update

When the `HMSWhiteboardUpdateListener` receives an instance of `HMSWhiteboardUpdate.Stop`, it indicates that the whiteboard has been stopped.
In this case, you can implement the necessary logic to handle the stop of the whiteboard, such as hiding the webview visibility.

## HMSWhiteboard model

`HMSWhiteboard` model is returned on both start/stop of the `HMSWhiteboardUpdate`. The model contains information releated to the current whiteboard in the session.

### Properties
- `id`: A unique identifier for the whiteboard session.
- `title`: The title or name of the whiteboard session
- `owner`: The HMSPeer object representing the owner of the whiteboard session. This property can be null if the owner information is not available.
- `isOwner`: A boolean flag indicating whether the current user has started the whiteboard session.
- `isAdmin`: A boolean flag indicating whether the current user can start/stop the whiteboard session.
- `url`: The link to the whiteboard session.
- `isOpen`: A boolean flag indicating whether the whiteboard session is currently open and active.


# Starting/Stopping whiteboard

## Starting whiteboard
To start a whiteboard, ensure that the role has the appropriate permission and the current whiteboard is not already open.
The callback will be sent as `HMSWhiteboardUpdate.Start` in `setWhiteboardUpdateListener()`.

> Note: Remember to check if the peer starting whiteboard has owner permission

```kotlin
val currentWhiteBoardModel : HMSWhiteboard? = //you can get HMSWhiteboard model from HMSWhiteboardUpdate


if (currentWhiteBoardModel == null || currentWhiteBoardModel?.isOpen == false) {
localHmsInteractivityCenter.startWhiteboard(
title = <Add your whiteboard title>,
object : HMSActionResultListener {
override fun onError(error: HMSException) {}
override fun onSuccess() {}
})
}
```

## Stopping whiteboard

To stop currently opened whiteboard make sure the role has appropriate permission and the current whiteboard session is opened by the user.
The callback will be sent as `HMSWhiteboardUpdate.Stop` in `setWhiteboardUpdateListener()`.


```kotlin

val currentWhiteBoardModel : HMSWhiteboard? = //you can get HMSWhiteboard model from HMSWhiteboardUpdate

//early exit if the whiteboard is already closed and the peer didn't start the whiteboard
if (currentWhiteBoardModel?.isOpen == true && currentWhiteBoardModel.isOwner.not())
return

if (currentWhiteBoardModel?.isOpen == true) {
localHmsInteractivityCenter.stopWhiteboard(object : HMSActionResultListener{
override fun onError(error: HMSException) {}
override fun onSuccess() {}
})
}

```

If the `isOwner` is true in `HMSWhiteboard` model then user has to refresh and close the `WebView` to make the whiteboard session stop.

> Note: Only owner can close the currently opened whiteboard session

```kotlin
webview?.loadUrl(")
```
Loading