Skip to content

Commit f595f9e

Browse files
Feature: add cameraAccess parameter (#21)
* Feature: add cameraAccess parameter * Fix: test * Chore: version bump
1 parent 6f16307 commit f595f9e

File tree

4 files changed

+8
-1
lines changed

4 files changed

+8
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@whereby.com/browser-sdk",
3-
"version": "1.7.1",
3+
"version": "1.8.0",
44
"description": "Configurable web component for embedding Whereby video rooms in web applications",
55
"author": "Whereby AS",
66
"license": "MIT",

src/index.stories.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ export default {
77
audio: { control: "boolean" },
88
avatarUrl: { control: "text", description: "Image url to use for avatar" },
99
background: { control: "boolean" },
10+
cameraAccess: { control: "boolean" },
1011
chat: { control: "boolean" },
1112
displayName: { control: "text", description: "The name to use for the local participant" },
1213
embed: { control: "boolean" },
@@ -33,6 +34,7 @@ const WherebyEmbed = ({
3334
audio,
3435
avatarUrl,
3536
background,
37+
cameraAccess,
3638
chat,
3739
displayName,
3840
emptyRoomInvitation,
@@ -52,6 +54,7 @@ const WherebyEmbed = ({
5254
audio=${offOn(audio)}
5355
avatarUrl=${avatarUrl}
5456
background=${offOn(background)}
57+
cameraAccess=${offOn(cameraAccess)}
5558
chat=${offOn(chat)}
5659
displayName=${displayName}
5760
emptyRoomInvitation=${emptyRoomInvitation}
@@ -77,6 +80,7 @@ Primary.args = {
7780
audio: true,
7881
avatarUrl: "",
7982
background: true,
83+
cameraAccess: true,
8084
chat: true,
8185
displayName: "Your name",
8286
emptyRoomInvitation: true,

src/lib/__tests__/index.unit.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ describe("@whereby/browser-sdk", () => {
2222

2323
it("should expose attributes", async () => {
2424
await import("..");
25+
2526
expect(define).toBeCalledWith(
2627
expect.any(String),
2728
expect.objectContaining({
@@ -37,6 +38,7 @@ describe("@whereby/browser-sdk", () => {
3738
"avatarurl",
3839
"audio",
3940
"background",
41+
"cameraaccess",
4042
"chat",
4143
"people",
4244
"embed",

src/lib/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { define, ref } from "heresy";
33
const boolAttrs = [
44
"audio",
55
"background",
6+
"cameraAccess",
67
"chat",
78
"people",
89
"embed",

0 commit comments

Comments
 (0)