Skip to content

Commit fefe61f

Browse files
authored
fix(UI): Show time when the thumbnail is not available (#8510)
1 parent 43389b2 commit fefe61f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ui/seek_bar.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -564,8 +564,9 @@ shaka.ui.SeekBar = class extends shaka.ui.RangeElement {
564564
}
565565
const thumbnail =
566566
await this.player.getThumbnails(/* trackId= */ null, playerValue);
567-
if (!thumbnail || !thumbnail.uris.length) {
567+
if (!thumbnail || !thumbnail.uris || !thumbnail.uris.length) {
568568
this.hideThumbnail_();
569+
this.showTime_(pixelPosition, value);
569570
return;
570571
}
571572
if (thumbnail.width < thumbnail.height) {

0 commit comments

Comments
 (0)