View Issue Details

IDProjectCategoryView StatusLast Update
0025576RunnerHTML5Public2018-10-29 12:43
ReporterzenAssigned ToAlan Savage 
PriorityMediumSeverityC - GeneralReproducibility100%
Status ClosedResolutionFixed 
PlatformHTML5OS OS Version
Product VersionPre-2.1.3 
Target Version2.2.1Fixed in Version2.2.1 
Summary0025576: HTML5: audio_get_recorder_count() always returns zero [and microphone recording does not work]
DescriptionUser is attempting to use a microphone with a HTML5 project as the docs says "Recording audio is currently only available currently for the Windows, Xbox One, PlayStation 4 and HTML5 target modules. " -

User has tested on Chrome and Safari and has found that the function audio_get_recorder_count() always returns 0.
Steps To ReproduceCreate an object that prints the value of audio_get_recorder_count every step
Run with target Windows
Notice that the value changes to reflect the number of microphones that are plugged in.
Run with target HTML5
Notice that the value doesn't changed regardless of the number of microphones that are plugged in
Ensure that the browser allows the webpage to use the microphone without requesting permission
Additional InformationOriginal helpdesk ticket:
Tagsaudio, html5, Runner
1.4 Found In1.4.1763
2.x Runtime Found In2.1.0.214
2.x Runtime Verified In2.2.1.268


has duplicate 0028481 ClosedDan Runner HTML5: audio_start_recording and other audio functions will not work as intended 



2017-02-09 15:55

Reporter   ~0051530

Obfuscation might break this function.

navigator._zW=(navigator._zW||navigator._AW||navigator._BW||navigator._CW);function audio_get_recorder_count(){if(navigator._zW){return 1;}return 0;}

Peter Hall

2017-09-25 12:05

Developer   ~0055671

(fwiw, we're attempting to use navigator.getUserMedia, has been deprecated in favour of navigator.mediaDevices.getUserMedia -


2017-12-06 09:24

Adminstrator   ~0056902

0028481 has a sample for this.


2018-08-31 10:35

Adminstrator   ~0061415

The fix made here is custom to HTML5, so won't affect reports of other platforms having the same issue with "audio_get_recorder_count() always returns zero".