WordPress.org

Forums

WP YouTube Lyte
[resolved] Enable fullscreen button automatically? (20 posts)

  1. busheikin
    Member
    Posted 2 years ago #

    Very often the fullscreen button is lacking from the YTLyte embeds.
    If I add "&fs=1" to the end of an httpv://... url, it will put the fullscreen button in there.
    Is there a way to put this in the code so it happens automatically?

    Thanks for reading, sorry if I am a total n00b.

    http://wordpress.org/extend/plugins/wp-youtube-lyte/

  2. Frank Goossens
    Member
    Plugin Author

    Posted 2 years ago #

    Hmm, if I'm not very much mistaking this was in WP YouTube Lyte once, but apparently I nixed it by accident or for reasons I don't remember. I'll look into this for the next version (1.2.0 if all goes well).

    In the mean time you could open up wp-content/plugins/wp-youtube-lyte/lyte/lyte-min.js, search for

    &wmode=opaque&rel=0&egm=0&iv_load_policy=3
    in there and change that into
    &wmode=opaque&rel=0&egm=0&fs=1&iv_load_policy=3

    frank

  3. busheikin
    Member
    Posted 2 years ago #

    It's there, but it disappears when the video is clicked.

  4. Frank Goossens
    Member
    Plugin Author

    Posted 2 years ago #

    the "lyte player" you see is a placeholder for the real youtube video player which is only loaded when clicked. so it's there, but it isn't really ;-)

  5. busheikin
    Member
    Posted 2 years ago #

    I see. So there is no way to ensure the fullscreen button is on the real player using this plugin?

  6. Frank Goossens
    Member
    Plugin Author

    Posted 2 years ago #

    there is, using the small code change from my initial comment. the same change should also be present in the next version.

  7. busheikin
    Member
    Posted 2 years ago #

    Thanks futtta. I have indeed made that change.
    Still, The full screen button does appear on the placeholder; The full screen button does not appear on the real player.

    Edit: here's an example post

  8. Frank Goossens
    Member
    Plugin Author

    Posted 2 years ago #

    thanks for the link, i'll investigate tomorrow!

  9. Frank Goossens
    Member
    Plugin Author

    Posted 2 years ago #

    it took me some time, but just checked out your link and if i'm not mistaking, you identified & fixed the problem by replacing "fs=1" with "allowfullscreen=1"?

  10. Frank Goossens
    Member
    Plugin Author

    Posted 2 years ago #

    Just looked at youtube embed code as available for most youtubes; apperantly "allowfullscreen" is now added as an attribute of the iframe, like this;

    <iframe width="420" height="315" src="http://www.youtube.com/embed/WeVxE3B49E0?rel=0" frameborder="0" allowfullscreen></iframe>

    I'll add this small change in wp-youtube-lyte.php for the upcoming version (not sure if I'll create a 1.1.9 with a couple of smaller fixes like this one, or if I should just work on 1.2.0 instead which will be a more thorough change but which may take me some more time).

  11. Frank Goossens
    Member
    Plugin Author

    Posted 2 years ago #

    I just released version 1.1.9 which adds the "allowfullscreen" attribute. Let me know how that works for you!

  12. busheikin
    Member
    Posted 2 years ago #

    I still don't see a fullscreen button on the YT player, though it is indeed working on the placeholder.
    Thanks for all your work on this so far!

  13. Frank Goossens
    Member
    Plugin Author

    Posted 2 years ago #

    weird. what browser are you using?

  14. busheikin
    Member
    Posted 2 years ago #

    Aha - good point. Works in Safari, not in Firefox...

  15. Frank Goossens
    Member
    Plugin Author

    Posted 2 years ago #

    weird still; i'm on firefox as well and it does work for me.

    what OS are you using, what version of Firefox are you on and do you have flash in FF?

  16. busheikin
    Member
    Posted 2 years ago #

    Firefox 16.0.1
    OSX 10.7.4
    Flash vers 11.4.402.265 but I am going to run an update now

  17. Frank Goossens
    Member
    Plugin Author

    Posted 2 years ago #

    can you go http://futtta.be/wordpress/blog/2012/04/02/standard-youtube-embed/ an tell me if you see the fullscreen-button there in firefox on macosx?

  18. busheikin
    Member
    Posted 2 years ago #

    Not on my Lion computer, but I see it on my Snow Leopard Macbook

  19. Frank Goossens
    Member
    Plugin Author

    Posted 2 years ago #

    Hmm, the page had a standard youtube embed. this confirms what I thought; apperantly Youtube will, based on OS/Browser, not show the fullscreen-button. There's nothing I can do to change that, I'm afraid.

  20. Frank Goossens
    Member
    Plugin Author

    Posted 2 years ago #

    Just got very interesting feedback from another user (thanks ytuquelees); in lyte-min.js (and lyte.js, but that is not used unless when in debug-mode) you'll find <iframe [... other stuff here ...] allowfullscreen>. If you add "webkitallowfullscreen mozallowfullscreen" after the "allowfullscreen" it could solve problems with fullscreen youtube when in some (older?) browsers.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP YouTube Lyte
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic