Advice Please Regarding Website Video Player

4 replies
Hi

I am looking for a video player for the home page that auto starts when a new visitor lands on the site however if they return to the site later it doesn't auto start.

Does anyone know such an animal?

Hope you can help.

Thanks

Ian
#advice #player #video #website
  • Profile picture of the author BingeSite
    it can be done with a very little bit of programming.
    generally the idea is this. when new visitor visits set a cookie say "autoplay=done" and let the video have this in code that it should play UNLESS the cookie autoplay=done is set.



    so it will become <embed code...blah....?autostart=<?php is_autoplay_cookie() == true ? 0 : 1; ?>

    later on the page
    <?php autoplay_cookie(); ?>


    this is very pseudocode but it should help you get started.
    {{ DiscussionBoard.errors[7960424].message }}
    • Profile picture of the author Hyperlink
      You star - thank you so much, I will give it a try.

      Much appreciated, I was banging my head against a wall.
      {{ DiscussionBoard.errors[7960663].message }}
  • Profile picture of the author sethalexander
    Nice bit of code there. I bet more than just Hyperlink will enjoy it. I don't have a need for it right now but will file this post away for future use possibly.
    {{ DiscussionBoard.errors[7960687].message }}
  • Profile picture of the author Joe721
    OptinPlayer has a template setup for this -

    "Using a cookie to switch off autoplay second time round"

    I need to update it for the latest revision of the player but its very easy to add-on to the standard embed code
    Signature
    OptinPlayer: www.optinplayer.com
    The most Interactive web video player with
    events, a
    nalytics, security & much more
    Advanced DHTML Popup www.dpopup.com
    WordPress Popup Plugin www.wordpresspopupplugin.com
    {{ DiscussionBoard.errors[8026924].message }}

Trending Topics