This kind of thing is much easier with server side programming. But otherwise, I would use javascript to store the info as a cookie (NOTE: NOT secure). Otherwise, you could still use a query string on the link (i.e. "yourpage.html?somekey=somevalue") and use javascript to break apart the url and get the filename on the player page.
Neonlight