Skip to main content
Inspiring
November 8, 2016
Answered

a red X appear for the HTML and a error for the video

  • November 8, 2016
  • 1 reply
  • 363 views

Hi,

In Dw cc 2015 my video was working perfectly without no red X near the button HTML and no error with the tag. In Dw cc 2017 my video work but a red X appear near the button HTML and the number 15 and 16 in my code line are written in red.  A error like so appear :  (Tag must be paired, no start tag: [</source>] ). And when I put the video in pause it still continue to play. Here is my code :

1   <!DOCTYPE html>

2   <html lang="fr">

3   <head>

4   <meta charset="utf-8">

5   <meta http-equiv="X-UA-Compatible" content="IE=edge">

6   <meta name="viewport" content="width=device-width, initial-scale=1">

7

8   <title>Statistiques de l'&#338;UVRE des Tabernacles</title>

9   <link href="../css/main.css" rel="stylesheet" type="text/css">

10 <link href="../css/screen.css" rel="stylesheet" type="text/css">

11  </head>

12

13  <body id="bgClipStatistiques">

14  <video preload="auto" autoplay controls width="100%" class="dispo_clip" title="Les statistiques de 2000 à 2015">

15        <source src="../_videos/webStatistiques.mp4" type="video/mp4"></source>

16        <source src="../_videos/webStatistiques.webmhd.webm" type="video/webm"></source>

17   Desole, votre navigateur ne prend pas en charge les nouvelles fonctionnalités du video ou de l'audio.

18   </video>

19

20   </body>

21   </html>

Thank you to help me.

Lise
    This topic has been closed for replies.
    Correct answer Nancy OShea

    Autoplay does not work on mobile phones.  All modern devices support MP4 now.

    This is all the code you need.

    <video preload="auto" controls="controls" poster="PATH/YOUR_POSTER_IMAGE.jpg">

    <source src="PATH/YOUR_VIDEO.mp4" type="video/mp4">

    </video>

    Nancy O.

    1 reply

    Nancy OShea
    Community Expert
    Nancy OSheaCommunity ExpertCorrect answer
    Community Expert
    November 8, 2016

    Autoplay does not work on mobile phones.  All modern devices support MP4 now.

    This is all the code you need.

    <video preload="auto" controls="controls" poster="PATH/YOUR_POSTER_IMAGE.jpg">

    <source src="PATH/YOUR_VIDEO.mp4" type="video/mp4">

    </video>

    Nancy O.

    Nancy O'Shea— Product User & Community Expert
    Inspiring
    November 8, 2016

    Thank you soo much for your information.

    Lise