mediasoup-client
Advanced tools
Comparing version 0.6.9 to 0.6.10
@@ -55,2 +55,15 @@ import bowser from 'bowser'; | ||
/** | ||
* Get the bowser module Object. | ||
* | ||
* @return {Object} | ||
*/ | ||
static get bowser() | ||
{ | ||
if (!Device._detected) | ||
Device._detect(); | ||
return Device._bowser; | ||
} | ||
/** | ||
* Whether this device is supported. | ||
@@ -95,2 +108,3 @@ * | ||
Device._version = browser.version || 'unknown vesion'; | ||
Device._bowser = browser; | ||
Device._handlerClass = null; | ||
@@ -160,4 +174,8 @@ | ||
// bowser module Object. | ||
// @type {Object} | ||
Device._bowser = undefined; | ||
// WebRTC hander for this device. | ||
// @type {Class} | ||
Device._handlerClass = null; |
@@ -25,3 +25,3 @@ import Device from './Device'; | ||
* getDeviceInfo() | ||
* // => { flag: 'chrome', name: 'Chrome', version: '59.0' } | ||
* // => { flag: 'chrome', name: 'Chrome', version: '59.0', bowser: {} } | ||
*/ | ||
@@ -33,3 +33,4 @@ export function getDeviceInfo() | ||
name : Device.name, | ||
version : Device.version | ||
version : Device.version, | ||
bowser : Device.bowser | ||
}; | ||
@@ -36,0 +37,0 @@ } |
{ | ||
"name": "mediasoup-client", | ||
"version": "0.6.9", | ||
"version": "0.6.10", | ||
"description": "mediasoup client SDK for mediasoup >= 2.0.0", | ||
@@ -11,3 +11,3 @@ "author": "Iñaki Baz Castillo <ibc@aliax.net> (https://inakibaz.me)", | ||
"bowser": "^1.7.3", | ||
"debug": "^3.0.1", | ||
"debug": "^3.1.0", | ||
"random-number": "0.0.9", | ||
@@ -40,3 +40,3 @@ "sdp-transform": "^2.3.0" | ||
"browserify": "^14.4.0", | ||
"eslint": "^4.6.0", | ||
"eslint": "^4.8.0", | ||
"eslint-plugin-import": "^2.7.0", | ||
@@ -43,0 +43,0 @@ "gulp": "git://github.com/gulpjs/gulp.git#4.0", |
197937
6964
Updateddebug@^3.1.0