No autoplay on WMP during same session

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Anthony

    No autoplay on WMP during same session

    Is there a script out there that will prevent embedded Windows Media
    Player that autoplays a video from replaying when a person comes back
    to the home page during the same session? Maybe a cookie that will
    prevent the video from autoplaying again for hour.
  • Bart Van der Donck

    #2
    Re: No autoplay on WMP during same session

    Anthony wrote:
    Is there a script out there that will prevent embedded Windows Media
    Player that autoplays a video from replaying when a person comes back
    to the home page during the same session?  Maybe a cookie that will
    prevent the video from autoplaying again for hour.
    Yes, besides cookies I don't see any immediate possibilities.

    Note that Firefox requires the Windows Media Player Firefox Plugin:

    Other non-MSIE browsers might also need an application to be
    installed.

    How to set and read cookies:
    W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more.


    HTML code to play the movie inline (I would recommend 6.4 for maximum
    backwards compatibility):


    Program logic:

    Check if cookie exist.
    * If yes, load movie with parameters
    <EMBED ... AUTOSTART="0">
    <PARAM NAME="autoStart " VALUE="false">
    * If no, load movie with
    <EMBED ... AUTOSTART="1">
    <PARAM NAME="autoStart " VALUE="true">
    Then set the cookie

    Hope this helps,

    --
    Bart

    Comment

    Working...