mirror of
				https://github.com/pierre42100/ComunicWeb
				synced 2025-11-03 19:54:14 +00:00 
			
		
		
		
	Each conversation use its own stream to media and audio stream
This commit is contained in:
		@@ -6,11 +6,6 @@
 | 
			
		||||
 | 
			
		||||
ComunicWeb.components.calls.userMedia = {
 | 
			
		||||
 | 
			
		||||
	/**
 | 
			
		||||
	 * Pointer on current user media
 | 
			
		||||
	 */
 | 
			
		||||
	_currMedia: undefined,
 | 
			
		||||
 | 
			
		||||
	/**
 | 
			
		||||
	 * Get user media
 | 
			
		||||
	 * 
 | 
			
		||||
@@ -18,12 +13,6 @@ ComunicWeb.components.calls.userMedia = {
 | 
			
		||||
	 */
 | 
			
		||||
	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
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user