Getting Intro Movie to Only Play Once

3 replies
I have an intro movie on my homepage that is hosted on S3 and is set to autoplay. I am trying to figure out how to have it only play the first time the person visits the site. If they come back to the site 3-4 times I don't want the video to play each successive time.

I am looking for a non-PHP solution. Any suggestions would be greatly appreciated.
#intro #movie #play
  • Profile picture of the author SteveJohnson
    Javascript cookie, assuming you're a real person and really asking a question.
    Signature

    The 2nd Amendment, 1789 - The Original Homeland Security.

    Gun control means never having to say, "I missed you."

    {{ DiscussionBoard.errors[2638656].message }}
    • Profile picture of the author Acura107
      Steve:

      Thanks for the reply. I am a real person, my name is Barry. I race cars and my current racecar is an Acura #107 explaining the screen name.

      Any additional insight into how I could get or create the javscript cookie to get the movie to only play once would be greatly appreciated. Thanks in advance!!

      Barry
      {{ DiscussionBoard.errors[2642278].message }}
  • Profile picture of the author SteveJohnson
    Hey Barry, welcome to the WF.

    Unfortunately I'm not a javascript whiz kid so I can't give you anything beyond the concept. Basically what you'll do is check to see if your cookie exists. If it doesn't, play the movie. If it does, don't.

    I can do this in PHP if that's what your site runs on, but I'm afraid I'd mangle it in javascript.
    Signature

    The 2nd Amendment, 1789 - The Original Homeland Security.

    Gun control means never having to say, "I missed you."

    {{ DiscussionBoard.errors[2649431].message }}

Trending Topics