# How to access the remote media

**URL:** https://community.sendbird.com/t/how-to-access-the-remote-media/6694
**Category:** JavaScript
**Tags:** sendbird-call, javascript
**Created:** [March 3, 2023, 8:29am UTC](https://community.sendbird.com/t/how-to-access-the-remote-media/6694 "2023-03-03T08:29:13Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Ashish\_Kumar\_Kumar](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/ashish_kumar_kumar/32/3678_2.png) [@Ashish\_Kumar\_Kumar](https://community.sendbird.com/u/Ashish_Kumar_Kumar)
#### Post date: [March 3, 2023, 8:29am UTC](https://community.sendbird.com/t/how-to-access-the-remote-media/6694/1 "2023-03-03T08:29:13Z")

</div>

**[Problem/Question]**  
I’m not be able to access the remote media when the call is connected i have created the functions in utils/functions.ts section and now i want when the call is going on access the remote video and audio currently my video and audio going through the call but the im able to fetch the remote audio and video format

* * *

// If problem, please fill out the below. If question, please delete.  
**[SDK Version]**  
// What version of the SDK are you using?

**[Reproduction Steps]**  
// Please provide reproduction steps and, if possible, code snippets.

**[Frequency]**  
// How frequently is this issue occurring?

**[Current impact]**  
// How is this currently impacting your implementation?

---

<div class="post-metadata">

### Author: ![Tyler](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/tyler/32/810_2.png) [@Tyler](https://community.sendbird.com/u/Tyler)
#### Post date: [March 3, 2023, 9:19am UTC](https://community.sendbird.com/t/how-to-access-the-remote-media/6694/2 "2023-03-03T09:19:11Z")

</div>

Hello @Ashish_Kumar_Kumar,

Welcome to the Sendbird Community.

Have you called `Sendbird.useMedia()` prior to making your calls?

> **[Make your first call | Calls JavaScript SDK | Sendbird Docs](https://sendbird.com/docs/calls/sdk/v1/javascript/getting-started/make-first-call)**
>
> Learn how to make the first call using the Calls SDK for JavaScript.

> **Note** : If the `SendBirdCall.useMedia()` function isn’t called before making or receiving the first call using your JavaScript application in a browser, the browser might prompt the user to grant microphone and camera access permissions.

---

<div class="post-metadata">

### Author: ![Ashish\_Kumar\_Kumar](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/ashish_kumar_kumar/32/3678_2.png) [@Ashish\_Kumar\_Kumar](https://community.sendbird.com/u/Ashish_Kumar_Kumar)
#### Post date: [March 3, 2023, 12:08pm UTC](https://community.sendbird.com/t/how-to-access-the-remote-media/6694/3 "2023-03-03T12:08:48Z")

</div>

im calling make call function in the other component and after that i m redirecting to the some page and there i 'm streaming incoming and outgoing video using the useRef and DirectCall there im able to use the localmedia but not remote media in sendbirdcall in nextjs
