Skip to content

Commit

Permalink
[ADD] client's OS and browser version
Browse files Browse the repository at this point in the history
  • Loading branch information
flashphoner committed Jul 8, 2016
1 parent ac9edcc commit 66b12bd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions client/src/Flashphoner.js
Expand Up @@ -5,6 +5,8 @@ function Flashphoner() {
arguments.callee.instance = this;

this.clientVersion = "UNKNOWN_VERSION";
this.clientOSVersion = window.navigator.appVersion;
this.clientBrowserVersion = window.navigator.userAgent;

this.webRtcMediaManager = undefined;
this.webRtcCallSessionId = undefined;
Expand Down Expand Up @@ -644,6 +646,8 @@ Flashphoner.prototype = {
me.connection.width = me.connection.width || me.configuration.videoWidth;
me.connection.height = me.connection.height || me.configuration.videoHeight;
me.connection.clientVersion = me.clientVersion;
me.connection.clientOSVersion = me.clientOSVersion;
me.connection.clientBrowserVersion = me.clientBrowserVersion;
//workaround for old Safari (5.X)
if ((navigator.userAgent.indexOf("Safari") > -1) && !(navigator.userAgent.indexOf("Chrome") > -1)) {
me.connection.urlServer = me.connection.urlServer.slice(-1) == "/" ? me.connection.urlServer + "websocket" : me.connection.urlServer + "/websocket";
Expand Down

0 comments on commit 66b12bd

Please sign in to comment.