On my iPhone-6s my videos only show an arrow to start with.
<video controls>
<source src="https://www.dalekelly.org/images/newwebcam.mp4" type="video/mp4">
Your browser does not support the MP4 video tag.
</video>
Dale, 2022-08-22 00:15:
On my iPhone-6s my videos only show an arrow to start with.
This is by design. Browsers do not allow autoplay videos if they are not muted. The only allowed way to let a video play is after a user interaction.
[...]
<video controls>
<source src="https://www.dalekelly.org/images/newwebcam.mp4"
type="video/mp4">
Your browser does not support the MP4 video tag.
</video>
Try:
<video controls muted autoplay>
Or for Safari with additional "playsinline":
<video controls muted autoplay playsinline>
Just keep in mind - autoplay will not work, if the video is not muted initially.
Also see:
<https://pqina.nl/blog/fix-html-video-autoplay-not-working/>
On 8/22/2022 10:59 AM, Arno Welzel wrote:
Dale, 2022-08-22 00:15:
On my iPhone-6s my videos only show an arrow to start with.
This is by design. Browsers do not allow autoplay videos if they are not
muted. The only allowed way to let a video play is after a user interaction. >>
Not looking for an autoplay. What's its value?
there isn't an image to start with behind the arrow on the iPhone, using Chrome, just an arrow
Chrome and Edge on Windows 10 have an image in its toolbar
Amazon Silk on a Fire-TV has an image with a centered arrow, but no
arrow in its toolbar
Dale, 2022-08-22 19:26:
On 8/22/2022 10:59 AM, Arno Welzel wrote:
Dale, 2022-08-22 00:15:
On my iPhone-6s my videos only show an arrow to start with.
This is by design. Browsers do not allow autoplay videos if they are not >>> muted. The only allowed way to let a video play is after a user interaction.
Not looking for an autoplay. What's its value?
there isn't an image to start with behind the arrow on the iPhone, using
Chrome, just an arrow
Yes, this is by design. Ask Apple about that.
Chrome and Edge on Windows 10 have an image in its toolbar
Yes, this is by design - Google and Microsoft decided to do it this way.
Amazon Silk on a Fire-TV has an image with a centered arrow, but no
arrow in its toolbar
Again - because Amazon liked to have it so.
If you don't like this, you need to create your own image with an
surrounding <a> element which is display *instead* of the video. Then
add a JavaScript onclick handler which will hide the image and then
reveal the video behind it and start the video playing.
Hi,
On my iPhone-6s my videos only show an arrow to start with.
Pressing the arrow works fine.
Just thinking this isn't obvious to the visitor.
The videos can be found here ...
https://www.dalekelly.org/weblog.html
I have this in the head ...
<head>
(other stuff ...)
<style>
video {
max-width: 100%;
height: auto;
}
</style>
</head>
and here is an example video code ...
<video controls>
<source src="https://www.dalekelly.org/images/newwebcam.mp4"
type="video/mp4">
Your browser does not support the MP4 video tag.
</video>
Hi,
On my iPhone-6s my videos only show an arrow to start with.
Pressing the arrow works fine.
Just thinking this isn't obvious to the visitor.
The videos can be found here ...
https://www.dalekelly.org/weblog.html
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 379 |
Nodes: | 16 (2 / 14) |
Uptime: | 41:07:24 |
Calls: | 8,141 |
Calls today: | 4 |
Files: | 13,085 |
Messages: | 5,857,730 |