troubleshooting Question

Using HTML5 video on a React App in such a way that it will work on all Mobile platforms (iOS, Android, MS etc.), esp, making the auto start working at page load.

Avatar of Ahmed Musawir
Ahmed Musawir asked on
HTMLJavaScript* ReactJS* html5 video
2 Comments1 Solution87 ViewsLast Modified:
I'm trying to use HTML5 video in my React App the following way:

<Section gridStart="1366px" bgColor="gradient" type="flex">
          <Block flexBasis="70">
            <video width="100%" autoPlay loop>
              <source src="/videos/ai-vid.mp4" type="video/mp4" />
          <Block flexBasis="30">
              <Fade bottom cascade>
                <H2 light>Accessibility</H2>
                <H4 light>
                  Lorem ipsum dolor, sit amet consectetur adipisicing elit.
                  Molestias dolores quia sit harum accusamus quaerat

But this will not auto start when the page loads the first time. But when I visit another page and come back to the home page, the video works. Any idea what's happening? Any suggestions to make it work properly and esp on mobile devices will be appreciated.
Zakaria Acharki
Analyst Developer
Join our community to see this answer!
Unlock 1 Answer and 2 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros