1 decade ago by nightbyter
Hey to all,
i am trying to implement a volume meter component into my game.
I try to use Chris Wilson's Volume meter JS code.
Actually i am not able to activate the dialog for getting the dialog for allowing audio input from within ImpactJS main.js.
This is what i expect to show up after "navigator.getUserMedia "
in main.js - init - i am trying to initialize it:
// Web Audio
this.AudioContext = window.AudioContext || window.webkitAudioContext;
// grab an audio context
this.audioContext = new AudioContext();
// getUserMedia
navigator.getUserMedia = ( navigator.getUserMedia ||
navigator.webkitGetUserMedia ||
navigator.mozGetUserMedia ||
navigator.msGetUserMedia);
ig.normalizeVendorAttribute(navigator, 'getUserMedia');
...
..
.
##
But nothing is asking for permission in my browser...
Can anyone point me in the direction please?
nightbyter
i am trying to implement a volume meter component into my game.
I try to use Chris Wilson's Volume meter JS code.
Actually i am not able to activate the dialog for getting the dialog for allowing audio input from within ImpactJS main.js.
This is what i expect to show up after "navigator.getUserMedia "

// Web Audio
this.AudioContext = window.AudioContext || window.webkitAudioContext;
// grab an audio context
this.audioContext = new AudioContext();
// getUserMedia
navigator.getUserMedia = ( navigator.getUserMedia ||
navigator.webkitGetUserMedia ||
navigator.mozGetUserMedia ||
navigator.msGetUserMedia);
ig.normalizeVendorAttribute(navigator, 'getUserMedia');
...
..
.
##
But nothing is asking for permission in my browser...
Can anyone point me in the direction please?
nightbyter