
Setting initial position
Until today we had code the fired after the html was loaded and its job was to find out of the player was available and if it was, move the playhead to the last position the user was watching.
We are still saving the last position, but something seems to have changed and we can no longer make this work to set the initial position when the page opens again.
We were doing:
$(document).ready(function ()
{
. . .
var position = jwplayer().getPosition(); // now always undefined
. . .
}
but starting today, the position is always undefined.
The jwplayer() does return an object.
getPosition() comes to life in later javascript functions, but as the page loads, getPosition() is always returning undefined.
Since this is now not working, what is the right way to set the initial position of a video?
Thank you for your help.