Hello,
I am developing a Tizen HTML5 application on a Tizen 7 device and am encountering an issue with the WebRTC getUserMedia()
API for audio.
I am using a standard WebRTC sample gUM audio that works perfectly in a TV browser. However, when deployed as a Tizen HTML5 application, the getUserMedia()
call fails with the following error:
"getUserMedia error:", "Could not start audio source"
I have already taken the following steps to troubleshoot:
-
Permissions: I have added the required
mediacapture
privilege to myconfig.xml
file. I have also tried addingaudiorecorder
, but neither resolved the issue.<tizen:privilege name="http://tizen.org/privilege/mediacapture"/> <tizen:privilege name="http://tizen.org/privilege/audiorecorder"/>
-
Code: The application’s
getUserMedia()
call is a very basic request for audio.navigator.mediaDevices.getUserMedia({ audio: true, video: false }) .then(function(stream) { console.log('Successfully got audio stream!'); }) .catch(function(error) { console.error('navigator.mediaDevices.getUserMedia error: ', error.message, error.name); });
Any insights or assistance would be greatly appreciated.