Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Bagus Adiyanto 4 posts 34 karma points
    Feb 26, 2010 @ 21:17
    Bagus Adiyanto
    0

    Insert Flash File does not work

    Hello,

    Install InsertFlashFile package and I upload the swf succesffully. however when I play it in my webpage it display the plugin but the movie won't play. anyone has this kind of experience before ?

     

    thanks

  • dandrayne 1138 posts 2262 karma points
    Mar 02, 2010 @ 13:00
    dandrayne
    0

    Hi Baqus

    Which insert flash project are you using?  If it's http://our.umbraco.org/projects/insert-flash-file, then perhaps I can help.

    What version of swfobject is in your /scripts/ folder?

    Dan

  • Ranjit J. Vaity 66 posts 109 karma points
    Mar 02, 2010 @ 16:14
    Ranjit J. Vaity
    0

    Hi Baqus,

    Type providing the flash code chunk in here, we can take a look.

    Else

    Try using fiddler HTML traffic debugging tool: http://www.fiddler2.com. Any request that causing problem or bad request will show up in red.

    Regards.

    Ranjit J. Vaity

  • Mark Furmanek 2 posts 22 karma points
    Sep 30, 2010 @ 23:28
    Mark Furmanek
    0

    Dan, I'm having the same problem as Baqus.

    swfobject.js ver. 2.2

    Whenever the page renders, the path to the video is empty.

    Viewing the source code on the Content page yields this after the video is inserted:

    <div umb_videoheight="315" umb_macroalias="InsertFlashFile" umb_videoid="Bankruptcy2" umb_settingsnode="/media/1275/bankruptcy.swf" umb_videowidth="400" ismacro="true" onresizestart="return false;" umbversionid="99a0a66d-653e-4391-9eba-5d399b86bac0" umbpageid="1266" title="This is rendered content from macro" class="umbMacroHolder"><!-- startUmbMacro -->
    <span>No macro content available for WYSIWYG editing</span><!-- endUmbMacro -->
    </div>

    When the code renders in the browser (FF / IE / etc.), this is what the source code reveals:

    <div id="Bankruptcy2">
    <strong>  </strong>
    <p><strong><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this content.</strong></p>
    </div>

    <script src="/scripts/swfobject.js" type="text/javascript"></script>
    <script type="text/javascript">

    var path = "";
    var videowidth = "400";
    var videoid = "Bankruptcy2";
    var videoheight = "315";
    var flashvars = {};
    var attributes = {};
    var params = {
      wmode: "transparent",
      allowfullscreen: "true",
      allscriptaccess: "always"
    };

    swfobject.embedSWF(path, videoid, videowidth, videoheight, "9.0.0", flashvars, params, attributes);

    </script>

    As you can see, the first var "path" is empty, which is probably why the movie doesn't appear on the page.

    The XSLT (InsertFlashFile.xslt) that was installed is:

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE xsl:Stylesheet [ <!ENTITY nbsp "&#x00A0;"> ]>
    <xsl:stylesheet
        version="1.0"
        xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
        xmlns:msxml="urn:schemas-microsoft-com:xslt"
        xmlns:umbraco.library="urn:umbraco.library"
        exclude-result-prefixes="msxml umbraco.library">


    <xsl:output method="html" omit-xml-declaration="yes"/>

    <xsl:param name="currentPage"/>
    <xsl:variable name="videonode" select="/macro/SettingsNode"/>
    <xsl:variable name="videoid" select="umbraco.library:Replace(/macro/videoid,' ','')"/>
    <xsl:variable name="videopath" select="$videonode/node/data[@alias='umbracoFile']"/>
    <xsl:variable name="videoheight" select="/macro/VideoHeight"/>
    <xsl:variable name="videowidth" select="/macro/VideoWidth"/>



    <!-- ============================================================= -->

    <xsl:template match="/">
      
    <div>
      <xsl:attribute name="id">
        <xsl:value-of select="$videoid" />
      </xsl:attribute>
      <p><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this content.</p>
    </div>
    <script type="text/javascript" src="/scripts/swfobject.js"></script>
    <script type="text/javascript">
    <![CDATA[

    var path = "]]><xsl:value-of select="$videopath" /><![CDATA[";
    var videowidth = "]]><xsl:value-of select="$videowidth" /><![CDATA[";
    var videoid = "]]><xsl:value-of select="$videoid" /><![CDATA[";
    var videoheight = "]]><xsl:value-of select="$videoheight" /><![CDATA[";
    var flashvars = {};
    var attributes = {};
    var params = {
      wmode: "transparent",
      allowfullscreen: "true",
      allscriptaccess: "always"
    };

    swfobject.embedSWF(path, videoid, videowidth, videoheight, "9.0.0", flashvars, params, attributes);

    ]]>
    </script>


    </xsl:template>
    <!-- ============================================================= -->

    </xsl:stylesheet>

    The four parameters on the InstallFlashFile macro are:

    SettingsNode - Choose Video - mediaCurrent
    videoid - Video ID (unique, no special chars) - text
    VideoWidth - Width - number
    VideoHeight - Height - text

    Any help that you can give would be greatly appreciated.

    Mark

Please Sign in or register to post replies

Write your reply to:

Draft