My homepage uses the Yahoo Media Player to play videos, so I include the following on that page to tell YMP to automatically start playing any video links on that whenever that homepage is loaded:
This code to insert the "autoplay: true" parameter works very well.
Here is the same code with the cookie logic inserted:
This cookie code is not doing anything. It never seems to insert my "autoplay: true" parameter for YMP.
I have tried several cookie scripts but the results are always the same (i.e., my videos never autostart - let alone autostart only once a day).
What am I doing wrong?