1
0
mirror of https://git.sr.ht/~cadence/cloudtube synced 2024-11-22 15:47:30 +00:00

Design error for if streams are not available

This commit is contained in:
Cadence Ember 2020-09-24 15:55:13 +12:00
parent 83dec0c7ab
commit 247f2ec664
No known key found for this signature in database
GPG Key ID: BC1C2C61CF521B17
2 changed files with 10 additions and 2 deletions

View File

@ -20,8 +20,12 @@ block content
.main-video-section .main-video-section
.video-container .video-container
- const format = sortedFormatStreams[0] - const format = sortedFormatStreams[0]
if format
video(controls preload="auto" width=format.second__width height=format.second__height data-itag=format.itag)#video.video video(controls preload="auto" width=format.second__width height=format.second__height data-itag=format.itag)#video.video
source(src=format.url type=format.type) source(src=format.url type=format.type)
else
video(src="")#video.video
.stream-notice The server provided no playback streams.
#current-time-container #current-time-container
#end-cards-container #end-cards-container

View File

@ -20,6 +20,10 @@
height: auto height: auto
max-height: 80vh max-height: 80vh
.stream-notice
background: c.$bg-darkest
padding: 4px
.info .info
display: flex display: flex
margin: 8px 4px 16px margin: 8px 4px 16px