GUACAMOLE-237: Move to new getUserMedia method.

This commit is contained in:
Nick Couchman
2018-01-01 22:11:45 -05:00
parent d73a0ece29
commit 1c27c66cb3

View File

@@ -183,11 +183,12 @@ Guacamole.RawAudioRecorder = function RawAudioRecorder(stream, mimetype) {
/**
* A function which directly invokes the browser's implementation of
* navigator.getUserMedia() with all provided parameters.
* navigator.mediaDevices.getUserMedia() with all provided parameters.
*
* @type Function
*/
var getUserMedia = (navigator.getUserMedia
var getUserMedia = (navigator.mediaDevices.getUserMedia
|| navigator.getUserMedia
|| navigator.webkitGetUserMedia
|| navigator.mozGetUserMedia
|| navigator.msGetUserMedia).bind(navigator);