Skip to content

Commit

Permalink
fix: added media permission error file
Browse files Browse the repository at this point in the history
  • Loading branch information
roerohan committed Jun 27, 2022
1 parent 6b91a70 commit c6cbf96
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 5 deletions.
1 change: 0 additions & 1 deletion docs/web-core/03-Local User/01-introduction.mdx
@@ -1,5 +1,4 @@
---
sidebar_position: 1
title: Introduction
description: Local user setup guide.
slug: /local-user/introduction
Expand Down
1 change: 0 additions & 1 deletion docs/web-core/03-Local User/02-events.mdx
@@ -1,5 +1,4 @@
---
sidebar_position: 2
title: Events
description: Local user events guide.
slug: /local-user/events
Expand Down
10 changes: 7 additions & 3 deletions docs/web-core/03-Local User/03-manage-media-devices.mdx
@@ -1,7 +1,6 @@
---
sidebar_position: 2
title: Manage media devices
description: Local user media guide.
title: Manage Media Devices
description: Local user media guide to manage media permissions.
slug: /local-user/manage-media-devices
tags: [web-core, local-user, self, self events]
---
Expand All @@ -14,14 +13,19 @@ To get the list of media devices that are currently being used, you can use the
```js
// Get all media devices
const devices = meeting.self.getAllDevices();

// Get all audio devices
const audioDevices = meeting.self.getAudioDevices();

// Get all video devices
const videoDevices = meeting.self.getVideoDevices();

// Get all speakers
const speakerDevices = meeting.self.getSpeakerDevices();

// Get device by ID
const device = meeting.self.getDeviceById('12345', 'audio');

// Fetch current media devices being used
const currentDevices = meeting.self.getCurrentDevices();
```
Expand Down
9 changes: 9 additions & 0 deletions docs/web-core/03-Local User/04-media-permission-errors.mdx
@@ -0,0 +1,9 @@
---
title: Media Permission Errors
description: Local user media guide to local media permission errors.
slug: /local-user/manage-media-devices
tags: [web-core, local-user, self, self events]
---

# Media Permission Errors

0 comments on commit c6cbf96

Please sign in to comment.