Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

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

Explorer ,
Nov 08, 2016 Nov 08, 2016

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
370
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Nov 08, 2016 Nov 08, 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.

Translate
Community Expert ,
Nov 08, 2016 Nov 08, 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 & Moderator
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Nov 08, 2016 Nov 08, 2016
LATEST

Thank you soo much for your information.

Lise

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines