@@ -382,7 +382,7 @@ function bindSizeToPlayer(
382
382
widthObs : Observable < number > ,
383
383
heightObs : Observable < number >
384
384
) {
385
- return combineLatest ( playerObs , widthObs , heightObs )
385
+ return combineLatest ( [ playerObs , widthObs , heightObs ] )
386
386
. subscribe ( ( [ player , width , height ] ) => player && player . setSize ( width , height ) ) ;
387
387
}
388
388
@@ -391,10 +391,10 @@ function bindSuggestedQualityToPlayer(
391
391
playerObs : Observable < YT . Player | undefined > ,
392
392
suggestedQualityObs : Observable < YT . SuggestedVideoQuality | undefined >
393
393
) {
394
- return combineLatest (
394
+ return combineLatest ( [
395
395
playerObs ,
396
396
suggestedQualityObs
397
- ) . subscribe (
397
+ ] ) . subscribe (
398
398
( [ player , suggestedQuality ] ) =>
399
399
player && suggestedQuality && player . setPlaybackQuality ( suggestedQuality ) ) ;
400
400
}
@@ -452,11 +452,11 @@ function createPlayerObservable(
452
452
const playerOptions =
453
453
videoIdObs
454
454
. pipe (
455
- withLatestFrom ( combineLatest ( widthObs , heightObs ) ) ,
455
+ withLatestFrom ( combineLatest ( [ widthObs , heightObs ] ) ) ,
456
456
map ( ( [ videoId , [ width , height ] ] ) => videoId ? ( { videoId, width, height, events} ) : undefined ) ,
457
457
) ;
458
458
459
- return combineLatest ( youtubeContainer , playerOptions )
459
+ return combineLatest ( [ youtubeContainer , playerOptions ] )
460
460
. pipe (
461
461
skipUntilRememberLatest ( iframeApiAvailableObs ) ,
462
462
scan ( syncPlayerState , undefined ) ,
@@ -505,7 +505,7 @@ function bindCueVideoCall(
505
505
suggestedQualityObs : Observable < YT . SuggestedVideoQuality | undefined > ,
506
506
destroyed : Observable < undefined > ,
507
507
) {
508
- const cueOptionsObs = combineLatest ( startSecondsObs , endSecondsObs )
508
+ const cueOptionsObs = combineLatest ( [ startSecondsObs , endSecondsObs ] )
509
509
. pipe ( map ( ( [ startSeconds , endSeconds ] ) => ( { startSeconds, endSeconds} ) ) ) ;
510
510
511
511
// Only respond to changes in cue options if the player is not running.
@@ -520,14 +520,14 @@ function bindCueVideoCall(
520
520
// If the player changed, there's no reason to run 'cue' unless there are cue options.
521
521
const changedPlayer = playerObs . pipe (
522
522
filterOnOther (
523
- combineLatest ( videoIdObs , cueOptionsObs ) ,
523
+ combineLatest ( [ videoIdObs , cueOptionsObs ] ) ,
524
524
( [ videoId , cueOptions ] , player ) =>
525
525
! ! player &&
526
526
( videoId != player . videoId || ! ! cueOptions . startSeconds || ! ! cueOptions . endSeconds ) ) ) ;
527
527
528
528
merge ( changedPlayer , changedVideoId , filteredCueOptions )
529
529
. pipe (
530
- withLatestFrom ( combineLatest ( playerObs , videoIdObs , cueOptionsObs , suggestedQualityObs ) ) ,
530
+ withLatestFrom ( combineLatest ( [ playerObs , videoIdObs , cueOptionsObs , suggestedQualityObs ] ) ) ,
531
531
map ( ( [ _ , values ] ) => values ) ,
532
532
takeUntil ( destroyed ) ,
533
533
)
0 commit comments