1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Youtube Player in Chrome

Discussion in 'Troubleshooting and Problems' started by ddmmh, Jul 19, 2011.

  1. ddmmh

    ddmmh Well-Known Member

  2. Brogan

    Brogan XenForo Moderator Staff Member

  3. ddmmh

    ddmmh Well-Known Member

    Your right, those other videos do work.

    I havent touched the embed code so it could be an add-on? Not sure.

    Did you by chance test out the video on my site to see if you could get full screen in chrome?

    Cheers
     
  4. Brogan

    Brogan XenForo Moderator Staff Member

    Yes, it didn't work for me.

    The same video did work on my test site and here so it's definitely something specific to your installation.
     
  5. ddmmh

    ddmmh Well-Known Member

    Hmm interesting...

    Thanks for that.

    I havent updated to flexile 1.04, still at 1.03. Other then that I have no idea...
     
  6. Brogan

    Brogan XenForo Moderator Staff Member

    What does your embed code look like?

    It should be this:
    Code:
    <object width="640" height="385" data="http://www.youtube.com/v/{$id}&amp;fs=1" type="application/x-shockwave-flash">
    <param name="movie" value="http://www.youtube.com/v/{$id}&amp;fs=1" />
    <param name="allowFullScreen" value="true" />
    <param name="wmode" value="transparent" />
    <embed src="http://www.youtube.com/v/{$id}&amp;fs=1" type="application/x-shockwave-flash" allowfullscreen="true" wmode="transparent" width="640" height="385" />
    </object>
    Or this:
    Code:
    <iframe class="youtube-player" type="text/html" width="640" height="390" src="http://www.youtube.com/embed/{$id}?wmode=opaque" frameborder="0"></iframe>
    I use the latter iframe version on my site, XenForo.com uses the former.
     
    ddmmh likes this.
  7. ddmmh

    ddmmh Well-Known Member

    Mine looks like this;

    Code:
    <object width="500" height="300" data="http://www.youtube.com/v/{$id}&amp;fs=1">
        <param name="movie" value="http://www.youtube.com/v/{$id}&amp;fs=1" />
        <param name="allowFullScreen" value="true" />
        <param name="wmode" value="opaque" />
        <embed src="http://www.youtube.com/v/{$id}&amp;fs=1" type="application/x-shockwave-flash" allowfullscreen="true" wmode="opaque" width="500" height="300" />
    </object>
    I inserted the first code you provided and it worked! It is slightly different to what I use I noticed, I have no idea why as I have never edited it.

    Whats even better is the iframe version is so much nicer and now Im using that.

    Thanks Brogan, your a genius. Problem SOLVED!
     

Share This Page