The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Video Won't Autoplay
Just As I Am
post Apr 17 2019, 07:34 PM
Post #1





Group: Members
Posts: 5
Joined: 11-February 15
Member No.: 22,184



I am using the code below to embed a video on the front page of a website at this website.

<video width="448" height="361" poster="/images/demo_poster.jpg" autoplay loop controls>
<source src="/videos/EvansRogers-Demo.ogv" type="video/ogg">
<source src="/videos/EvansRogers-Demo.mp4" type="video/mp4">
<source src="/videos/EvansRogers-Demo.webm" type="video/webm"></video>

The problem I am having is that in Firefox and Chrome, the video will not autoplay, but works fine if you manually play it. In Microsoft Edge, it autoplays, but gves me only sound (that is a different issue I will fix later).

Ideas?

This post has been edited by Just As I Am: Apr 17 2019, 07:37 PM
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
CharlesEF
post Apr 18 2019, 12:07 AM
Post #2


Programming Fanatic
********

Group: Members
Posts: 1,996
Joined: 27-April 13
From: Edinburg, Texas
Member No.: 19,088



Firefox 66 to block automatically playing audible video and audio. See here. Maybe Chrome does the same?

This post has been edited by CharlesEF: Apr 18 2019, 12:09 AM
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Just As I Am
post Apr 18 2019, 10:31 AM
Post #3





Group: Members
Posts: 5
Joined: 11-February 15
Member No.: 22,184



That was the solution for both Firefox and Chrome. Thank you.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 13th December 2024 - 01:13 PM