GUACAMOLE-237: Update JSDoc comments for new code.

This commit is contained in:
Nick Couchman
2018-01-03 12:19:48 -05:00
parent 4c53f28aa2
commit f0a658bb97

View File

@@ -182,15 +182,18 @@ Guacamole.RawAudioRecorder = function RawAudioRecorder(stream, mimetype) {
var context = Guacamole.AudioContextFactory.getAudioContext(); var context = Guacamole.AudioContextFactory.getAudioContext();
/** /**
* A function which directly invokes the browser's implementation of * Some browsers do not implement navigator.mediaDevices - this
* navigator.mediaDevices.getUserMedia() with all provided parameters. * shims in this functionality to ensure code compatibility.
*
* @type Function
*/ */
if (!navigator.mediaDevices) if (!navigator.mediaDevices)
navigator.mediaDevices = {}; navigator.mediaDevices = {};
/**
* Browsers that either do not implement navigator.mediaDevices
* at all or do not implement it completely need the getUserMedia
* method defined. This shims in this function by detecting
* one of the supported legacy methods.
*/
if (!navigator.mediaDevices.getUserMedia) if (!navigator.mediaDevices.getUserMedia)
navigator.mediaDevices.getUserMedia = (navigator.getUserMedia navigator.mediaDevices.getUserMedia = (navigator.getUserMedia
|| navigator.webkitGetUserMedia || navigator.webkitGetUserMedia