you tube video does not autoplay on tablet - youtube

The video automatically plays when it's a computer, but when the website is opened from any tablet, it doesn't play.

It cannot be done. Apple doesn't allow that.
In Safari on iOS (for all devices, including iPad), where the user may
be on a cellular network and be charged per data unit, preload and
autoplay are disabled.
Safari HTML5 Audio and Video Guide

Related

html5 video playback on iOS (iPhoneX)

Hey everyone,
we have a serious issue with a website where we have an html5 video on the landingpage. It's a muted autoplay 5second loop that is supposed to play as a background-video on the site.
Now … we have two persons testing it, with the exact same device.
iPhoneX with Google Chrome (caches cleared and tested on both devices with Incognito and without)
On my phone the autplay works just fine. Video plays in the background.
On my collegues iPhoneX (same build, bought at the same date, same iOS version, same Browser (caches cleared)) it does not play automatically. He get's the play-icon.
Any idea why?
Thanks,
Matt
For everyone looking into that. The reason is iOS Low-Power-Mode. in low power mode the videos do not automatically play.

How to implement airplay in an iOS app for streaming video on Apple TV

I am working on an iOS app with video streaming. My requirement is that I want to stream video content on Apple TV using Airplay, also streaming should continue even if my phone gets locked / app enters background state.
Thanks in advance.

Stream video via AirPlay without affecting app?

I have a native app and would like to stream video to an Apple TV over AirPlay, but without affecting the app screen. The video should NOT to be shown on the app screen -- only on the Apple TV.
Is this possible in iOS 7?
Yes, it is possible:
If you use AirPlay to allow users to redirect content to an external
device display, you can either mirror the current app content on the
second display or show different content on it.

iOS, quicktime and html5 captioned videos

I’m using captions in video. It works well on desktop browsers and some android devices. The problem is on iOS because it overrides the video with quicktime. As far as I understand, captions in quicktime are coded into the movie.
Example: The first video on this page uses captions that aren’t viewable on an iOS device.
Is it possible to do any of the following:
Disable quicktime programatically?
Control quicktime programatically from the browser?
Place captions over quicktime using data from the browser?
Any other solutions to this problem are welcome.

allowsAirPlay not showing Air Play button in MPMoviePlayerViewController

I'm using an MPMoviePlayerViewController to play a video. I set the instance's moviePlayer.allowsAirPlay to true as it is false by default. However, the Air Play button never shows up in the player controls. Could I have done something wrong, or are there specific guidelines for Air Play? The videos are 640x480, file types AVFileTypeQuickTimeMovie, .mov extension, H264, and PCM audio.
Does an AirPlay device need to be in the vicinity before the button even shows up? I don't have an airplay device, but am an app developer and want to make sure my users can do so if they have such a device.
OK, apparently the way it works is it checks for AirPlay compatible devices when loading, so the button does not appear unless some are available.

Resources