I want to use jw player on my site but when i start it with F5 with visual studio, i can see the page but the player is a WHITE BOX and if i right-click it it says Movie not loaded. I checked all paths, and i also use Firebug for script debugging - no errors. I used a lot this player while programming in PHP but I have no problem.

Thank you in advance.

how did you solve this?

Haha... this is 2 years old.... however I think I used object embed and that's why it didn't work. I should really work using javascript method. That seems to me the most reliable way.

well i put the javascript and css code in a master page file:

<%@ Master Language="VB" CodeFile="MasterPage.master.vb" Inherits="MasterPage" %>

<!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 runat="server">
<title></title>
<link href="Style.css" rel="stylesheet" type="text/css" />
<!--
<asp:ContentPlaceHolder id="head" runat="server">
</asp:ContentPlaceHolder>-->

<!--player-->
<style type="text/css">
div.playercontainer
{
position: absolute;
top: 200px;
left: 400px;
width: 427px;
height: 260px;
z-index: 0;
}

div.swfcontainer
{
position: absolute;
top: 352px;
left: 437px;
width: 80px;
height: 80px;
/* border: solid 1px #808080; */
z-index: 1;
}
</style>

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/swfobject/2.1/swfobject.js"></script>
<!--<script type="text/javascript" src="mediaplayer/swfobject.js"></script>-->

<script type="text/javascript">
</script>

<script type="text/javascript">
var flashvars =
{
'streamer': 'lighttpd',
'file': 'mediaplayer/video.flv',
'title': 'Main Video',
'description': 'This is the main video.',
'skin': 'mediaplayer/player.swf',
'repeat': 'always',
'stretching': 'exactfit',
'icons': 'false',
'frontcolor': '86C29D', // text & icons (green)
'backcolor': '849BC1', // playlist background (blue)
'lightcolor': 'C286BA', // selected text/track highlight (red)
'screencolor': '000000', // screen background (black)
'autostart': 'false'
};

var params =
{
'allowfullscreen': 'true',
'allowscriptaccess': 'always',
'wmode': 'opaque',
'bgcolor': '#FFFFFF'
};

var attributes =
{
'name': 'playerId',
'id': 'playerId'
};

swfobject.embedSWF('mediaplayer/player.swf', 'player', '427', '280', '9.0.124', false, flashvars, params, attributes);
</script>

<script type="text/javascript">
var flashvars =
{
};

var params =
{
allowfullscreen: 'false',
allowscriptaccess: 'always',
wmode: 'transparent'
};

var attributes =
{
name: 'swfId',
id: 'swfId'
};

swfobject.embedSWF('mediaplayer/links.swf', 'swf', '380', '180', '9.0.124', false, flashvars, params, attributes);
</script>
</head>

<body>
<form id="form1" runat="server">
<div>
<asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server">

</asp:ContentPlaceHolder>
</div>
</form>
</body>

and here is the relevant section of the page that is using the master page and the player is dwelling inside it:

<div id="page_content">

<!--start of middle column-->
<!--player-->
<div id="playercontainer" class="playercontainer">
<a id="player" class="player" href="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash">Get the Adobe Flash Player to see this video.</a>
</div>
<div id="swfcontainer" class="swfcontainer">
<a id="swf" class="swf" href="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash">Get the Adobe Flash Player to see this video.</a>
</div>
<!--end of middle column-->
</div>

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.