Compare commits

..

No commits in common. "aeb649b79bd9cb184f31a084c6a1f2fa798788e7" and "15ad163da3a822186adbef69c273267c5c03b4b6" have entirely different histories.

53 changed files with 36 additions and 129 deletions

View File

@ -1,11 +1,11 @@
# protobuf build # protobuf build
FROM node:14-buster-slim as builder FROM node:14.15.4-buster-slim@sha256:cbae886186467bbfd274b82a234a1cdfbbd31201c2a6ee63a6893eefcf3c6e76 as builder
WORKDIR /usr/src WORKDIR /usr/src
COPY messages . COPY messages .
RUN yarn install && yarn proto RUN yarn install && yarn proto
# typescript build # typescript build
FROM node:14-buster-slim as builder2 FROM node:14.15.4-buster-slim@sha256:cbae886186467bbfd274b82a234a1cdfbbd31201c2a6ee63a6893eefcf3c6e76 as builder2
WORKDIR /usr/src WORKDIR /usr/src
COPY back/yarn.lock back/package.json ./ COPY back/yarn.lock back/package.json ./
RUN yarn install RUN yarn install
@ -15,7 +15,7 @@ ENV NODE_ENV=production
RUN yarn run tsc RUN yarn run tsc
# final production image # final production image
FROM node:14-buster-slim FROM node:14.15.4-buster-slim@sha256:cbae886186467bbfd274b82a234a1cdfbbd31201c2a6ee63a6893eefcf3c6e76
WORKDIR /usr/src WORKDIR /usr/src
COPY back/yarn.lock back/package.json ./ COPY back/yarn.lock back/package.json ./
COPY --from=builder2 /usr/src/dist /usr/src/dist COPY --from=builder2 /usr/src/dist /usr/src/dist

View File

@ -1,38 +1,16 @@
# protobuf build FROM thecodingmachine/workadventure-back-base:latest as builder
FROM node:14-buster-slim as builder WORKDIR /var/www/messages
WORKDIR /usr/src COPY --chown=docker:docker messages .
COPY messages .
RUN yarn install && yarn proto RUN yarn install && yarn proto
# webpack build # we are rebuilding on each deploy to cope with the API_URL environment URL
FROM node:14-buster-slim as builder2 FROM thecodingmachine/nodejs:14-apache
WORKDIR /usr/src
COPY front/yarn.lock front/package.json ./ COPY --chown=docker:docker front .
COPY --from=builder --chown=docker:docker /var/www/messages/generated /var/www/html/src/Messages/generated
RUN yarn install RUN yarn install
COPY front .
COPY --from=builder /usr/src/generated src/Messages/generated
ENV NODE_ENV=production ENV NODE_ENV=production
ENV STARTUP_COMMAND_0="./templater.sh"
ARG ADMIN_URL=admin.$BASE_DOMAIN ENV STARTUP_COMMAND_1="yarn run build"
ARG API_URL=pusher.$BASE_DOMAIN ENV APACHE_DOCUMENT_ROOT=dist/
ARG BASE_DOMAIN=workadventure.localhost
ARG JITSI_PRIVATE_MODE
ARG JITSI_URL
ARG START_ROOM_URL
ARG STUN_SERVER
ARG TURN_PASSWORD
ARG TURN_SERVER
ARG TURN_USER
ARG UPLOADER_URL=uploader.$BASE_DOMAIN
RUN ./templater.sh
RUN API_URL=$API_URL UPLOADER_URL=$UPLOADER_URL ADMIN_URL=$ADMIN_URL START_ROOM_URL=$START_ROOM_URL \
JITSI_URL=$JITSI_URL JITSI_PRIVATE_MODE=$JITSI_PRIVATE_MODE \
STUN_SERVER=$STUN_SERVER TURN_SERVER=$TURN_SERVER TURN_USER=$TURN_USER TURN_PASSWORD=$TURN_PASSWORD \
yarn run build
# final production image
FROM nginx:mainline-alpine
COPY front/nginx-vhost.conf /etc/nginx/conf.d/default.conf
COPY --from=builder2 /usr/src/dist /usr/share/nginx/html

