GetUserMedia() no longer works?

window.AudioContext = window.AudioContext || window.webkitAudioContext;
 navigator.getUserMedia = ( navigator.getUserMedia ||
 navigator.webkitGetUserMedia ||
 navigator.mozGetUserMedia ||
 window.URL = window.URL || window.webkitURL;

 audio_context = new AudioContext;

 navigator.getUserMedia({audio: true}, startUserMedia, function(e) {
 alert('No live audio input:' + e);

Why in chrome this code doesn't work? Writes getUserMedia() no longer works on insecure origins. To use this feature, you should consider switching your application to a secure origin, such as HTTPS. See for more details.
July 2nd 19 at 17:04
1 answer
July 2nd 19 at 17:06
Because getUserMedia in chrome for need https.
And learn English, useful.
And as for the analogy of this example can be implemented in http ? - Brian commented on July 2nd 19 at 17:09

Find more questions by tags JavaScript