diff --git a/openvidu-browser/src/main/resources/package.json b/openvidu-browser/src/main/resources/package.json index 9dabf938..17e39b55 100644 --- a/openvidu-browser/src/main/resources/package.json +++ b/openvidu-browser/src/main/resources/package.json @@ -6,6 +6,7 @@ "types": "lib/OpenVidu/index.d.ts", "scripts": { "browserify": "cd ts/OpenVidu && browserify Main.ts -p [ tsify ] --exclude kurento-browser-extensions --debug -o ../../static/js/OpenVidu.js -v", + "browserify-prod": "cd ts/OpenVidu && browserify --debug Main.ts -p [ tsify ] --exclude kurento-browser-extensions | uglifyjs -c > ../../static/js/OpenVidu.js", "updatetsc": "cd ts/OpenViduInternal && tsc && cd ../OpenVidu && tsc", "test": "echo \"Error: no test specified\" && exit 1", "prepublish": "cd ts && tsc", diff --git a/openvidu-browser/src/main/resources/ts/OpenViduInternal/Stream.ts b/openvidu-browser/src/main/resources/ts/OpenViduInternal/Stream.ts index 25ca765d..0a1d036f 100644 --- a/openvidu-browser/src/main/resources/ts/OpenViduInternal/Stream.ts +++ b/openvidu-browser/src/main/resources/ts/OpenViduInternal/Stream.ts @@ -224,7 +224,7 @@ export class Stream { this.ee.addOnceListener(eventName, listener); } - removeListener(eventName){ + removeListener(eventName) { this.ee.removeAllListeners(eventName); } @@ -244,6 +244,9 @@ export class Stream { } playOnlyVideo(parentElement, thumbnailId) { + + // TO-DO: check somehow if the stream is audio only, so the element created is