@@ -382,7 +382,7 @@ function bindSizeToPlayer(
382382 widthObs : Observable < number > ,
383383 heightObs : Observable < number >
384384) {
385- return combineLatest ( playerObs , widthObs , heightObs )
385+ return combineLatest ( [ playerObs , widthObs , heightObs ] )
386386 . subscribe ( ( [ player , width , height ] ) => player && player . setSize ( width , height ) ) ;
387387}
388388
@@ -391,10 +391,10 @@ function bindSuggestedQualityToPlayer(
391391 playerObs : Observable < YT . Player | undefined > ,
392392 suggestedQualityObs : Observable < YT . SuggestedVideoQuality | undefined >
393393) {
394- return combineLatest (
394+ return combineLatest ( [
395395 playerObs ,
396396 suggestedQualityObs
397- ) . subscribe (
397+ ] ) . subscribe (
398398 ( [ player , suggestedQuality ] ) =>
399399 player && suggestedQuality && player . setPlaybackQuality ( suggestedQuality ) ) ;
400400}
@@ -452,11 +452,11 @@ function createPlayerObservable(
452452 const playerOptions =
453453 videoIdObs
454454 . pipe (
455- withLatestFrom ( combineLatest ( widthObs , heightObs ) ) ,
455+ withLatestFrom ( combineLatest ( [ widthObs , heightObs ] ) ) ,
456456 map ( ( [ videoId , [ width , height ] ] ) => videoId ? ( { videoId, width, height, events} ) : undefined ) ,
457457 ) ;
458458
459- return combineLatest ( youtubeContainer , playerOptions )
459+ return combineLatest ( [ youtubeContainer , playerOptions ] )
460460 . pipe (
461461 skipUntilRememberLatest ( iframeApiAvailableObs ) ,
462462 scan ( syncPlayerState , undefined ) ,
@@ -505,7 +505,7 @@ function bindCueVideoCall(
505505 suggestedQualityObs : Observable < YT . SuggestedVideoQuality | undefined > ,
506506 destroyed : Observable < undefined > ,
507507) {
508- const cueOptionsObs = combineLatest ( startSecondsObs , endSecondsObs )
508+ const cueOptionsObs = combineLatest ( [ startSecondsObs , endSecondsObs ] )
509509 . pipe ( map ( ( [ startSeconds , endSeconds ] ) => ( { startSeconds, endSeconds} ) ) ) ;
510510
511511 // Only respond to changes in cue options if the player is not running.
@@ -520,14 +520,14 @@ function bindCueVideoCall(
520520 // If the player changed, there's no reason to run 'cue' unless there are cue options.
521521 const changedPlayer = playerObs . pipe (
522522 filterOnOther (
523- combineLatest ( videoIdObs , cueOptionsObs ) ,
523+ combineLatest ( [ videoIdObs , cueOptionsObs ] ) ,
524524 ( [ videoId , cueOptions ] , player ) =>
525525 ! ! player &&
526526 ( videoId != player . videoId || ! ! cueOptions . startSeconds || ! ! cueOptions . endSeconds ) ) ) ;
527527
528528 merge ( changedPlayer , changedVideoId , filteredCueOptions )
529529 . pipe (
530- withLatestFrom ( combineLatest ( playerObs , videoIdObs , cueOptionsObs , suggestedQualityObs ) ) ,
530+ withLatestFrom ( combineLatest ( [ playerObs , videoIdObs , cueOptionsObs , suggestedQualityObs ] ) ) ,
531531 map ( ( [ _ , values ] ) => values ) ,
532532 takeUntil ( destroyed ) ,
533533 )
0 commit comments