kaltura / playkit-js

State of the Art HTML5 Player
GNU Affero General Public License v3.0
118 stars 35 forks source link

Assistance for hyperlinking to a specific timestamp without reloading the page #713

Open Julix91 opened 1 year ago

Julix91 commented 1 year ago

Context

Would like to have the time stamps be links and jump straight to the correct player and update that player to the right timestamp.

Expected behavior

There should be a way to create a hyperlink on a page that jumps to a video player and sets the video in it to a certain timestamp.

Think a similar question has been asked >5 years ago - https://forum.kaltura.org/t/is-there-a-way-to-hyperlink-to-a-specific-time-in-a-video/6518 - but the answer was about a link at the end of the video rather than jumping the video to a timestamp.

Actual behavior

Checked the docs which had a startTime configuration, which would likely allow for some custom javascript to change the config before loading and at least on initial load - but I couldn't find a way in the api - load takes a startTime - would that still replace the source first triggering a reload?

Apologies if this isn't the right place to ask for help with this. Got here by inspecting the HTML and seeing it was a playkit-js player.