Copied to clipboard

Flag this post as spam?

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


  • Bambe 45 posts 66 karma points
    Apr 06, 2011 @ 06:15
    Bambe
    0

    Chromeless player - This video does not allow it to be embedded.

    Hello,

    I install the package, and use a macro "[uTube] Chromeless Player", and fill the url & width, height fields

    then save and publish, the player shows "This video does not allow it to be embedded."

    but use "[uTube] Classic Player" macro, it works normally

    how can I fix the problem with Chormeless Player??

    thx alot :)

     

    Regards,

    Bambe :)

  • Lee Kelleher 4026 posts 15836 karma points MVP 13x admin c-trib
    Apr 06, 2011 @ 10:57
    Lee Kelleher
    0

    Hi Bambe,

    Could you let us know the URL of the YouTube video, we'll try to reproduce the issue.

    Cheers Lee.

  • Bambe 45 posts 66 karma points
    Apr 06, 2011 @ 11:03
    Bambe
    0

    Hi Lee,

    The URL is: http://www.youtube.com/watch?v=n7nZJYjR2uo

    thx alot :)

     

    Regards,

    Bambe :)

  • Lee Kelleher 4026 posts 15836 karma points MVP 13x admin c-trib
    Apr 06, 2011 @ 13:33
    Lee Kelleher
    0

    Hi Bambe,

    I've tested this with uTube 1.1 (on Umbraco 4.7) and the URL to gave me works fine in the Chromeless Player macro.  Test this macro in both a template and the RTE.

    Here is the macro code from my template:

    <umbraco:Macro runat="server" Alias="uTube.ChromelessPlayer" uTubeVideo="http://www.youtube.com/watch?v=n7nZJYjR2uo" uTubeWidth="320" uTubeHeight="240" />

    Usually the "This video does not allow it to be embedded." message is due to a YouTube setting with the video - so not sure what the problem was?

    Cheers, Lee.

  • Bambe 45 posts 66 karma points
    Apr 07, 2011 @ 04:52
    Bambe
    0

    Hi Lee,

    I've tested again too (RTE & Template), but the issue still the same, it's the umbraco version issue?

    my version is 4.7.0RC, uTube version is 1.1

    I know that message is about YouTube settings

    but it unreasonable the Classic Player macro is working fine

    and the other issue, if the video url include 'http://', it will parse error in XSLT (in chromeless player macro, classic player is fine)

     

    btw, the uTube.XSLT library could be included much more functions? e.g:ViewCount ... etc... :)

    thx alot and test :)

     

    Regards,

    Bambe :)

  • Lee Kelleher 4026 posts 15836 karma points MVP 13x admin c-trib
    Apr 07, 2011 @ 11:12
    Lee Kelleher
    0

    Hi Bambe,

    Not sure what the issue is with the chromeless player, I take it that you've tried other YouTube videos, do they work?

    As for the video data, we do provide an XSLT extension to get the XML data.

    For your video it's here: http://gdata.youtube.com/feeds/api/videos/n7nZJYjR2uo?v=2

    An example XSLT to show the view count:

    <?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"
        xmlns:uTube.XSLT="urn:uTube.XSLT"
        xmlns:atom="http://www.w3.org/2005/Atom"
        xmlns:yt="http://gdata.youtube.com/schemas/2007"
        exclude-result-prefixes="msxml umbraco.library uTube.XSLT atom yt">
      <xsl:output method="xml" omit-xml-declaration="yes"/>
    
      <xsl:param name="currentPage"/>
    
      <xsl:template match="/">
          <xsl:variable name="videoId" select="uTube.XSLT:GetVideoId('n7nZJYjR2uo')"/>
          <xsl:variable name="videoData" select="uTube.XSLT:GetVideoData($videoId)"/>
          <dl>
              <dt>Video Count</dt>
              <dd>
                  <xsl:value-of select="$videoData/atom:entry/yt:statistics/@viewCount" />
              </dd>
          </dl>
      </xsl:template>
    
    </xsl:stylesheet>

    Important to remember to reference the XML namespaces for both Atom and YouTube at the top of your XSLT.

    Cheers, Lee.

  • Bambe 45 posts 66 karma points
    Apr 12, 2011 @ 04:03
    Bambe
    0

    Hi Lee,

    Thanks for your XSLT help on ViewCount :)

    and the Chromeless Player, I try a lot more, and I maybe got some problem(?? :) ),

    when I use video url without 'http://' it will show not embedded message on player

    if include 'http://', some video can be work, some can't

    I provide you I tested work and not work video to test :)

    work video:

    1.http://www.youtube.com/watch?v=mvR--Cja1bM 
    2.http://www.youtube.com/watch?v=Bg59q4puhmg
    3.http://www.youtube.com/watch?v=-3-p_4z6FiM

    not work video:

    1.http://www.youtube.com/watch?v=9yYxTukh0LA
    2.http://www.youtube.com/watch?v=K-D1GsqoXxs
    3.http://www.youtube.com/watch?v=orFBHWwNyNk

    thx alot :)

     

    Regards,

    Bambe :)

Please Sign in or register to post replies

Write your reply to:

Draft