From 7d1fa28d88109f55ecdf8dd1bcbea15159eee6f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20=C5=A0ediv=C3=BD?= Date: Sat, 11 Dec 2021 14:34:28 +0100 Subject: [PATCH] Implicit control gain (#108) * add client side implicit hosting. * add server side implicit hosting. * update changelog. * allow clipboard & keybaord access. --- client/src/components/context.vue | 12 ++++++--- client/src/components/controls.vue | 34 +++++++++++++++++++------- client/src/components/video.vue | 11 ++++++++- client/src/locale/en-us.ts | 2 ++ client/src/locale/es-sp.ts | 3 +++ client/src/locale/fr-fr.ts | 25 ++++++++++--------- client/src/locale/nb-no.ts | 3 +++ client/src/locale/sk-sk.ts | 3 +++ client/src/locale/sv-se.ts | 3 +++ client/src/store/remote.ts | 8 +++--- docs/changelog.md | 1 + server/internal/session/manager.go | 12 +++++++++ server/internal/types/config/webrtc.go | 11 +++++++++ server/internal/types/session.go | 2 ++ server/internal/types/webrtc.go | 1 + server/internal/webrtc/handle.go | 2 +- server/internal/webrtc/webrtc.go | 4 +++ server/internal/websocket/admin.go | 10 ++++++++ server/internal/websocket/control.go | 12 ++++----- server/internal/websocket/session.go | 2 +- server/internal/websocket/websocket.go | 2 ++ 21 files changed, 125 insertions(+), 38 deletions(-) diff --git a/client/src/components/context.vue b/client/src/components/context.vue index d5c15a3..aa6ac3c 100644 --- a/client/src/components/context.vue +++ b/client/src/components/context.vue @@ -18,20 +18,20 @@ {{ $t('context.mute') }} {{ $t('context.unmute') }} -
  • +
  • {{ $t('context.release') }}
  • -
  • +
  • {{ $t('context.take') }}
  • - {{ + {{ $t('context.give') }}
  • @@ -161,6 +161,10 @@ return this.$accessor.remote.id } + get implicitHosting() { + return this.$accessor.remote.implicitHosting + } + open(event: MouseEvent, data: any) { this.context.open(event, data) } diff --git a/client/src/components/controls.vue b/client/src/components/controls.vue index b191d39..eb6174e 100644 --- a/client/src/components/controls.vue +++ b/client/src/components/controls.vue @@ -1,6 +1,6 @@