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

html5 not playing in firefox


html5 play good with firefox..even i can seek video but in chrome html5 not playing..only playing for some video .mp4 but this one .mp4 not playing because of h256 codec i think..
in flash mode both player plays but i cant seek..if i remove startparam code and then seek..video instant said file cannot be played
that my jwplayer code

<div id="myElement">Loading the player...</div>

<script type="text/javascript">
jwplayer("myElement").setup({
provider: "http",
height: 537,
width: 900,
skin: "/jwplayer/skin.xml",
stretching: "exactfit",
file: "<?php echo $file->getNextDownloadPageLink(); ?>",
primary: "flash",
"http.startparam": "start",



});

</script>

and link that i tried make it play with .mp4 video
http://kalhfash.tk/ru/

26 Community Answers

fungamer

Best Answer 

i fix it!! i replace
<?php echo $file->getNextDownloadPageLink(); ?>
with
<?php echo $file->generateDirectDownloadUrl(); ?>
and now working in both browsers !

View in conversation

MisterNeutron

User  
0 rated :

The native <video> tag supports only H.264. See the supported media formats:

http://support.jwplayer.com/customer/portal/articles/1403635-media-format-reference

fungamer

User  
0 rated :

what about <video> tag..as u see my problem is not in tag..

MisterNeutron

User  
0 rated :

JW Player simply calls the browser's native <video> tag, or drops back to Flash if the browser doesn't support <video>. JW Player doesn't actually have its own "player" built in - it's just a steering script. Neither HTML5 nor Flash will support anything other than H.264.

fungamer

User  
0 rated :

in the wizard player of jwplayer site the same video plays in chrome too with html5 and can seek without problem

Andrew

JW Player Support Agent  
0 rated :

If you’re grabbing a file without an extension, you’ll need to specify this with the type: ‘ABC’ where ABC is replaced with the extension. If this PHP file is outputting an MP4 file, you’ll need to specify mp4 here.

fungamer

User  
0 rated :

i didnt understand well ur answer :S

fungamer

User  
0 rated :

div id="myElement">Loading the player...</div>

<script type="text/javascript">
jwplayer("myElement").setup({
provider: "http",
height: 537,
width: 900,
skin: "/jwplayer/skin.xml",
stretching: "exactfit",
file: "http://kalhfash.tk/ru/_www.xrysoi.se_One_Piece_654.mp4?pt=K5grprogUiUxgSAYrNsYgg0LNn2KptC00%2Bo%2BPYOiR7M%3D",
primary: "flash",
"http.startparam": "start",



});

</script>
the mp4 file taking with full file name if u source code

MisterNeutron

User  
0 rated :

You're using some attributes that simply don't exist, and not using the one that you probably need. Try this:

<script type="text/javascript">
jwplayer("myElement").setup({
height: 537,
width: 900,
skin: "/jwplayer/skin.xml",
stretching: "exactfit",
file: "<?php echo $file->getNextDownloadPageLink(); ?>",
type: "mp4"
});
</script>

There is no "provider" attribute, you don't need "startparam" if it's HTML5 (and it's not http.startparam anyway), and it's not advisable to push Flash if it's not necessary (why use old technology if you don't have to?).

fungamer

User  
0 rated :

in html5 firefox play well..even seek working too
in chrome file could not be played in html5
if i use primary: "flash",
both browsers can play but cant seek..if i seek it gives file could not be played..and i i click again start from begin..
with startparam as i have it i give the attribute to cant seek if video is not loading..
but i want make it seek with flash whenever u want or in html5 make chrome to play without problem.. :/
i dont know why in html5 chrome cannot be play :/

MisterNeutron

User  
0 rated :

We can't debug it, because you keep forcing the page to use Flash. Leave it set so that it will use HTML5 first. Then we can try it in Chrome and maybe figure out why it's not working.

Andrew

JW Player Support Agent  
0 rated :

