Order Now AdSolution Sign Up | Login » Bits on the Run Sign Up | Login »

Forums

/

Can't see my .wmv video in any browser

2 replies [Last post]

Hi.

I bought a license but I'm having some problems.

I have a .wmv movie (with image and sound). I uploaded: swfobject.js, wmvplayer.js and wmvplayer.xaml and the video to my servers.

I have the following source code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>

<script type='text/javascript' src='silverlight.js'></script>
<script type='text/javascript' src='wmvplayer.js'></script>
</head>

<body>

<div id='container'></div>

<script type='text/javascript'>
var cnt = document.getElementById('container');
var src = '/jw/embed/wmvplayer.xaml';
var cfg = {height:'462',width:'350',file:'http://www.mywebsite.com/myvideo.wmv',showstop:'true'};
var ply = new jeroenwijering.Player(cnt,src,cfg);
</script>

</body>
</html>

and I just can't see it in any browser.

Can you please tell me what I'm doing wrong?

Thank you.

I have the same issue. I just get a white box where the silverlight player is at. However, it works fine on my Mac - go figure that Mac works better than IE on a PC.

The problem here was

var src = '/jw/embed/wmvplayer.xaml';
replace with
http://www.yoursite.com/wmvplayer.xaml'