diff --git a/assets/js/components/calls/userMedia.js b/assets/js/components/calls/userMedia.js index 1bf6358a..2edf7267 100644 --- a/assets/js/components/calls/userMedia.js +++ b/assets/js/components/calls/userMedia.js @@ -6,23 +6,12 @@ ComunicWeb.components.calls.userMedia = { - /** - * Pointer on current user media - */ - _currMedia: undefined, - /** * Get user media * * @return {Promise} A promise to get user media */ get: function(){ - - //Check if we have already got user media - if(this._currMedia != undefined && this._currMedia.active) - return new Promise(function(resolve, error){ - resolve(ComunicWeb.components.calls.userMedia._currMedia); - }); //Use latest API return navigator.mediaDevices