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

Several issues the embedding in FF, Chrome and IE


I need help with this:

1. My test page loads OK in FF and Chrome but does not appear in IE.

2. Then in FF and Chrome, I keep getting file not found.

I have downloaded the latest JWPlayer and I think that I followed the example for a playlist properly, but, I still have some type of error I made.

I would very much appreciate someone looking at my test page to determine where I have my error(s).

http://216.220.160.82/jwp/embeded-player.htm

Very respectfully,
Marshall

29 Community Answers

JW Player

User  
0 rated :

No character set is specified in either the 'content-type' HTTP header, <meta> tag, or XML
declaration:

JW Player

User  
0 rated :

The video file is returning a 404 - Not Found:

http://216.220.160.82/jwp/video/Munkacs-video2-1.mp4

Same result for the other two videos.

JW Player

User  
0 rated :

Thanks, I added:

<meta http-equiv="content-type" content="text/html; charset=us-ascii">
<meta http-equiv="content-language" content="en">

Regarding the videos, they are there, hmmmmm, I need to figure out why they can't be reached.

Marshall...

JW Player

User  
0 rated :

I don't think the meta tag problems have anything to do with this, but it really is long past time to switch to HTML5, and be done with it:

bc.. <!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>My Title</title>
etc.


XHTML is dead, and was actually never "real" to begin with. Browsers always process it as "HTML 4.0 with syntax errors."

JW Player

User  
0 rated :

Thank you MisterNeutron, I made the change and moved the videos to the path, but I still get 404 not found. I'll call my server team now.

JW Player

User  
0 rated :

I agree XHTML is dead, yet you have remnants of it still present.

<ol>
<li> Obsolete value for 'http-equiv':</li>
<li> you can only have 1 character code encoding declared...you have two</li>
<li> there is a ; in the key declaration which shouldn't be there</li>
</ol>

JW Player

User  
0 rated :

Thank you Willie Meier, I corrected those issues.

I called my server team to have them investigate why the filles that are there are getting 404 not found.

I am still not seeing the player appear in IE.

Marshall...

JW Player

User  
0 rated :

Now you've got an unhealthy mixture of HTML5 and XHTML. Please see my post, above. You can't use these lines in HTML5:

bc.. <meta http-equiv="content-type" content="text/html; charset=us-ascii">
<meta http-equiv="content-language" content="en">


You want just:

bc.. <meta charset="UTF-8">


But that's not what's causing your problems, anyway. The player shows up in IE11, but the video files still can't be found.

JW Player

User  
0 rated :

Update: My server team added a MIME type for mpeg .mp4 and now the files play in FireFox and Chrome.

I am still getting nothing to appear in IE.

http://216.220.160.82/jwp/embeded-player.htm

Marshall...

JW Player

User  
0 rated :

Do you have Flash installed in IE11? You're specifying *primary: "flash"* (why?).

JW Player

User  
0 rated :

They've added the wrong MIME type - should be "video/mp4" not "video/mpeg".

JW Player

User  
0 rated :

Thank you Mister Neutron, I am using IE 11 and I just installed Flash 13, I cleared cache and reloaded the page and still nothing appears.

Thank you James Herrieven, I called the server team back and they told me that in their drop dowm only video/mpeg appears and they added the extension of .mp4 which seems to work now.

Marshall...

JW Player

User  
0 rated :

Still invalid HTML5 coding. Still primary: "flash".

But I'm still having no problem in IE11. I suspect you have some sort of add-on or extension that's blocking the player. Disable all add-ons other than Flash (Tools, Manage Add-ons, Show, All add-ons).

Also, reset the "Advanced" settings to factory default (Tools, Internet Options, Advanced, Restore advanced settings).

Ethan Feldman

JW Player Support Agent  
0 rated :

The mime type is still – video/mpeg

JW Player

User  
0 rated :

Thank you Mister Neutron, I changed the coding to html5. Reset everything in IE. Now, the player appears in IE, but again, file not found. Nothing plays in FF now, but Chrome is OK.

Thank you Ethan JWPlayer, My server team says that the drop down list does not have video/mpeg fro them to select. I guess they don't know how to edit the file to add it. I sent an e-mail to my primary web site provider to check and if necessary, add video/mp4 .mp4 so I can check the three browsers there.

JW Player

User  
0 rated :

Whopps, says "file cannon be played," not "not found."

JW Player

User  
0 rated :

Still not valid HTML5. Copy and paste:

