Skip to content

Commit

Permalink
Add recording mode for call view
Browse files Browse the repository at this point in the history
When the call view is shown in recording mode the local participant is
not shown, and there is no visible button to show the grid stripe
either.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
  • Loading branch information
danxuliu committed Feb 15, 2023
1 parent be3a4f2 commit de75def
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/Recording.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
-->

<template>
<CallView :token="token" />
<CallView :token="token"
:is-recording="true" />
</template>

<script>
Expand Down
6 changes: 6 additions & 0 deletions src/components/CallView/CallView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@
<Grid v-if="!isSidebar"
v-bind="$attrs"
:is-stripe="!isGrid"
:is-recording="isRecording"
:token="token"
:fit-video="true"
:has-pagination="true"
Expand Down Expand Up @@ -174,6 +175,11 @@ export default {
type: Boolean,
default: false,
},
// Determines whether this component is used in the recording view
isRecording: {
type: Boolean,
default: false,
},
},
data() {
Expand Down
10 changes: 7 additions & 3 deletions src/components/CallView/Grid/Grid.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

<template>
<div class="grid-main-wrapper" :class="{'is-grid': !isStripe, 'transparent': isLessThanTwoVideos}">
<button v-if="isStripe"
<button v-if="isStripe && !isRecording"
class="stripe--collapse"
:aria-label="stripeButtonTooltip"
@click="handleClickStripeCollapse">
Expand Down Expand Up @@ -88,7 +88,7 @@
class="dev-mode-video--self video"
:style="{'background': 'url(' + placeholderImage(8) + ')'}" />
</template>
<LocalVideo v-if="!isStripe && !screenshotMode"
<LocalVideo v-if="!isStripe && !isRecording && !screenshotMode"
ref="localVideo"
class="video"
:is-grid="true"
Expand All @@ -108,7 +108,7 @@
:size="20" />
</button>
</div>
<LocalVideo v-if="isStripe && !screenshotMode"
<LocalVideo v-if="isStripe && !isRecording && !screenshotMode"
ref="localVideo"
class="video"
:is-stripe="true"
Expand Down Expand Up @@ -243,6 +243,10 @@ export default {
type: Boolean,
default: false,
},
isRecording: {
type: Boolean,
default: false,
},
callParticipantModels: {
type: Array,
required: true,
Expand Down

0 comments on commit de75def

Please sign in to comment.