making an external JS-based SWF player work

EB,


I also am a great fan of the JW player. JW happens to be Dutch as I am, but has now his company in NYC.


But to your question.


To make things simple i build an example with explanation on the pages.
Did you know that Lectora also uses a JW player? Only they use an older type, but still it works well.


I compared the traditional way of adding a mp3 file as 'add audio' and i made it with the code you asked for. If you go in the html code you can see what code i put in the external html in lectora.


My example you find here: http://edugram.nl/mp3-example/


If you have questions contact me: evert@edugram.nl


 


Evert


 


lmsnfcu said:


I found a great open source mp3 and flv player - the JW Player at http://www.longtailvideo.com/. I've been able to create a simple HTML file (outside of Lectora), and it worked beautifully, pointing to an mp3 file on a file server. Very simple, too - just a player swf with no changes needed (player.swf), a javascript file (swfobject.js), and my html file with a small script. However, in Lectora, when I create an external HTML object with the code, it simply doesn't work. I'm not sure what's preventing this from working, but maybe can I assume there's a conflict with one of Lectora .JS files and the swfobject.js file.? The player itself displays, but the mp3 doesn't play (unlike the test outside of Lectora). The script I paste into the external html object is below. Please note, there's no header script, just what you see below in the body.


 


[script type='text/javascript' src='swfobject.js'][/script]


 


[div id='mediaspace']This text will be replaced[/div]


 


[script type='text/javascript']


var so = new SWFObject('player.swf','mp1','328','25','9');


so.addParam('allowfullscreen','false');


so.addParam('allowscriptaccess','always');


so.addParam('wmode','opaque');


so.addVariable('file','file:///G:/WIN/PALAPPS/Lectora/audioplayertestg/audio/B01.mp3');


so.addVariable('autostart','true');


so.write('mediaspace');


[/script]


 


Could anyone please help me get this to work when publishing from Lectora? Thanks, EB

Discussions have been disabled for this post