0 Replies Latest reply on May 5, 2010 3:58 AM by icklegemma

    swfobject and subtitles

    icklegemma Level 1

      Hello,

       

      I'm trying to integrate swfobject.js v2.2 into my webpage.

       

      All seems to be working except that I can't get the subtitles to appear within an xml file - does anyone have any suggestions? Here is my code in the head part of the webpage:

       

      <script type="text/javascript">
          var flashvars = {
              url: "<?=$URL?>",
              preview: "<?=$img_URL?>",
              wmode: "transparent",
              subtitles: "<?=$subtitles_url?>",
              lock: "false"
          };
         
          var params = {
              bgcolor: "#f7f7f7",
              allowfullscreen: "true",
              allowscriptaccess: "always",
              mode: "player"
          };
          var attributes = {
              id: "player",
              name: "player"
          };
          swfobject.embedSWF('/javascript/FLVClipEditor.swf', 'player', '536', '380', '9','expressInstall.swf', flashvars, params, attributes);
      </script>

       

      It worked fine when I was using swfobject.js v1.5 and the following in the body of the page:

       

      <script type="text/javascript">
           var s1 = new SWFObject("/javascript/FLVClipEditor.swf?" + new Date().getTime(),"FLVClipEditor","560","392","9");                                            
           s1.addParam("allowfullscreen","true");
           s1.addVariable("url","<?=$URL?>");
           s1.addVariable("preview","<?=$img_URL?>");
           s1.addVariable("subtitles","<?=$subtitles_url?>");
           s1.addVariable("mode","player");
           s1.addVariable("lock","false");
           s1.write("player");
      </script>