Yes, we will need a link here.

fungamer

User  
0 rated :

okay now i set it to default..html5 ! in firefox plays well without problem..u can seek
but in chrome file could not be played !

fungamer

User  
0 rated :

http://kalhfash.tk/ru/_www.xrysoi.se_One_Piece_654.mp4
link is here !

MisterNeutron

User  
0 rated :

Wrong MIME type. The MP4 is being delivered by the server as "text/html" instead of "video/mp4."

fungamer

User  
0 rated :

MIME Type ▾ Extension(s) Remove
User Defined MIME Types video/mp4 mp4 m4v f4v H264
this is from .htaccess thati give command

and this is default
video/mp4 mp4 mp4v mpg4
from webhost

as i see the mime is video/mp4 mp4 i dont see any text/html in mime the only one text/html is
text/html .shtml .shtml .shtml .shtml html htm shtml

MisterNeutron

User  
0 rated :

I have to confess that I don't understand what's happening here. It appears that the first call to the video correctly returns "video/mp4." But then there's a redirect, and the subsequent call returns "text/html." See screenshot:

http://misterneutron.com/ss000309.png

There are also some mysterious console error messages. Start with a simpler, more stripped-down page. There's an awful lot of extraneous stuff happening on that page, and that's just going to make debugging very difficult.

fungamer

User  
0 rated :

that happend only in chrome or in firefox is the same..because in firefox it plays without problem

Andrew

JW Player Support Agent  
0 rated :

Indeed, there are a few redirects happening here, which seems to complicate the process. Again, stripping things down would be a great help with troubleshooting.

fungamer

User  
0 rated :

in firefox work well..only in chrome has that problem

MisterNeutron

User  
0 rated :

But until you get things stripped down, you're not going to be able to figure out where the problems are. This is just Debugging 101.

The fact remains that JW Player has no problem playing a properly-encoded MP4, delivered with the correct MIME type, in any browser. If you're having a problem, it's because of something unusual in your setup.

Start with the simplest case, then gradually add the rest of your page elements until you discover which of them is kicking the player in the butt.

fungamer

User  
0 rated :

actual the problem is kalhfash.tk/ru is reconized as html
and chrome when try plays get mp4 mime but in really reconized it as html
but firefox getting only the mp4 when try playing

<script type="text/javascript">
jwplayer("myElement").setup({
height: 537,
width: 900,
skin: "/jwplayer/skin.xml",
stretching: "exactfit",
file: "<?php echo $file->getNextDownloadPageLink(); ?>",



});

</script>
so here is somehow making file got direct link of video but i dont know how to make it...
my webhost support said in litespeed maybe cant work but in apache maybe will work wihout problem..

so i dont know what to do next chaning this with what
<?php echo $file->getNextDownloadPageLink(); ?>
or how make chrome reconize it as mp4 and not as html
if i add the file to direct file kalhfasth.tk/onepiece.mp4 is play well in both..but all my script when u upload it add files in public_html/files/**/aefaegaegae file without extension
but pull from it as video

MisterNeutron

User  
0 rated :

I'll try one more time. See the code I posted above. I think that if you add:

type: 'mp4'

to the attributes, it might fix things. But no guarantees - your page is just too much of a mess to be sure of anything.

fungamer

User  
0 rated :

http://kalhfash.tk/rr/pantseta.mp4
but where think is here..that play in both browser well without problem...
only video like animes encode in h264 etC has that problem

fungamer

Best Answer  User  
0 rated :

i fix it!! i replace
<?php echo $file->getNextDownloadPageLink(); ?>
with
<?php echo $file->generateDirectDownloadUrl(); ?>
and now working in both browsers !

fungamer

User  
0 rated :

thank you both for your time...have a nice day :)

MisterNeutron

User  
0 rated :

Yes, we both had a feeling that the redirections were doing bad things. Glad it turned out to be a relatively easy fix.

This question has received the maximum number of answers.