Hey
I have some movies I would like to have in my gallery as well as my pictures. I have spend some hours trying to figure out where to put the code (that I cooked up from some internet sites) but have no sucess of it.

I hope you like this turn of the module and implement it.

<html>
<head>

    <script type='text/javascript'>
    function Open()
    {
    var sData;

    sData = "<html><head></head><body>";
    sData = sData + "<OBJECT id='VIDEO' width='320' height='240' ";
    sData = sData + "style='position:absolute; left:0;top:0;' ";
    sData = sData + "CLASSID='CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6' ";
    sData = sData + "type='application/x-oleobject'> ";
    sData = sData + "<PARAM NAME='URL' VALUE='your file or url'>";
    sData = sData + "<PARAM NAME='SendPlayStateChangeEvents' VALUE='True'>";
    sData = sData + "<PARAM NAME='AutoStart' VALUE='True'>";
    sData = sData + "<PARAM name='uiMode' value='none'>";
    sData = sData + "<PARAM name='PlayCount' value='9999'>";
    sData = sData + "</OBJECT>";
    sData = sData + "</body></html>";
    
    OpenWindow=window.open("", "newwin");
    OpenWindow.document.write(sData);
    OpenWindow.document.close()
    }
    </script>
</head>
<body>
    <form id="form1">
         <input id="Button1" type="button" value="Movie" onclick='Open()' />
    </form>
</body>
</html>

This code open a embed Windows Media Player in a new window or tab depending on webbrowser. I am just an happy "amatör" so I am sutern there is a better way to do this in :)

Comments

ncy’s picture

i'm looking into incorporating video through Lightbox's video functionality. stay tuned.

ncy’s picture

rapsli’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.