through an API function of the JW PLAyer the entire code is here
(you can get a working example at
http://www.jeroenwijering.com/?page=wizard&example=24)
-
<!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>Testing Title</title>
-
<script type="text/javascript">
-
var player = null;
-
var currentItem = 0;
-
-
function playerReady(obj)
-
{
-
player = gid(obj.id);
-
player.addControllerListener('ITEM', 'itemMonitor');
-
player.addModelListener('STATE', 'stateMonitor');
-
};
-
-
function itemMonitor(obj)
-
{
-
currentItem = obj.index;
-
};
-
-
function stateMonitor(obj)
-
{
-
//...get title
-
if(obj.newstate == 'PLAYING')
-
{
-
gid('title').innerHTML = 'Title:' + player.getPlaylist()[currentItem]['title'];
-
}
-
}
-
-
function gid(name)
-
{
-
return document.getElementById(name);
-
};
-
</script>
-
</head>
-
<body>
-
<table>
-
<tr>
-
<td>
-
<script type="text/javascript" src="swfobject.js"></script>
-
<div id="player">This text will be replaced</div>
-
-
<script type="text/javascript">
-
var width=323;
-
var height=267;
-
var so = new SWFObject('player.swf','mpl','323','267','9');
-
so.addParam('allowscriptaccess','always');
-
so.addParam('allowfullscreen','true');
-
so.addParam('flashvars','&file=asx.xml&autostart=true&repeat=list');
-
so.write('player');
-
</script>
-
-
<div id="title"></div>
-
</td>
-
</tr>
-
</table>
-
</body>
-
</html>
-
The xml file is
-
<asx version="3.0" >
-
<title>General Music ASX playlist</title>
-
-
<moreinfo href="http://www.emile.com"/>
-
-
<entry>
-
<title>ασγ|1.00904.jpg</title>
-
<ref href="../player_files/videos/YouTube - 301 kai simera!(den antexw).flv" />
-
<moreinfo href="http://www.bigbuckbunny.org/" />
-
</entry>
-
<entry>
-
<title>a2</title>
-
<ref href="../player_files/videos/bunny.flv" />
-
<moreinfo href="http://www.bigbuckbunny.org/" />
-
</entry>
-
<entry>
-
<title>a3</title>
-
<ref href="../player_files/videos/YouTube - Alice Cooper - Poison.flv" />
-
<moreinfo href="http://www.bigbuckbunny.org/" />
-
</entry>
-
-
-
-
</asx>
-
with the replaceHTML property I replace the contents of a div with the contents of the title tag of each song, since anywhere else even inside the javascript I can write greek, the problem is how to write them in the asx file I believe the problem lies there