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

Windows Phone 7 & 7.5 This Video Cannot Be Played


I basically took the demos exactly as they are. Set up the code exactly as in the demo and have android working, iphone, but windows phone 7 both emulator and a windows phone 7 come back with "This video Cannot be played."

Either I am missing something or there is a bug. Any ideas? Has anyone come across this I spent pretty much all day trying to get it to work on windows phone 7 with no luck.

9 Community Answers

JW Player

User  
0 rated :

It's all internal so can't really show off this on a serve. My only guesses are something in the video header file, or some server config issue.

I've inspected the output with fiddler & tamper and no errors are coming back from the server on the video - no errors are coming back in the player - just windows phone 7.

bc.. <div id="player1"></div>
<script type="text/javascript">

jwplayer("player1").setup({
skin: "video/skins/blueratio/blueratio.zip",
stretching: "fill",
flashplayer: "video/player.swf",
image: "video/preview.jpg",
width: 265,
height:240,
levels: [
{file: "video/video.mp4"},
{file: "video/video.webm"}
]
});

</script>


JW Player

User  
0 rated :

Try removing the comma at the end of height: 240
Some IE versions apparently don't like it.

Ethan Feldman

JW Player Support Agent  
0 rated :

It is ok to have the comma there in this case. IE just doesn’t like the last line to have one.

Without a link, it is a bit hard to debug.

Does http://www.longtailvideo.com/players/jw-flv-player/ work on your Win 7 phone?

JW Player

User  
0 rated :

I will check all of those suggestions when I get back to the house and can fire up the emulator. If it's something as simple as a comma that would be crazy....

JW Player

User  
0 rated :

It's not that crazy. It's code. Anyway, Ethan has already dismissed that as a solution and he's da man.
Post a link and all will be resolved, hopefully.

JW Player

User  
0 rated :

So went in and removed the , and as I thought won't work in anything now - Syntax error:

Uncaught SyntaxError: Unexpected identifier

As to Ethan's Question: Yeah - the link works in the windows phone 7 emulator. Which is why I decided to copy the code from there exactly. The only thing I can think is there is something wrong with my server.

I also took and moved everything off to another test site location http://www.clearsitedesigns.com/test.html - And the video works fine. So that tells me server configuration issue or something.. Least gives me a place to dig deeper with.

JW Player

User  
0 rated :

Following up a bit more so if anyone else comes across similar issues. Been looking into issues with JWplayer and tomcat to see if something needs to be configured in the conf/web.xml

Noticed when I looked at a good running example on windows phone 7 and the bad example on the server in question that the content type was not coming back as audio/mp4.

Investigating some server specific settings and hopefully can make some more head way on this tomorrow.

JW Player

User  
0 rated :

Followup:

So I went in and added some mimes that were missing to the web.xml in the tomcat server config and looks like the mime is coming back now and solved the problem. I would have thought this issue would have happened more with android earlier.

<mime-mapping>
<extension>mp4</extension>
<mime-type>video/mp4</mime-type>
</mime-mapping>
<mime-mapping>
<extension>webm</extension>
<mime-type>video/webm</mime-type>
</mime-mapping>
<mime-mapping>
<extension>ogg</extension>
<mime-type>video/ogg</mime-type>
</mime-mapping>

Ethan Feldman

JW Player Support Agent  
0 rated :

Cool, glad you got it.

This question has received the maximum number of answers.