what I expected is that whenever the startSeconds property of youtube-player changes, the youtube-player would jump to the new startSeconds. However, although I had changed the variable bound to startSeconds property, the youtube video didn't play from the startSeconds I just set.
may I know if it is viable viable way or there is another method to reach what I anticipated?
Thanks
<youtube-player
[videoId]="videoId"
suggestedQuality="highres"
[height]="250"
[width]="500"
[startSeconds]="timeStamp">
</youtube-player>
startSecondsis an@Inputso you should be able to bind to it.However, while the latest value from the binding is used, it's only considered if the player has been created and hasn't started playing.
The player is considered to have started playing if it's in any state except
UNSTARTEDorCUED.So you cannot change the binding of
startSecondsto make the player jump. You might be able to change theplaybackStatetoCUEDby callingstopVideo(), after which you should be able to change the value ofstartSecondsbefore callingstartVideo()to start at your new position.