NUI media permissions problem

Hey, I developed a resource that works with a free voice recognition api, and for that I record the media with MediaRecorde. This has been working fine for a couple of months but this days, without updating artifacts or something similar, FiveM is constantly asking to the players to Allow perms, they allow the perms and after reconnecting to the server asks again. Someone knows why is this happening or can give me a hint to solve it? Thanks!

Do you have any server to connect to where this issue occurs to replicate/debug?

Well, the server is whitelisted, if you provide some identifier or you need the full resource I can give it to you without problem :slight_smile: .

My temporal fix to this was to call the function that asks for user media when the player loads into the server, if that happens (not always) will ask perms and reader will not go crazy because if is recording or not .

var constraints = {audio: true}
navigator.mediaDevices.getUserMedia(constraints).then(function(stream) {

Fixed! it was due different connect endpoints so when connecting to a new endpoint of my server and accepting, the endpoint was saved in media_access json. Now I have just one endpoint and working fine.

Ah, that’d make sense. This is indeed why I was asking for a reproduction case, since it seemed like a configuration edge case.

Yes, thanks!