Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Standard embeding code OK in HTML5 - Not working in XHTML5 !


--------------------------------------------------------
This test code is perfectly working as HTML5 :
--------------------------------------------------------
<!DOCTYPE html>
<html lang="fr-fr">
<head>
<meta content="text/html; charset=utf-8" http-equiv="content-type">
<title>jwplayer test</title>
<meta content="Robert Kirsch - Mornant : r.kirsch@free.fr" name="author">
<script src="archives2014/jwplayer.js"></script>
<script>jwplayer.key="Itxvpo5M9iJmNKSSEas/S02KuyhuPydl6eDF8A==";</script>
</head>
<body>
<h1>Test jwplayer.js HTML5</h1>
<!-- vidéo JWplayer -->
<div id="myElement">Loading the player...</div>
<script type="text/javascript">
jwplayer("myElement").setup({
file: "archives2014/Estelle 14-7-2014 public.mp4",
image: "archives2014/rose%20%28Felicitation%20Estelle%20chinois%20naiss%29.JPG",
width: 640,
height: 360,
autostart: true,
});
</script>
<!-- vidéo JWplayer fin -->
<p>Is working</p>
</body>
</html>

--------------------------------------------------------
Same coding is no more working in XHTML5 ;:
--------------------------------------------------------

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<title>jwplayer et xhtml</title>
<meta name="author" content="Robert Kirsch - Mornant : r.kirsch@free.fr" />
<script src="archives2014/jwplayer.js"></script>
<script>jwplayer.key="Itxvpo5M9iJmNKSSEas/S02KuyhuPydl6eDF8A==";</script>
</head>
<body>
<h1>Test jwplayer.js in XHTML5 !</h1>
<!-- vidéo JWplayer -->
<div id="myElement">Loading the player...</div>
<script type="text/javascript">
jwplayer("myElement").setup({
file: "archives2014/Estelle 14-7-2014 public.mp4",
image: "archives2014/rose%20%28Felicitation%20Estelle%20chinois%20naiss%29.JPG",
width: 640,
height: 360,
autostart: true,
});
</script>
<!-- vidéo JWplayer fin -->
<p>Is not working !</p>
</body>
</html>

--------------------------------------------------------
Can't find the problem.with XHTML
Firefox 31 gives an error :
" An invalid or illegal string was specified "
in a black video frame
Chrome displays no error text but also
a black video frame !

Robert.
--------------------------------------------------------

2 Community Answers

MisterNeutron

Best Answer 

For all practical purposes, there really isn't any such thing as XHTML5. Development was abandoned a few years ago in favor of HTML5.

If, for some mysterious reason, you want to use XHTML, your only real choice is between transitional and strict, but they're both obsolete. The proper DOCTYPE declaration for XHTML Strict would be:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

But unless you're actually serving the page with a MIME type of application/xhtml+xml, rather than text/html, the browser will just interpret it as HTML with syntax errors (which is will ignore). If you DO serve the page with that MIME type, IE8 and below will show nothing - there's no support for it there.

View in conversation

MisterNeutron

Best Answer  User  
0 rated :

For all practical purposes, there really isn't any such thing as XHTML5. Development was abandoned a few years ago in favor of HTML5.

If, for some mysterious reason, you want to use XHTML, your only real choice is between transitional and strict, but they're both obsolete. The proper DOCTYPE declaration for XHTML Strict would be:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

But unless you're actually serving the page with a MIME type of application/xhtml+xml, rather than text/html, the browser will just interpret it as HTML with syntax errors (which is will ignore). If you DO serve the page with that MIME type, IE8 and below will show nothing - there's no support for it there.

Ethan Feldman

JW Player Support Agent  
0 rated :

http://programmers.stackexchange.com/questions/149839/is-xhtml5-dead-or-is-it-just-an-synonym-of-html5

“W3C decided to abandon XHTML for HTML 5.”

This question has received the maximum number of answers.