Skip to content

Commit

Permalink
video-player: Differentiate between no available streams and selected…
Browse files Browse the repository at this point in the history
… stream not available
  • Loading branch information
rafaellehmkuhl committed Apr 16, 2024
1 parent 0a638a8 commit 0afdcca
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/widgets/VideoPlayer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
<div v-if="nameSelectedStream === undefined" class="no-video-alert">
<span>No video stream selected.</span>
</div>
<div v-else-if="!namesAvailableStreams.includes(nameSelectedStream)" class="no-video-alert">
<div
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>
</div>
Expand Down

0 comments on commit 0afdcca

Please sign in to comment.