|
‘Play Once’ Capability.
Looking to implement an F4V to play once per session capability. This capability is mostly used for ‘intro’ or ‘splash’ flash presentations on the index.html, but can have other applications.
I have implemented JS/cookies sequence that I have used successfully in past. For some reason, the script bounding the FLV player generated by the DW extension ‘breaks’ the code that I inserted:
if (!getCookieValue ("first")) {
if (writeSessionCookie("first","no")) {
document.write(“<div id="webstunning_video_player" >”) *** Rest of FLV Player *** document.write(“<div>”) }
else {
** static image to present instead of FLV if no session cookies or write cookie fails**
} }
else { ** static image to present instead of FLV if not first time on page** }
I am not a JS developer, so my debugging ability is limited. Basically, the Flash playes no matter what the conditional logic. When a static image is substituted for the FLV player, the logic works AOK.
Alternatively, the FLV player could be enhanced with a play-once capability.
|