File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -546,15 +546,15 @@ shaka.ui.SeekBar = class extends shaka.ui.RangeElement {
546
546
Math . min ( Math . floor ( seekRange . end ) , value ) ) ;
547
547
const thumbnail =
548
548
await this . player . getThumbnails ( /* trackId= */ null , playerValue ) ;
549
+ if ( ! thumbnail || ! thumbnail . uris . length ) {
550
+ this . hideThumbnail_ ( ) ;
551
+ return ;
552
+ }
549
553
if ( thumbnail . width < thumbnail . height ) {
550
554
this . thumbnailContainer_ . classList . add ( 'portrait-thumbnail' ) ;
551
555
} else {
552
556
this . thumbnailContainer_ . classList . remove ( 'portrait-thumbnail' ) ;
553
557
}
554
- if ( ! thumbnail || ! thumbnail . uris . length ) {
555
- this . hideThumbnail_ ( ) ;
556
- return ;
557
- }
558
558
if ( this . player . isLive ( ) ) {
559
559
const totalSeconds = seekRange . end - value ;
560
560
if ( totalSeconds < 1 ) {
You can’t perform that action at this time.
0 commit comments