Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Frank Goossens

    (@futtta)

    ahh mobile … lyte falls back to normal youtube embeds for mobile (so it should work, just won’t be “lyte”) because there’s no autoplay on mobile youtube, which would be confusing to the visitor as he would have to click on “play” twice. I would *love* to solve this, but I’m not sure how really.

    What do you think, are 2 clicks preferable to not showing lyte youtube embeds? Or would switching to the native YouTube client (even if we can’t be sure it’s available) be a better solution?

    a somewhat frustrated,
    frank

    Thread Starter Kosta92

    (@kosta92)

    First of all, I am using Lyte because it’s fast. Simple as that.

    It’s much faster than default loading of the YouTube player every time the page loads, which in turn decrease the loading time. Before this plugin, I have tested a few other ones, but this one stand out as a clear winner – on desktop

    that is.

    These are my results (local install, Apache, PHP 5.4.37, MySQL 5.5.42, WordPress 4.2.2, Twenty Fifteen theme, no other plugins, 10 videos in post):

    FIRST TIME PAGE LOAD:

    Plugin | Requests | Query | Finish | DOM | Load | Transferred

    No plugin | 171 | 542ms | 11.65s | 1.30s | 10.35s | 2.1MB
    Lazy Load for Videos | 31 | 552ms | 1.46s | 1.41s | 1.66s | 1.1MB
    Simple YouTube Embed | 32 | 1.64s | 2.55s | 2.36s | 2.62s | 1.4MB
    WP YouTube Lyte | 30 | 590ms | 1.66s | 1.34s | 1.48s | 1.1MB
    Youtube SpeedLoad | 31 | 550ms | 1.45s | 1.36s | 1.54s | 1.3MB

    CACHED PAGE LOAD:

    Plugin | Requests | Query | Finish | DOM | Load | Transferred

    No plugin | 171 | 533ms | 11.80s | 1.10s | 10.46s | 119KB
    Lazy Load for Videos | 31 | 544ms | 1.11s | 1.07s | 1.23s | 90KB
    Simple YouTube Embed | 32 | 1.51s | 2.03s | 2.00s | 2.07s | 94KB
    WP YouTube Lyte | 30 | 548ms | 1.13s | 977ms | 1.05s | 88KB
    Youtube SpeedLoad | 31 | 533ms | 1.08s | 987ms | 1.10s | 87KB

    No more talking about how fast and good your plugin is. The main issue here is the mobile support, or should I say, lack of it. Of those other plugins, Lazy Load for Videos and Youtube SpeedLoad have incorporated the same function as on desktop and it works good.

    These are my three reasons for liking a “double tap” function on mobile:
    1. Cache always loads much faster than the default YouTube embed, so it’s already a win for me.
    2. Search engines love page speed more than I do. Another good point there.
    3. My website isn’t going to be another YouTube so double-tapping to view a single video from time to time should not be a big deal for the visitors.

    My suggestion would be to make that function as an option for anyone who wants to use it. Other suggestion would be to make a JavaScript or PHP script that would auto-activate play on the YouTube player if that is possible or allowed.

    You said something about a native YouTube client. If you meant something like this, I don’t think it’s a good idea. It would bloat and slow a plugin with more code and graphics. Also, it looks like the YouTube’s ToS prohibits that:

    4. General Use of the Service—Permissions and Restrictions
    YouTube hereby grants you permission to access and use the Service as set forth in these Terms of Service, provided that:

    F. If you use the Embeddable Player on your website, you may not modify, build upon, or block any portion or functionality of the Embeddable Player, including but not limited to links back to the YouTube website.

    Plugin Author Frank Goossens

    (@futtta)

    OK, interesting, some replies;

    Other suggestion would be to make a JavaScript or PHP script that would auto-activate play on the YouTube player if that is possible or allowed.

    that, I’m afraid, is indeed not possible.

    You said something about a native YouTube client. If you meant something like this, I don’t think it’s a good idea. It would bloat and slow a plugin with more code and graphics.

    No, what I mean is you’d click on a Lyte video and instead of loading the embedded YT-player, the YT native app would open to play the video.

    now regarding having lyte on mobile; open up wp-content/plugins/wp-youtube-lyte/lyte/lyte-min.js, find

    var i=navigator.userAgent.match(/(iphone|ipad|ipod|android)/i)

    and change that into e.g.

    var i=navigator.userAgent.match(/(iphonelyte|ipadlyte|ipodlyte|androidlyte)/i)

    and you’ll have lyte everywhere.

    frank

    Thread Starter Kosta92

    (@kosta92)

    Thank you for that code, it works. Please add that as an option in the next version.

    On the subject of native YouTube player. I don’t think it is a good idea to incorporate it into the Lyte and I’m sure YouTube wouldn’t like that. Be sure to check their ToS.

    Plugin Author Frank Goossens

    (@futtta)

    Please add that as an option in the next version.

    I’ll add it to the list of things to look into ??

    I’m sure YouTube wouldn’t like that. Be sure to check their ToS.

    If LYTE would trigger the native player, the TOS wouldn’t apply really, as we would not be embedding YT, we would have a LYTE player (which is not YT) which upon the player being clicked would have the OS open up the native YT-player. But I don’t think this would constitute good default behavior, so all of this is not important really ??

    frank

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Smartphone and tablet support’ is closed to new replies.