Copied to clipboard

Flag this post as spam?

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


  • Graham 21 posts 51 karma points
    Nov 08, 2010 @ 12:26
    Graham
    0

    Help using this!

    Hi I'm pretty new to Umbraco so excuse me if this is a stupid question.

    I've installed the package, I've created a new template with a property called videoContent and a new template which looks like this:

    <%@ Master Language="C#" MasterPageFile="~/umbraco/masterpages/default.master" AutoEventWireup="true" %>

    <asp:Content ContentPlaceHolderID="ContentPlaceHolderDefault" runat="server">
      <umbraco:Macro videoNode='<umbraco:Item field="videoContent" runat="server"></umbraco:Item>' VideoWidth="300" VideoHeight="300" Alias="InsertVideo" runat="server"></umbraco:Macro>
    </asp:Content>

    I've got a flv file which I've added to the media library and then select for this node.

    The resulting page source is below - basically I get no video - what am I doing wrong?

      <script type="text/javascript" src="/scripts/flowplayer-3.1.4.min.js"></script><a href="" style="display:block;height:300px;width:300px" id=""></a><script type="text/javascript">

    var videoid = "";
    flowplayer(videoid, "/scripts/flowplayer-3.1.4.swf");

    </script>
  • dandrayne 1138 posts 2262 karma points
    Nov 09, 2010 @ 12:44
    dandrayne
    0

    Hi Graham

    You should be able to use this via the "insert macro" button within the editor, but you may need to 1) go to the developer tree, 2)  find "macros" and expand that, click on the flowplayer macro and then make sure the checkbox labelled "use in editor" is checked.

    Hope this helps,

    Dan

  • Graham 21 posts 51 karma points
    Nov 15, 2010 @ 16:39
    Graham
    0

    Thanks Dan - I've been snowed under this week and haven't had a chance to look at this since you replied but I will do as soon as I get a chance.

    I really appreciate the response though and I will mark as answer as soon as I have had a chance to try it out.

  • Graham 21 posts 51 karma points
    Nov 15, 2010 @ 16:40
    Graham
    0

    Thanks Dan - I've been snowed under this week and haven't had a chance to look at this since you replied but I will do as soon as I get a chance.

    I really appreciate the response though and I will mark as answer as soon as I have had a chance to try it out.

  • Matthew Jarvis 129 posts 129 karma points
    May 10, 2011 @ 17:17
    Matthew Jarvis
    0

    I'm also having problems with this package with me unable to get videos to display.  Currently use Umbraco 4.0.3 so have used version 1.0 of this package.

    Have installed package usual way via the "Install Local Package" method.  Upon me opening a content page i have used the Insert Macro in the rich text editor.  I select the video file i wish to use (which is a FLV file).  I get a notification within the Rich Text Editor that "This maco wont be rendered in the editor because it contains script code.  It will render correct during runtime", after save, publish and preview I do not receive the intended video on my web page.

    I have checked that both the "Use in Editor" and "Render Control in Editor" are ticked as per above instruction.

    Any advice would be most grateful,

    Matt

  • syn-rg 282 posts 425 karma points
    Jun 20, 2011 @ 07:55
    syn-rg
    0

    I'm having the same problem as Matthew.

    The resulting HTML I'm getting is as such:

    <p><script src="/scripts/flowplayer-3.1.4.min.js" type="text/javascript"></script><a id="" style="display: block; height: 330px; width: 520px;" href="/media/127200/flowplayer-700.flv"></a><script type="text/javascript">

        var videoid = "";
        flowplayer(videoid, "/scripts/flowplayer-3.1.4.swf");

    </script></p>

    So the second script isn't being inserted into the a tag, and then converting to the required object tag.

    Can you suggest a way to fix this?

    Cheers,
    JV

  • dandrayne 1138 posts 2262 karma points
    Jun 20, 2011 @ 10:44
    dandrayne
    1

    Hi Matthew and JV

    First off, sorry about the late reply Matthew - forum activity has taken a back seat as we've been extremely busy here.

    Which version of the package are you using?  If 1.1 it would seem that generateid isn't working for you as there is no ID being added to the links (which is necessary for flowplayer).  YOu should have the following in your file

    <xsl:variable name="videoid" select="generate-id($videonode)"/>

    You could try using random numbers, like

    <xsl:variable name="videoid" select="concat('vid-',umbraco.library:Replace(Exslt.ExsltMath:random(), '.', ''), generate-id($videonode/node/umbracoFile))"/>

     

     

  • syn-rg 282 posts 425 karma points
    Jun 21, 2011 @ 05:20
    syn-rg
    0

    Hi Dan,

    I'm using version 1.0.

    I added the following and it's now playing perfectly! Thanks for the quick response.

    <xsl:variablename="videoid"select="generate-id($videonode)"/>

    Cheers,
    JV

Please Sign in or register to post replies

Write your reply to:

Draft