Clamp to just before the end of the seekable range to allow playback to complete normally on all devices.
Make sure never to clamp the time to earlier than the start of the range
Removed unnecessary code after clamping to just before the end of the media
Merge branch 'new-media-api' of https://github.com/fmtvp/tal into new-media-api