Binary file not shown.

Before

Width:  |  Height:  |  Size: 730 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 579 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 916 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 762 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 389 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 389 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 125 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 651 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1004 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1004 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1004 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1010 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 970 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 598 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 581 B

View File

@ -1,7 +1,4 @@
<style> <style>
#gameMenu {
pointer-events: auto;
}
#gameMenu button { #gameMenu button {
background-color: black; background-color: black;
color: white; color: white;

View File

@ -1,7 +1,4 @@
<style> <style>
#menuIcon {
pointer-events: auto;
}
#menuIcon button { #menuIcon button {
background-color: black; background-color: black;
color: white; color: white;

View File

@ -6,7 +6,6 @@
height: 257px; height: 257px;
margin: 20px auto 0; margin: 20px auto 0;
width: 298px; width: 298px;
pointer-events: auto;
} }
#gameQuality .cautiousText { #gameQuality .cautiousText {
font-size: 50%; font-size: 50%;

View File

@ -5,7 +5,6 @@
border-radius: 6px; border-radius: 6px;
margin: 2px auto 0; margin: 2px auto 0;
width: 298px; width: 298px;
pointer-events: auto;
} }
#gameReport h1 { #gameReport h1 {
background-image: linear-gradient(top, #f1f3f3, #d4dae0); background-image: linear-gradient(top, #f1f3f3, #d4dae0);

View File

@ -6,7 +6,6 @@
margin: 20px auto 0; margin: 20px auto 0;
width: 298px; width: 298px;
height: 150px; height: 150px;
pointer-events: auto;
} }
#gameShare h1 { #gameShare h1 {
background-image: linear-gradient(top, #f1f3f3, #d4dae0); background-image: linear-gradient(top, #f1f3f3, #d4dae0);

View File

@ -6,7 +6,6 @@
margin: 10px auto 0; margin: 10px auto 0;
width: 400px; width: 400px;
height: 370px; height: 370px;
pointer-events: auto;
} }
#helpCameraSettings h1 { #helpCameraSettings h1 {
background-image: linear-gradient(top, #f1f3f3, #d4dae0); background-image: linear-gradient(top, #f1f3f3, #d4dae0);

View File

@ -151,7 +151,6 @@ video#myCamVideo{
.btn-cam-action { .btn-cam-action {
z-index: 1;
position: absolute; position: absolute;
bottom: 0px; bottom: 0px;
right: 0px; right: 0px;
@ -581,10 +580,12 @@ input[type=range]:focus::-ms-fill-upper {
} }
.chat-mode { .chat-mode {
display: inline-grid; display: grid;
width: 100%; width: 100%;
padding: 1%;
align-items: flex-start; align-items: flex-start;
padding: 1%;
} }
.chat-mode > div { .chat-mode > div {
@ -597,21 +598,20 @@ input[type=range]:focus::-ms-fill-upper {
.chat-mode > div:hover { .chat-mode > div:hover {
margin: 0%; margin: 0%;
} }
.chat-mode.one-col { .chat-mode.one-col {
grid-template-columns: auto; grid-template-columns: repeat(1, 1fr);
} }
.chat-mode.two-col { .chat-mode.two-col {
grid-template-columns: auto auto; grid-template-columns: repeat(2, 1fr);
} }
.chat-mode.three-col { .chat-mode.three-col {
grid-template-columns: auto auto auto; grid-template-columns: repeat(3, 1fr);
} }
.chat-mode.four-col { .chat-mode.four-col {
grid-template-columns: auto auto auto auto; grid-template-columns: repeat(4, 1fr);
} }
/*CONSOLE*/ /*CONSOLE*/

View File

@ -1,14 +0,0 @@
server {
listen 8000;
listen [::]:8000;
server_name localhost;
location / {
root /usr/share/nginx/html;
index index.html index.htm;
}
location ~ ^/[@_]/ {
try_files $uri $uri/ /index.html;
}
}

View File

@ -71,29 +71,7 @@ export const COLOR_RESOURCES: BodyResourceDescriptionListInterface = {
"color_30": {name: "color_30", img: "resources/customisation/character_color/character_color29.png"}, "color_30": {name: "color_30", img: "resources/customisation/character_color/character_color29.png"},
"color_31": {name: "color_31", img: "resources/customisation/character_color/character_color30.png"}, "color_31": {name: "color_31", img: "resources/customisation/character_color/character_color30.png"},
"color_32": {name: "color_32", img: "resources/customisation/character_color/character_color31.png"}, "color_32": {name: "color_32", img: "resources/customisation/character_color/character_color31.png"},
"color_33": {name: "color_33", img: "resources/customisation/character_color/character_color32.png"}, "color_33": {name: "color_33", img: "resources/customisation/character_color/character_color32.png"}
"bodies_001": {name:"bodies_001",img: "resources/customisation/character_color/bodies_001.png"},
"bodies_002": {name:"bodies_002",img: "resources/customisation/character_color/bodies_002.png"},
"bodies_003": {name:"bodies_003",img: "resources/customisation/character_color/bodies_003.png"},
"bodies_004": {name:"bodies_004",img: "resources/customisation/character_color/bodies_004.png"},
"bodies_005": {name:"bodies_005",img: "resources/customisation/character_color/bodies_005.png"},
"bodies_006": {name:"bodies_006",img: "resources/customisation/character_color/bodies_006.png"},
"bodies_007": {name:"bodies_007",img: "resources/customisation/character_color/bodies_007.png"},
"bodies_008": {name:"bodies_008",img: "resources/customisation/character_color/bodies_008.png"},
"bodies_009": {name:"bodies_009",img: "resources/customisation/character_color/bodies_009.png"},
"bodies_010": {name:"bodies_010",img: "resources/customisation/character_color/bodies_010.png"},
"bodies_011": {name:"bodies_011",img: "resources/customisation/character_color/bodies_011.png"},
"bodies_012": {name:"bodies_012",img: "resources/customisation/character_color/bodies_012.png"},
"bodies_013": {name:"bodies_013",img: "resources/customisation/character_color/bodies_013.png"},
"bodies_014": {name:"bodies_014",img: "resources/customisation/character_color/bodies_014.png"},
"bodies_015": {name:"bodies_015",img: "resources/customisation/character_color/bodies_015.png"},
"bodies_016": {name:"bodies_016",img: "resources/customisation/character_color/bodies_016.png"},
"bodies_017": {name:"bodies_017",img: "resources/customisation/character_color/bodies_017.png"},
"old_01": {name:"old_01",img: "resources/customisation/character_color/old_01.png"},
"old_02": {name:"old_02",img: "resources/customisation/character_color/old_02.png"},
"old_03": {name:"old_03",img: "resources/customisation/character_color/old_03.png"},
"old_04": {name:"old_04",img: "resources/customisation/character_color/old_04.png"},
"old_05": {name:"old_05",img: "resources/customisation/character_color/old_05.png"}
}; };
export const EYES_RESOURCES: BodyResourceDescriptionListInterface = { export const EYES_RESOURCES: BodyResourceDescriptionListInterface = {
@ -209,7 +187,6 @@ export const HAIR_RESOURCES: BodyResourceDescriptionListInterface = {
export const CLOTHES_RESOURCES: BodyResourceDescriptionListInterface = { export const CLOTHES_RESOURCES: BodyResourceDescriptionListInterface = {
"clothes_0": {name:"clothes_0", img: "resources/customisation/character_clothes/naked.png"},
"clothes_1": {name:"clothes_1", img: "resources/customisation/character_clothes/character_clothes0.png"}, "clothes_1": {name:"clothes_1", img: "resources/customisation/character_clothes/character_clothes0.png"},
"clothes_2": {name:"clothes_2", img: "resources/customisation/character_clothes/character_clothes1.png"}, "clothes_2": {name:"clothes_2", img: "resources/customisation/character_clothes/character_clothes1.png"},
"clothes_3": {name:"clothes_3", img: "resources/customisation/character_clothes/character_clothes2.png"}, "clothes_3": {name:"clothes_3", img: "resources/customisation/character_clothes/character_clothes2.png"},
@ -280,17 +257,10 @@ export const CLOTHES_RESOURCES: BodyResourceDescriptionListInterface = {
"clothes_68": {name:"clothes_68",img: "resources/customisation/character_clothes/character_clothes67.png"}, "clothes_68": {name:"clothes_68",img: "resources/customisation/character_clothes/character_clothes67.png"},
"clothes_69": {name:"clothes_69",img: "resources/customisation/character_clothes/character_clothes68.png"}, "clothes_69": {name:"clothes_69",img: "resources/customisation/character_clothes/character_clothes68.png"},
"clothes_70": {name:"clothes_70",img: "resources/customisation/character_clothes/character_clothes69.png"}, "clothes_70": {name:"clothes_70",img: "resources/customisation/character_clothes/character_clothes69.png"},
"clothes_red_stripes": {name:"clothes_red_stripes",img: "resources/customisation/character_clothes/red_stripes.png"},
"clothes_pride_shirt": {name:"clothes_pride_shirt",img: "resources/customisation/character_clothes/pride_shirt.png"}, "clothes_pride_shirt": {name:"clothes_pride_shirt",img: "resources/customisation/character_clothes/pride_shirt.png"},
"clothes_black_hoodie": {name:"clothes_black_hoodie",img: "resources/customisation/character_clothes/black_hoodie.png"}, "clothes_black_hoodie": {name:"clothes_black_hoodie",img: "resources/customisation/character_clothes/black_hoodie.png"},
"clothes_white_hoodie": {name:"clothes_white_hoodie",img: "resources/customisation/character_clothes/white_hoodie.png"}, "clothes_white_hoodie": {name:"clothes_white_hoodie",img: "resources/customisation/character_clothes/white_hoodie.png"},
"clothes_engelbert": {name:"clothes_engelbert",img: "resources/customisation/character_clothes/engelbert.png"}, "clothes_engelbert": {name:"clothes_engelbert",img: "resources/customisation/character_clothes/engelbert.png"}
"clothes_vest_yellow": {name:"clothes_vest_yellow",img: "resources/customisation/character_clothes/vest_yellow.png"},
"clothes_vest_orange": {name:"clothes_vest_orange",img: "resources/customisation/character_clothes/vest_orange.png"},
"clothes_vest_red": {name:"clothes_vest_red",img: "resources/customisation/character_clothes/vest_red.png"},
"clothes_vest_purple": {name:"clothes_vest_purple",img: "resources/customisation/character_clothes/vest_purple.png"},
"clothes_vest_blue": {name:"clothes_vest_blue",img: "resources/customisation/character_clothes/vest_blue.png"},
"clothes_vest_green": {name:"clothes_vest_green",img: "resources/customisation/character_clothes/vest_green.png"}
}; };
export const HATS_RESOURCES: BodyResourceDescriptionListInterface = { export const HATS_RESOURCES: BodyResourceDescriptionListInterface = {
@ -320,12 +290,7 @@ export const HATS_RESOURCES: BodyResourceDescriptionListInterface = {
"hats_24": {name: "hats_24", img: "resources/customisation/character_hats/character_hats24.png"}, "hats_24": {name: "hats_24", img: "resources/customisation/character_hats/character_hats24.png"},
"hats_25": {name: "hats_25", img: "resources/customisation/character_hats/character_hats25.png"}, "hats_25": {name: "hats_25", img: "resources/customisation/character_hats/character_hats25.png"},
"hats_26": {name: "hats_26", img: "resources/customisation/character_hats/character_hats26.png"}, "hats_26": {name: "hats_26", img: "resources/customisation/character_hats/character_hats26.png"},
"tinfoil_hat1": {name: "tinfoil_hat1", img: "resources/customisation/character_hats/tinfoil_hat1.png"}, "tinfoil_hat1": {name: "tinfoil_hat1", img: "resources/customisation/character_hats/tinfoil_hat1.png"}
"purple_hat": {name: "purple_hat", img: "resources/customisation/character_hats/purple_hat.png"},
"diving_mask1": {name: "diving_mask1", img: "resources/customisation/character_hats/diving_mask1.png"},
"accessory_mask": {name: "accessory_mask", img: "resources/customisation/character_accessories/mask.png"},
"sign-dont-talk": {name: "sign-dont-talk", img: "resources/customisation/character_accessories/sign-dont-talk.png"},
"sign-talk": {name: "sign-talk", img: "resources/customisation/character_accessories/sign-talk.png"}
}; };
export const ACCESSORIES_RESOURCES: BodyResourceDescriptionListInterface = { export const ACCESSORIES_RESOURCES: BodyResourceDescriptionListInterface = {
@ -362,14 +327,7 @@ export const ACCESSORIES_RESOURCES: BodyResourceDescriptionListInterface = {
"accessory_31": {name: "accessory_31", img: "resources/customisation/character_accessories/character_accessories31.png"}, "accessory_31": {name: "accessory_31", img: "resources/customisation/character_accessories/character_accessories31.png"},
"accessory_32": {name: "accessory_32", img: "resources/customisation/character_accessories/character_accessories32.png"}, "accessory_32": {name: "accessory_32", img: "resources/customisation/character_accessories/character_accessories32.png"},
"accessory_mate_bottle": {name: "accessory_mate_bottle", img: "resources/customisation/character_accessories/mate_bottle1.png"}, "accessory_mate_bottle": {name: "accessory_mate_bottle", img: "resources/customisation/character_accessories/mate_bottle1.png"},
"accessory_mask": {name: "accessory_mask", img: "resources/customisation/character_accessories/mask.png"}, "accessory_mask": {name: "accessory_mask", img: "resources/customisation/character_accessories/mask.png"}
"accessory_wings_01": {name: "accessory_wings_01", img: "resources/customisation/character_accessories/wings_01.png"},
"accessory_wings_02": {name: "accessory_wings_02", img: "resources/customisation/character_accessories/wings_02.png"},
"accessory_wheelchair": {name: "accessory_wheelchair", img: "resources/customisation/character_accessories/wheelchair.png"},
"accessory_backpack": {name: "accessory_backpack", img: "resources/customisation/character_accessories/backpack.png"},
"accessory_ring": {name: "accessory_ring", img: "resources/customisation/character_accessories/ring.png"},
"accessory_sign-dont-talk": {name: "accessory_sign-dont-talk", img: "resources/customisation/character_accessories/sign-dont-talk.png"},
"accessory_sign_talk": {name: "accessory_sign-talk", img: "resources/customisation/character_accessories/sign-talk.png"}
}; };
export const LAYERS: BodyResourceDescriptionListInterface[] = [ export const LAYERS: BodyResourceDescriptionListInterface[] = [

View File

@ -24,6 +24,7 @@ export interface CenterListener {
} }
export const ON_ACTION_TRIGGER_BUTTON = 'onaction'; export const ON_ACTION_TRIGGER_BUTTON = 'onaction';
export const TRIGGER_WEBSITE_PROPERTIES = 'openWebsiteTrigger'; export const TRIGGER_WEBSITE_PROPERTIES = 'openWebsiteTrigger';
export const TRIGGER_JITSI_PROPERTIES = 'jitsiTrigger'; export const TRIGGER_JITSI_PROPERTIES = 'jitsiTrigger';
@ -194,7 +195,7 @@ class LayoutManager {
} else { } else {
HtmlUtils.getElementByIdOrFail<HTMLDivElement>('sidebar').style.display = 'none'; HtmlUtils.getElementByIdOrFail<HTMLDivElement>('sidebar').style.display = 'none';
HtmlUtils.getElementByIdOrFail<HTMLDivElement>('main-section').style.display = 'none'; HtmlUtils.getElementByIdOrFail<HTMLDivElement>('main-section').style.display = 'none';
HtmlUtils.getElementByIdOrFail<HTMLDivElement>('chat-mode').style.display = 'inline-grid'; HtmlUtils.getElementByIdOrFail<HTMLDivElement>('chat-mode').style.display = 'grid';
} }
for (const div of this.importantDivs.values()) { for (const div of this.importantDivs.values()) {

View File

@ -11,7 +11,7 @@ let valueVideo = 20;
if(localValueVideo){ if(localValueVideo){
valueVideo = parseInt(localValueVideo); valueVideo = parseInt(localValueVideo);
} }
let videoConstraint: MediaTrackConstraints = { let videoConstraint: boolean|MediaTrackConstraints = {
width: { min: 640, ideal: 1280, max: 1920 }, width: { min: 640, ideal: 1280, max: 1920 },
height: { min: 400, ideal: 720 }, height: { min: 400, ideal: 720 },
frameRate: { ideal: valueVideo }, frameRate: { ideal: valueVideo },
@ -19,12 +19,6 @@ let videoConstraint: MediaTrackConstraints = {
resizeMode: 'crop-and-scale', resizeMode: 'crop-and-scale',
aspectRatio: 1.777777778 aspectRatio: 1.777777778
}; };
const audioConstraint: MediaTrackConstraints = {
// TODO: Make these values configurable in the game settings menu and store them in local storage
autoGainControl: false,
echoCancellation: true,
noiseSuppression: true
};
export type UpdatedLocalStreamCallback = (media: MediaStream|null) => void; export type UpdatedLocalStreamCallback = (media: MediaStream|null) => void;
export type StartScreenSharingCallback = (media: MediaStream) => void; export type StartScreenSharingCallback = (media: MediaStream) => void;
@ -47,7 +41,7 @@ export class MediaManager {
webrtcInAudio: HTMLAudioElement; webrtcInAudio: HTMLAudioElement;
private webrtcOutAudio: HTMLAudioElement; private webrtcOutAudio: HTMLAudioElement;
constraintsMedia : MediaStreamConstraints = { constraintsMedia : MediaStreamConstraints = {
audio: audioConstraint, audio: true,
video: videoConstraint video: videoConstraint
}; };
updatedLocalStreamCallBacks : Set<UpdatedLocalStreamCallback> = new Set<UpdatedLocalStreamCallback>(); updatedLocalStreamCallBacks : Set<UpdatedLocalStreamCallback> = new Set<UpdatedLocalStreamCallback>();
@ -245,7 +239,7 @@ export class MediaManager {
} }
public enableMicrophone() { public enableMicrophone() {
this.constraintsMedia.audio = audioConstraint; this.constraintsMedia.audio = true;
this.getCamera().then((stream) => { this.getCamera().then((stream) => {
//TODO show error message tooltip upper of camera button //TODO show error message tooltip upper of camera button

View File

@ -1,11 +1,11 @@
# protobuf build # protobuf build
FROM node:14-buster-slim as builder FROM node:14.15.4-buster-slim@sha256:cbae886186467bbfd274b82a234a1cdfbbd31201c2a6ee63a6893eefcf3c6e76 as builder
WORKDIR /usr/src WORKDIR /usr/src
COPY messages . COPY messages .
RUN yarn install && yarn proto RUN yarn install && yarn proto
# typescript build # typescript build
FROM node:14-buster-slim as builder2 FROM node:14.15.4-buster-slim@sha256:cbae886186467bbfd274b82a234a1cdfbbd31201c2a6ee63a6893eefcf3c6e76 as builder2
WORKDIR /usr/src WORKDIR /usr/src
COPY pusher/yarn.lock pusher/package.json ./ COPY pusher/yarn.lock pusher/package.json ./
RUN yarn install RUN yarn install
@ -15,7 +15,7 @@ ENV NODE_ENV=production
RUN yarn run tsc RUN yarn run tsc
# final production image # final production image
FROM node:14-buster-slim FROM node:14.15.4-buster-slim@sha256:cbae886186467bbfd274b82a234a1cdfbbd31201c2a6ee63a6893eefcf3c6e76
WORKDIR /usr/src WORKDIR /usr/src
COPY pusher/yarn.lock pusher/package.json ./ COPY pusher/yarn.lock pusher/package.json ./
COPY --from=builder2 /usr/src/dist /usr/src/dist COPY --from=builder2 /usr/src/dist /usr/src/dist