I am currently playing an MP3 that essentially notifies the users the meeting is being recorded via the Audio built into the browser, but if both users have head pieces on it will not get heard on the recording.
var audio = new Audio(‘recorded.mp3’);
audio.play();
It is not relative with OpenVidu. Just google it
Thanks for your response, but I am aware of how to play audio with JavaScript.
Please note that playing an MP3 via the browser doesn’t place audio into the recording.
I am guessing you might need to publish another audio stream into the session to get it into the actual recording.
I’m not sure about this option could be the solution but you could try create a new MediaStream and customize it setting your mp3 file as audio track. Adding this new MediaStream to an existing publisher or creating a new one should be enough to be recorded.