javascript - How mobile YouTube page autoplay videos on iOS? -
i'm trying understand after 2 days of digging code thought post issue here...
according apple's documentation, autoplaying videos on ios devices cannot done without user interaction first (e.g. tap on video). despite that, mobile youtube (m.youtube.com) able autoplay videos after loading page video.
does know how doing it?
ps. i've checked available js/html techniques of autoplaying videos on website on ios (e.g. iframe, fake click, triggering touch event on video, fetching video xhr).
i believe youtube.com single page app. when user clicks on video list view page not loading , javascript uses initial click, leads video page, click starts video. it's not autoplaying, it's trick.
Comments
Post a Comment