From f60fae576a38041dcf35db380589e5b0ebd07af7 Mon Sep 17 00:00:00 2001 From: pabloFuente Date: Wed, 15 Mar 2017 16:46:19 +0100 Subject: [PATCH] openvidu-browser dependency updated --- README.md | 4 +- .../src/main/resources/package.json | 44 +++++++++---------- .../src/main/resources/ts/Stream.ts | 12 +---- openvidu-ng-testapp/package.json | 2 +- 4 files changed, 26 insertions(+), 36 deletions(-) diff --git a/README.md b/README.md index 9d48d42d..7acbbdc4 100644 --- a/README.md +++ b/README.md @@ -163,6 +163,6 @@ http-server -S ``` These commands build the Angular project, generate a self-signed certificate (which unfortunately is a mandatory requirement for http-server SSL) and serves the content in http-server. -Finally, to launch the app connect to https://127.0.0.1:8080 in the machine running the http-server and to https://[HOST]:8080 in other devices of the same network ([HOST] the IP of the machine running the http-server). +Finally, to launch the app connect to *https://127.0.0.1:8080* in the machine running the http-server and to *https://[HOST]:8080* in other devices of the same network ([HOST] the IP of the machine running the http-server). -Don't forget to accept the certificate! (accepting https://[HOST]:8443/room may also be necessary) \ No newline at end of file +Don't forget to accept the certificate! (accepting *https://[HOST]:8443/room* may also be necessary) \ No newline at end of file diff --git a/openvidu-browser/src/main/resources/package.json b/openvidu-browser/src/main/resources/package.json index 2246a63f..24361bda 100644 --- a/openvidu-browser/src/main/resources/package.json +++ b/openvidu-browser/src/main/resources/package.json @@ -1,24 +1,24 @@ { - "name": "openvidu-browser", - "version": "0.0.2", - "description": "OpenVidu Browser", - "main": "lib/index.js", - "types": "lib/index.d.ts", - "scripts": { - "browserify": "cd ts && watchify Main.ts -p [ tsify ] --exclude kurento-browser-extensions --debug -o ../static/js/OpenVidu.js -v", - "test": "echo \"Error: no test specified\" && exit 1", - "prepublish": "cd ts && tsc", - "developing": "cd ts && tsc -w" - }, - "author": "", - "license": "Apache-2.0", - "dependencies": { - "kurento-jsonrpc": "5.1.3", - "wolfy87-eventemitter": "4.2.9", - "@types/wolfy87-eventemitter": "4.2.31", - "webrtc-adapter":"3.2.0", - "kurento-utils":"6.6.0", - "uuid": "~2.0.1", - "sdp-translator": "^0.1.15" - } + "name": "openvidu-browser", + "version": "0.1.0", + "description": "OpenVidu Browser", + "main": "lib/index.js", + "types": "lib/index.d.ts", + "scripts": { + "browserify": "cd ts && watchify Main.ts -p [ tsify ] --exclude kurento-browser-extensions --debug -o ../static/js/OpenVidu.js -v", + "test": "echo \"Error: no test specified\" && exit 1", + "prepublish": "cd ts && tsc", + "developing": "cd ts && tsc -w" + }, + "author": "", + "license": "Apache-2.0", + "dependencies": { + "kurento-jsonrpc": "5.1.3", + "wolfy87-eventemitter": "4.2.9", + "@types/wolfy87-eventemitter": "4.2.31", + "webrtc-adapter": "3.2.0", + "kurento-utils": "6.6.0", + "uuid": "~2.0.1", + "sdp-translator": "^0.1.15" + } } diff --git a/openvidu-browser/src/main/resources/ts/Stream.ts b/openvidu-browser/src/main/resources/ts/Stream.ts index 26ca3593..a05978d2 100644 --- a/openvidu-browser/src/main/resources/ts/Stream.ts +++ b/openvidu-browser/src/main/resources/ts/Stream.ts @@ -268,17 +268,7 @@ export class Stream { } }; - navigator.mediaDevices.getUserMedia({ - audio: true, - video: { - width: { - ideal: 1280 - }, - frameRate: { - ideal: 15 - } - } - }) + navigator.mediaDevices.getUserMedia(constraints) .then(userStream => { userStream.getAudioTracks()[0].enabled = this.sendAudio; userStream.getVideoTracks()[0].enabled = this.sendVideo; diff --git a/openvidu-ng-testapp/package.json b/openvidu-ng-testapp/package.json index c8129f97..5b479311 100644 --- a/openvidu-ng-testapp/package.json +++ b/openvidu-ng-testapp/package.json @@ -24,7 +24,7 @@ "rxjs": "^5.1.0", "ts-helpers": "^1.1.1", "zone.js": "^0.7.6", - "openvidu-browser": "0.0.2" + "openvidu-browser": "0.1.0" }, "devDependencies": { "@angular/cli": "1.0.0-rc.1",