Why won't this flash video display within this simply page?

Discussion in 'HTML & Website Design' started by karl_murphy, Aug 18, 2010.

  1. #1
    Hello,

    The following script should display a flash video within a player that I've installed on my server, but when I browse to the page the video is not displayed.

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
    <title>About 2</title>

    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

    <script type="text/javascript" src="http://www.bslhomework.org.uk/src/adapter/shadowbox-base.js"></script>
    <script type="text/javascript" src="http://www.bslhomework.org.uk/src/shadowbox.js"></script>
    <script type="text/javascript">

    Shadowbox.loadSkin('classic', 'src/skin');
    Shadowbox.loadLanguage('en', 'src/lang');
    Shadowbox.loadPlayer(['flv', 'html', 'iframe', 'img', 'qt', 'swf', 'wmp'], 'src/player');

    window.onload = function(){

    Shadowbox.init();

    /**
    * Note: The following function call is not necessary in your own project.
    * It is only used here to set up the demonstrations on this page.
    */
    /** initDemos(); */

    };

    </script>
    <style>
    #about {
    border: solid silver 1px;
    width: 300px;
    height:200px;
    }
    </style>
    </head>
    <body>

    <table cellpadding = "5" cellspacing = "5">
    <tr>
    <td>
    <div id="about">
    <script type='text/javascript' src='js/swfobject.js'></script>
    <script type='text/javascript'>
    var s1 = new SWFObject('player.swf','player','300','200','9');
    s1.addParam('allowfullscreen','true');
    s1.addParam('allowscriptaccess','always');
    s1.addParam('flashvars','/site_videos/BSLhomeworkclip39.flv&autostart=false');
    s1.write('about');
    </script>
    </div>
    </td>
    </tr>
    </table>
    </body>
    [/HTML]

    Any help with this would be greatly appreciated!

    Regards.
     
    karl_murphy, Aug 18, 2010 IP
  2. CSM

    CSM Active Member

    Messages:
    1,047
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    55
    #2
    What is that [/HTML] tag at the end?

    Without a link to a site I can not check for errors.
    Besides that your swfobject version is 1.5 ... check for latest version (2.2) here : http://code.google.com/p/swfobject/
     
    CSM, Aug 18, 2010 IP
  3. karl_murphy

    karl_murphy Member

    Messages:
    82
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #3
    karl_murphy, Aug 18, 2010 IP
  4. CSM

    CSM Active Member

    Messages:
    1,047
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    55
    #4
    Last edited: Aug 18, 2010
    CSM, Aug 18, 2010 IP
  5. karl_murphy

    karl_murphy Member

    Messages:
    82
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #5
    What do you mean? I wouldn't worry about the [/HTML] tag, just the main body of code.

    Thanks
     
    karl_murphy, Aug 18, 2010 IP
  6. karl_murphy

    karl_murphy Member

    Messages:
    82
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #6
    I've tried putting the shadow_container div above the table, but it still doesn't work.

    The shadowbox is initialized at the top using the shadowbox.js script.

    I've never tried to play the movie without the shadowbox, how would I do that?
     
    karl_murphy, Aug 18, 2010 IP
  7. CSM

    CSM Active Member

    Messages:
    1,047
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    55
    #7
    I know how to code valid xhtml, no worries.

    Did that movie ever play on a normal page with no shadowbox n lightbox stuff?

    If not you should check your swf player stuff
     
    CSM, Aug 18, 2010 IP
  8. karl_murphy

    karl_murphy Member

    Messages:
    82
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #8
    What would the code be just play it without the shadowbox?
     
    karl_murphy, Aug 18, 2010 IP
  9. CSM

    CSM Active Member

    Messages:
    1,047
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    55
    #9
    Just Shadowbox.init(); will never work.

    How should the script know which file to play, format and everything else?

    You should check here how to use shadowbox:

    http://www.shadowbox-js.com/usage.html
     
    CSM, Aug 18, 2010 IP
  10. karl_murphy

    karl_murphy Member

    Messages:
    82
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #10
    How would I play the video without the shadowbox, just to check that it is working.
     
    karl_murphy, Aug 18, 2010 IP