It is currently Thu May 17, 2012 8:44 pm

All times are UTC




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Play Once
PostPosted: Sat Jan 15, 2011 5:35 pm 
Offline
Customer

Joined: Sat Jan 15, 2011 5:33 pm
Posts: 3
‘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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 Flash Video Player    FLV Player    FLV Player Tutorial    FLV player Demos    FLV Player Skins    FLV Player Download
 Flash Photo Gallery    Photo Gallery Tutorial    Photo Gallery Demos    Photo Gallery Download