Play FLV movie on page open....

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Play FLV movie on page open....

rhnorment
Hi -- admitted rookie here.  Just leveraging the good work others have done.

I am trying to play an FLV file within SB upon page load.  Ironically, using the same setup below, I can play the movie using a link (something to do with REL).  I'm using RapidWeaver, which makes linking to an FLV asset very easy.

Here is the JavaScript I currently have.  Upon page load, the SB opens, the player is there, but the movie never plays.  I know I am calling the correct asset because it's the same asset I call from the link, which plays the FLV fine.

Any suggestions?  Why would it work as a link and not using the method below?  BTW, you can experience this live at www.alphainst.org.  The FLV is on the left nav bar.

Thanks in advance to anyone that can help.

****************************************

<script type="text/javascript">

window.onload = function(){

    //Initialize Shadowbox

    Shadowbox.init({
        loadingImage:'rw_common/themes/delta/loading.gif',
        flvPlayer:'rw_common/themes/delta/flvplayer.swf',
        overlayBgImage:'rw_common/themes/delta/overlay-85.png'
    });
   

    // open the flash movie

    Shadowbox.open({
        title:      'Alpha Institute: Preparing Students for Life',
        type:       'flv',
        content:    'assets/AlphaInstitute.flv',
        height:     600,
        width:      800,
    });

};

Reply | Threaded
Open this post in threaded view
|

Re: Play FLV movie on page open....

IchDu
Look at this I think you have to skip the setup:

<script type="text/javascript"> window.onload = function(){ Shadowbox.init({ // let's skip the automatic setup because we don't have any // properly configured link elements on the page skipSetup: true <---------------------------------------------- }); // open a welcome message Shadowbox.open({ title: 'Welcome', type: 'html', content: 'Welcome to my website!', height: 350, width: 350 }); }; </script>
Reply | Threaded
Open this post in threaded view
|

Re: Play FLV movie on page open....

rhnorment
I know that works.  I've tried it.  I can make html popup on page load and work fine.  But I can't seem to get FLV top work.

Also, I cannot skip those init options because I need them for my actual FLV link (which works perfectly).

Thanks.