Skip to content

Commit

Permalink
fix(FEC-8818): cast doesn't respect 'startTime' config (#202)
Browse files Browse the repository at this point in the history
Consider the `playback.startTime` config when starting a cast session
  • Loading branch information
yairans committed Jan 15, 2019
1 parent e225161 commit f1f6392
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/common/cast/player-snapshot.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ function getStartTime(player: KalturaPlayer): number {
} else {
return -1;
}
} else if (!player.isCasting() && !player.currentTime && player.config.playback.startTime > -1) {
return player.config.playback.startTime;
}
return player.currentTime;
}
Expand Down

0 comments on commit f1f6392

Please sign in to comment.