seek to player.getDuration() targets 2s before the end of the stream
eg.
player.getDuration()
210
player.seek(player.getDuration())
true
player.getCurrentTime()
208
seek to player.getDuration() targets 2s before the end of the stream
eg.
player.getDuration()
210
player.seek(player.getDuration())
true
player.getCurrentTime()
208
Hey Ludo,
This is expected behavior. Many browsers had and have issues when seeking to or very close to the end of a video, leading to unexpected behaviors in the browsers. Therefore, this is a security mechanism to avoid such problems.
I’d like to understand if there is a reasonable use case for seeking to the end of the asset, given that you wouldn’t see anything but playback ends?