# mediaCapturePermission

**URL:** <https://devforum.zoom.us/t/mediacapturepermission/105532>\
**Category:** Meeting SDK\
**Tags:** sdk\
**Created:** [March 12, 2024, 7:09am UTC](https://devforum.zoom.us/t/mediacapturepermission/105532 "2024-03-12T07:09:42Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [April 1, 2024, 2:00am UTC](https://devforum.zoom.us/t/mediacapturepermission/105532/21 "2024-04-01T02:00:08Z")

</div>

> [@management1](#):
>
> Yes, We get what you are saying but once the user/hosts grants the recording permission, No recording icon is showed, that was the issue raised by Yoon. So basically you’re saying that recording popup/dialog box will appear once for all and if approved, there will be no icon similar to the image attached below ?

You will call “MediaCapturePermission” to prompt the host for permission.

Once the host approves/deny your request, there is a event handler which you can check if the request is approved / deny.

Only when it is approve, then you can call “StartMediaCapture”. This method will trigger the “recording” image.

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [April 1, 2024, 2:06am UTC](https://devforum.zoom.us/t/mediacapturepermission/105532/22 "2024-04-01T02:06:25Z")

</div>

@management1 the error which you have encountered might be related to running docker on mac environment

> [@Failed to subscribe to raw audio with status 32](https://devforum.zoom.us/t/failed-to-subscribe-to-raw-audio-with-status-32/106487):
>
> Meeting SDK Linux 5.17.11 Docker Ubuntu Description Followed [https://github.com/zoom/meetingsdk-headless-linux-sample](https://github.com/zoom/meetingsdk-headless-linux-sample) and [https://developers.zoom.us/blog/meetingsdk-headless-bot-usage/](https://developers.zoom.us/blog/meetingsdk-headless-bot-usage/) can’t record raw audio and and video Error? failed to subscribe to raw audio with status 32 Troubleshooting Routes tried on MacOS and Linux host, different zoom users. How To Reproduce Steps to reproduce the behavior including: \*1. checkout sample app \*2. copy sdk files \*3. build linux image \*4. run wi…

Nevertheless, I would like to advise you that the sample provides you with access to raw PCM audio and YUV420 video file. You will need to specify where you want to save the files to in code level.

> [@chunsiong.zoom](#):
>
> - get the recording token via OAuth or Server to Server OAuth
> - create a Windows Meeting SDK or Linux Meeting SDK App using c++
> - Join the meeting using the recording token
> - process the raw audio and raw video in PCM and YUV420 format accordingly

---

<div class="post-metadata">

**Author:** ![management1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/management1/32/49650_2.png) [@management1](https://devforum.zoom.us/u/management1)\
**Post date:** [April 1, 2024, 6:14am UTC](https://devforum.zoom.us/t/mediacapturepermission/105532/23 "2024-04-01T06:14:52Z")

</div>

@chunsiong.zoom  
where do i specify which folder to save the recordings and which file/configuration is done to enable the recording.  
also we are running docker on ubuntu

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [April 1, 2024, 6:36am UTC](https://devforum.zoom.us/t/mediacapturepermission/105532/24 "2024-04-01T06:36:29Z")

</div>

@management1

YUV420 Video is specified in  
ZoomSDKRenderer.cpp  
under the method SaveToRawYUVFile

PCM is specified in ZoomSDKAudioRawData.cpp  
under the method onMixedAudioRawDataReceived

---

<div class="post-metadata">

**Author:** ![management1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/management1/32/49650_2.png) [@management1](https://devforum.zoom.us/u/management1)\
**Post date:** [April 1, 2024, 9:32am UTC](https://devforum.zoom.us/t/mediacapturepermission/105532/25 "2024-04-01T09:32:57Z")

</div>

@chunsiong.zoom  
and where to give a specific path to save the recordings too ?

also to clarify we are giving the bot recording permission but it is still unable to record as highlighted in the above sent pictures.

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [April 1, 2024, 11:02am UTC](https://devforum.zoom.us/t/mediacapturepermission/105532/26 "2024-04-01T11:02:39Z")

</div>

@management1 the sample app is not meant to be used as is. You will need to change the code and customize it to your needs.

The path to save the files are already mentioned

YUV420 Video save path is specified in  
ZoomSDKRenderer.cpp  
under the method SaveToRawYUVFile

PCM save path is specified in ZoomSDKAudioRawData.cpp  
under the method onMixedAudioRawDataReceived

After getting recording permission, the sample app already has an event handler which would start the audio and video recording.

---

<div class="post-metadata">

**Author:** ![management1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/management1/32/49650_2.png) [@management1](https://devforum.zoom.us/u/management1)\
**Post date:** [April 1, 2024, 11:04am UTC](https://devforum.zoom.us/t/mediacapturepermission/105532/27 "2024-04-01T11:04:52Z")

</div>

@chunsiong.zoom  
can you specify where this event handler it so that we can modify it according to our use case.

Because the issue at hand is, the headless bot joins the meeting, asks for permission which is granted but is unable to record.

Please view the below image :

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/d/b/dbb18a471ff371064e40d8ad5a801073efddbca0.png)

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [April 1, 2024, 11:09am UTC](https://devforum.zoom.us/t/mediacapturepermission/105532/28 "2024-04-01T11:09:31Z")

</div>

@management1

I believe for that sample app which you have just shared, you will need to implement the event handler yourself.

There is another sample app which has the event handler implemented

> **[GitHub - zoom/meetingsdk-linux-raw-recording-sample](https://github.com/zoom/meetingsdk-linux-raw-recording-sample)**
>
> Contribute to zoom/meetingsdk-linux-raw-recording-sample development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![management1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/management1/32/49650_2.png) [@management1](https://devforum.zoom.us/u/management1)\
**Post date:** [April 1, 2024, 11:11am UTC](https://devforum.zoom.us/t/mediacapturepermission/105532/29 "2024-04-01T11:11:20Z")

</div>

@chunsiong.zoom  
could you be kind enough to highlight where this event handler is, in which of the files, it makes our process way more simpler.

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [April 1, 2024, 11:14am UTC](https://devforum.zoom.us/t/mediacapturepermission/105532/30 "2024-04-01T11:14:42Z")

</div>

@management1  
Please check under meeting\_sdk\_demo.cpp

//callback when given host permission  
void onIsHost() {  
printf(“Is host now…\n”);  
CheckAndStartRawRecording(GetVideoRawData, GetAudioRawData);  
}

//callback when given cohost permission  
void onIsCoHost() {  
printf(“Is co-host now…\n”);  
CheckAndStartRawRecording(GetVideoRawData, GetAudioRawData);  
}  
//callback when given recording permission  
void onIsGivenRecordingPermission() {  
printf(“Is given recording permissions now…\n”);  
CheckAndStartRawRecording(GetVideoRawData, GetAudioRawData);  
}

---

<div class="post-metadata">

**Author:** ![management1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/management1/32/49650_2.png) [@management1](https://devforum.zoom.us/u/management1)\
**Post date:** [April 2, 2024, 7:46am UTC](https://devforum.zoom.us/t/mediacapturepermission/105532/31 "2024-04-02T07:46:15Z")

</div>

@chunsiong.zoom  
./meetingSDKDemo: error while loading shared libraries: libQt5Quick.so.5: cannot open shared object file: No such file or directory

we downloaded qt5 versions but it gives version mismatch error

could you either tell us why this issue is occuring and also the versions if required

we have followed the steps of [GitHub - zoom/meetingsdk-linux-raw-recording-sample](https://github.com/zoom/meetingsdk-linux-raw-recording-sample/tree/main)

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [April 2, 2024, 8:36am UTC](https://devforum.zoom.us/t/mediacapturepermission/105532/32 "2024-04-02T08:36:59Z")

</div>

@management1 ,

I don’t think the readme.md guide mentioned anything about downloading qt5 seperately. You don’t need to download qt5, it is already part of the SDK which you need to download and copy over.

---

<div class="post-metadata">

**Author:** ![management1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/management1/32/49650_2.png) [@management1](https://devforum.zoom.us/u/management1)\
**Post date:** [April 2, 2024, 9:18am UTC](https://devforum.zoom.us/t/mediacapturepermission/105532/33 "2024-04-02T09:18:41Z")

</div>

@chunsiong.zoom

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/2/622fe48ad52f97434d490b657beeecac4f6ed639.png)  
This is the issue now, it doesnot move ahead from this, i am passing all the correct parameters inclusive of the jwt token.  
the config.txt is  
meeting\_number: “9407163058”  
token:  
meeting\_password: “6xaDnT”  
recording\_token: “”  
GetVideoRawData: “true”  
GetAudioRawData: “true”  
SendVideoRawData: “false”  
SendAudioRawData: "false

i have further debugged and have identified that the issue is `SDKERR_INTERNAL_ERROR` 15 SDK internal error…

Do you have any idea why this occurs and a way around it.

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [April 2, 2024, 10:11am UTC](https://devforum.zoom.us/t/mediacapturepermission/105532/34 "2024-04-02T10:11:09Z")

</div>

@management1 sorry I’m not familiar with that error code.

Did you use the SDK files as is based on the readme? There is a chance that the error in compilation or runtime is caused by variations from the guide.

Could you also share the signature in clear text form?

---

<div class="post-metadata">

**Author:** ![management1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/management1/32/49650_2.png) [@management1](https://devforum.zoom.us/u/management1)\
**Post date:** [April 2, 2024, 10:13am UTC](https://devforum.zoom.us/t/mediacapturepermission/105532/35 "2024-04-02T10:13:14Z")

</div>

the signature is eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzZGtLZXkiOiJjZ2luOW11RVJZYTF6ZzN2ZURqd3dnIiwibW4iOjk0MDcxNjMwNTgsInJvbGUiOjAsImlhdCI6MTcxMjA0NzkwMSwiZXhwIjoxNzEyMDQ4NTAxLCJ0b2tlbkV4cCI6MTcxMjA0ODUwMX0.ci956S38HAOaz89vvjsYuOfYsyGDB6b5SVFFOgQcJwU

all steps from guide / read me have been followed

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [April 2, 2024, 10:28am UTC](https://devforum.zoom.us/t/mediacapturepermission/105532/36 "2024-04-02T10:28:28Z")

</div>

@management1 can you follow the guide on sdk signature creation?

> **[Meeting SDK Auth](https://developers.zoom.us/docs/meeting-sdk/auth/#payload)**
>
> The Zoom Developer Platform is an open platform that allows third-party developers to build applications and integrations upon Zoom’s video-first unified communications platform.

I won’t go thru all of them, but for your specific token, the expire is less then the required 30 minutes from iat

---

<div class="post-metadata">

**Author:** ![management1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/management1/32/49650_2.png) [@management1](https://devforum.zoom.us/u/management1)\
**Post date:** [April 2, 2024, 10:37am UTC](https://devforum.zoom.us/t/mediacapturepermission/105532/37 "2024-04-02T10:37:48Z")

</div>

eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhcHBLZXkiOiJjZ2luOW11RVJZYTF6ZzN2ZURqd3dnIiwiaWF0IjoxNzEyMDQ3OTAxLCJleHAiOjE3MTIwNTU3MDEsInRva2VuRXhwIjoxNzEyMDU1NzAxfQ.F1VKB5kVwibKwp6HksfQslT9iMa8BbE8027\_gp421RY

please evaluate this token, i have fixed from my end, the expiration time

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [April 2, 2024, 11:04am UTC](https://devforum.zoom.us/t/mediacapturepermission/105532/38 "2024-04-02T11:04:52Z")

</div>

> [@management1](#):
>
> eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhcHBLZXkiOiJjZ2luOW11RVJZYTF6ZzN2ZURqd3dnIiwiaWF0IjoxNzEyMDQ3OTAxLCJleHAiOjE3MTIwNTU3MDEsInRva2VuRXhwIjoxNzEyMDU1NzAxfQ.F1VKB5kVwibKwp6HksfQslT9iMa8BbE8027\_gp421RY

this has just expired by the way

---

<div class="post-metadata">

**Author:** ![management1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/management1/32/49650_2.png) [@management1](https://devforum.zoom.us/u/management1)\
**Post date:** [April 2, 2024, 11:10am UTC](https://devforum.zoom.us/t/mediacapturepermission/105532/39 "2024-04-02T11:10:24Z")

</div>

eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhcHBLZXkiOiJjZ2luOW11RVJZYTF6ZzN2ZURqd3dnIiwiaWF0IjoxNzEyMDQ3OTAxLCJleHAiOjE3MTIwOTE3MDEsInRva2VuRXhwIjoxNzEyMDkxNzAxfQ.w4zAib2ll6cqDmxc6sh9QNpJ8wpIgYImIwrMtkklLLU

test this, have added a 12 hour time delay now

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [April 2, 2024, 12:06pm UTC](https://devforum.zoom.us/t/mediacapturepermission/105532/40 "2024-04-02T12:06:49Z")

</div>

@management1,

This clientID is for production. Your application has not been published yet, you should still be using development clientID.

[Previous page](https://devforum.zoom.us/t/mediacapturepermission/105532.md?page=1)

[Next page](https://devforum.zoom.us/t/mediacapturepermission/105532.md?page=3)