bc.. <!DOCTYPE html>
<head>
<title>Video With Playlist</title>
<meta charset="UTF-8">
<script type="text/javascript" src="jwplayer/jwplayer.js" ></script>
<script type="text/javascript">jwplayer.key="PH6r8OSTMaaBJKWsqJKTWV3ArT20hHXaoQHUdg=="</script>
</head>
<body>
<div id="myElement"></div>
<script>
jwplayer("myElement").setup({
playlist: [{
file: "video/Munkacs-video2-1.mp4",
image: "video/graphics/Secular-Children-Singing-1930s.jpg",
title: "Children Singing",
description: "1930s - Time - 0:53"
},{
file: "video/Munkacs-video5-1.mp4",
image: "video/graphics/Weavers-1930s.jpg",
title: "Weavers",
description: "1930s - Time - 0:42"
},{
file: "video/Munkacs-video6-1.mp4",
image: "video/graphics/Children-Dancing-1930s.jpg",
title: "Children Dancing",
description: "1930s - Time - 1:38"
}],
listbar: {
position: "right",
size: 250,
},
width: 580,
height: 350
});
</script>
</body>
</html>


But it's the incorrect MIME type that is now kicking it in the butt. Get that fixed, use my code instead of yours, and you should be good to go.

Ethan Feldman

JW Player Support Agent  
0 rated :

The last issue here is the MIME TYPE, though.

JW Player

User  
0 rated :

Thank you MisterNeutron , I have changed to your code and very much appreciate your and everone else's assistance. Now I have to push them to update the MIME type as suggested by you and Ethan JWPlayer and others. I"ll advise when that is fixed.

Marshall...

Ethan Feldman

JW Player Support Agent  
0 rated :

Np, let us know.

JW Player

User  
0 rated :

@Marshall

I as others highly recommend that you go to HTML5 and as correctly pointed out by Mr. Neutron
get rid of *primary: "flash".*

Make sure your pages render "progressively" therefore the placement of JavaScript file should be at the end just above the </body>. Why and contrary to previous postings on JavaScript placement?

First of all, doing such namely, progressive rendering will optimize(speed) the loading of the page.
When a page is rendered and encounters a JavaScript file which is located in the head of the page...rendering will stop and the JavaScript is loaded. As a result, it very possible that a
phenomenon called FOUC can/may occur especially IF and JavaScript is intermingled with the CSS declaration very often seen in coding.

You want the CSS to load first, then the HTML and then the JavaScript thus to accomplish this the JavaScript is placed at or near the end of the page.

Loading the CSS first ensures that HTML is presented correctly and by loading lastly the JavaScript files which are in fact files that manipulate(action) the HTML as opposed to the presentation of the HTML. You can't have something acted upon when it isn't or hasn't been rendered.

The JWPlayer documentation states that the key for the JWPlayer should be placed in the head of the document... NO, it can easily be included after the declaration of the options for the JWPlayer and before it(JWPlayer) is instantiated.

In addition to progressive rendering you want to reduce the number of HTTP calls that your web page performs this also helps in speeding your page.

If I were you I would go with HTML5.1 as opposed to HTML5 coding; HTML5.1 will not only validate as 5.1 but but not as 5 whereas HTML5 will ONLY validate as HTMl5 and not as HTML5.1 several of the tags in HTML5 have been dropped in HTML5.1.

For the latest information as of April 9,2014 on HTML5.1 visit the following link
http://www.w3.org/html/wg/drafts/html/master/

To see not only progressive rendering in action but also a web site that validates as HTML5.1
visit my web site; www.starbase-alpha.com

Ethan Feldman

JW Player Support Agent  
0 rated :

Well, since the mime type is not correct, setting flash to primary masks the issue for the time being.

JW Player

User  
0 rated :

Thank you Willie Meier and Ethan JWPlayer,

I called the folks who support my test server again and they are unable to add video/mp4 .mp4 because their server console software is proprietary and in my opinion, therefore out-of-date.
However, the current version of the web page code, as per the example above, plays in their computer's FF, IE and Chrome.

On my Laptop, it plays in Chrome but not in FF or IE, getting "File could not be played." They said that this is a local association issue on my Laptop, not with their server. So, I checked the association for .mp4 (MPEG-4) and it is associated with Quicktime. I tried changing its association to Real Player, Windows Media Player, AVS Media Player, VLC Media Player and still the same result in FF & IE, getting "File could not be played."

Maybe the people who host my live site can get the MIME entered/changed and it will work from there. I apologize, but, the saga continues.

Ethan Feldman

JW Player Support Agent  
0 rated :

Do you know if the server is Apache based or not?

JW Player

User  
0 rated :

Thank you Ethan JWPlayer, it is a Windows server.

JW Player

User  
0 rated :

"... it is a Windows server."

Unfortunate. On an Apache system, you could fix the problem yourself.

Off-topic, but do you actually need Windows hosting? It's virtually always more expensive, and tougher to manage.

Ethan Feldman

JW Player Support Agent  
0 rated :

Yeah, if it was Apache, you could just add a .htaccess file and be done with it. I know it is possible to add MIME TYPEs to a Windows/IIS server as well, but I have never done it before since I am already using Apache.

JW Player

User  
0 rated :

Thank you MisterNeutron and Ethan JWPlayer, I've been reading further in the Forum and I saw several discussions regarding .htaccess file.

Ethan Feldman

JW Player Support Agent  
0 rated :

Np

This question has received the maximum number of answers.