Giter VIP home page Giter VIP logo

Comments (8)

paul-mckibben avatar paul-mckibben commented on September 15, 2024 3

I'm seeing the same thing, but only on iOS/Safari. No problem on desktop Safari, other desktop browsers, or Chrome on Android.

from lite-youtube-embed.

mikeott avatar mikeott commented on September 15, 2024 1

I very much doubt they would. We need to be aware that there are still many parts of the world where data costs are high for people to consume content. If video autoplay from YT were enabled on mobile, those are the exact areas where the economic impact could end up being massive.

That's a very valid and important point. But in this instance, the discussion is about getting the video to autoplay on (IOS devices) when the user has already tapped the play button. When the button is clicked, that's intent, regardless of the users feelings toward bandwidth costs. @amannn didn't mean 'autoplay' to mean the video would autoplay without any interaction, he meant the video would autoplay when you tap the play button (really you could just say the video would play when you hit the button, but the parameter name is 'autoplay' - which in the context of lite-youtube-embed is admittedly a little misleading I know).

From a usability perspective it's no different to embedding a YouTube video in the traditional way, obviously except that would be worse due to the bloated scripts that method includes before you even play the video.

All that said, I too wish for the same functionality. I've tried several ways to make it work, none of them successful. It feels like we're just all doomed to standard bloated YouTube embeds for the best cross-platform compatibility :-(

from lite-youtube-embed.

westonruter avatar westonruter commented on September 15, 2024

Which mobile browser are you testing with?

Double-tapping is a notoriously difficult problem to fix. See #6

from lite-youtube-embed.

kj-ivy avatar kj-ivy commented on September 15, 2024

Same issue here.
Safari, Chrome and Firefox on iPad all require a double tap for me while all desktop browsers and all browsers on Android work fine.

from lite-youtube-embed.

amannn avatar amannn commented on September 15, 2024

The YouTube player embed disables autoplay on mobile on purpose. The way lite-youtube-embed works, is that it only displays the poster image initially and will lazy load the YouTube player embed when the user presses play. Unfortunately, on mobile the video will not autoplay when the real player has loaded, requiring another interaction.

It would be very helpful if the YouTube embed would provide a way to enable autoplay on mobile (/cc @paulirish).

from lite-youtube-embed.

4matic avatar 4matic commented on September 15, 2024

What about using jsapi on mobile devices?

from lite-youtube-embed.

Garbee avatar Garbee commented on September 15, 2024

It would be very helpful if the YouTube embed would provide a way to enable autoplay on mobile (/cc @paulirish).

I very much doubt they would. We need to be aware that there are still many parts of the world where data costs are high for people to consume content. If video autoplay from YT were enabled on mobile, those are the exact areas where the economic impact could end up being massive.

Imagine loading a blog post that explains something and embeds a video as a 2nd method of consumption. You just need the text but it auto-plays the video thinking it would be helpful. That one thing just started costing some people real money.

from lite-youtube-embed.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.