Skip to content

Commit

Permalink
video-player: Improve message for when the selected stream is not ava…
Browse files Browse the repository at this point in the history
…ilable, but there are others
  • Loading branch information
rafaellehmkuhl authored and ArturoManzoli committed Jun 20, 2024
1 parent c338b12 commit 38c4797
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions src/components/widgets/VideoPlayer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,18 @@
v-else-if="!namesAvailableStreams.isEmpty() && !namesAvailableStreams.includes(nameSelectedStream)"
class="no-video-alert"
>
<p>The selected stream is not available.</p>
<p>Please check its source or select another stream.</p>
<p>The selected stream "{{ nameSelectedStream }}" is not available.</p>
<p>Available ones are: {{ namesAvailableStreams.map((name) => `"${name}"`).join(', ') }}.</p>
<br />
<p>
This can happen if you changed vehicles and the stream name in the new one is different from the former, or if
the source is not available at all.
</p>
<br />
<p>
Please open this video player configuration and select a new stream from the ones available, or check your
source for issues.
</p>
</div>
<div v-else-if="!streamConnected" class="no-video-alert">
<div class="no-video-alert">
Expand Down Expand Up @@ -218,7 +228,7 @@ video {
background-color: rgb(0, 20, 60);
text-align: center;
vertical-align: middle;
padding: 10px;
padding: 3rem;
color: white;
border: 2px solid rgb(0, 20, 80);
}
Expand Down

0 comments on commit 38c4797

Please sign in to comment.