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

Forums

/

Player not showing

7 replies [Last post]

Hi,

I'm using the player in Moodle course but lately I've been encountering a problem setting it up, whether for mp3 or flv. I always get the "this wil be replaced" text, although I indicate the path for the .js .swf and the .mp3 or .flv file.
I want to use the player in different moodle courses as well as in a wiki page.
What I don't get here, is that in my first moodle course I previously installed an mp3 player with a playlist that works fine. I proceeded the same way to install sound and video but it didn't work. That is I first uploaded the .js .swf and .mp3 or .flv files to each course and wiki and change the path parameters in the code. I just checked on two different Moodle sites, with the same code (except for paths) it works only in the older course
Anybody could help?

I post her the code I use

<script type='text/javascript' src='http://moodle.tkukoulu.fi/file.php/1510/Lecteur/swfobject.js'></script>

<div id='mediaspace'>This text will be replaced</div>

<script type='text/javascript'>
  var so = new SWFObject('http://moodle.tkukoulu.fi/file.php/1510/Lecteur/player.swf','mpl','450','200','9');
  so.addParam('allowfullscreen','true');
  so.addParam('allowscriptaccess','always');
  so.addParam('wmode','opaque');
  so.addVariable("skin", "http://moodle.tkukoulu.fi/file.php/1510/Lecteur/simple.swf");
  so.addVariable('file','http://moodle.tkukoulu.fi/file.php/1510/music_-_copie_13.xml');
  so.addVariable('backcolor','FFFFFF');
  so.addVariable('frontcolor','3333FF');
  so.addVariable('lightcolor','FF3333');
  so.addVariable('screencolor','FFFFFF');
  so.addVariable('playlist','bottom');
  so.addVariable('autostart','true');
  so.addVariable('repeat','always'); 
  so.addVariable('shuffle','true');
  so.write('mediaspace');
</script>

Thanks for any help.

Josselin

 
I get a bunch of errors if I try to download your swfobject.js file. You player code is for SWFObject v1.5; are you absolutely sure that swfobject.js is the v1.5 file. Open it with a text editor to check the version.

I don't see anything wrong with your code, but you will have to check the availability of your JS, player, playlist, and skin files. I can't because of the security certificate problem.

Hi Hobbs,

thank you a lot for this, you were all right, my version object was 2.1. I changed it to 1.5 and got my players working. I checked this morning only for my moodle courses, but I guess there's shouldn't be any problem on the wiki.

Thanks again,

Josselin

Hi again,

the mystery still goes on. Moodle courses as I posted earlier work fine, the problem now is the wiki. I still get the "This text will be replaced" message, eventhough the object.js is v.1.5. Below I post the code I use for adding a video. The code also comes from the wizard, but I noticed that putting it in the wiki added this to it : //<![CDATA[.....//]]>

In the wiki I can add a video from youtube, but I'd like to use your player as I can configure it.

You can go and check the wiki, it should open without problem, maybe for accessing the editing option you'll need to register.
Here's the link to the page where I try to embed video:
http://turku-france.wikispaces.com/Vid%C3%A9os

here's the link to the page where I uploaded files for the wiki.
http://turku-france.wikispaces.com/file/list

If you want to try and add some media files, you'll have to click the "edit this page button" and the click on the "screen" button, not the "<>" one.

Thanks for any help

Josselin

<script type='text/javascript' src='http://turku-france.wikispaces.com/file/detail/swfobject.js'>
</script>
<div id='mediaspace'>This text will be replaced</div>
<script type='text/javascript'>
//<![CDATA[
  var so = new SWFObject('http://turku-france.wikispaces.com/file/detail/player.swf','mpl','329','224','9');
  so.addParam('allowfullscreen','true');
  so.addParam('allowscriptaccess','always');
  so.addParam('wmode','opaque');
  so.addVariable('file','http://turku-france.wikispaces.com/file/detail/Parlez-moi_de_la_pluie.flv');
  so.addVariable('frontcolor','3333FF');
  so.addVariable('lightcolor','FF3333');
  so.addVariable('screencolor','FFFFFF');
  so.write('mediaspace');
//]]>
</script>

Hi again,

Ethan from Longtail help me out for this one. My paths were not accurate.

Thanks a lot you people from LT, you're absolutely wonderfully & geniuosly helpful!

Might have been a bit too much, but you deserve it.

Josselin

No Problem Josselin, have a good day! :)

Ethan! WHAT is this //<![CDATA[.....//]]> all about?! Why does it get inserted??

I'm getting the same problem at:

http://www.wilsondailyprep.com/blog/video-tips-2/double-passage/

HELP.

Mike

 
Anything enclosed in a CDATA tag is not interpreted as code.

Example, if I have HTML tags within XML tags, I don't want the HTML tags to be interpreted as XML tags, so I would enclose them in a CDATA tag.

<title><![CDATA[This is the <b>Author's</b> name.]]></title>

In the case of JavaScript, the CDATA tag is used for compatibility with very old browsers. It's not needed with any of the modern browsers.

BTW, it's not really necessary for you to SPAM the Forum with many posts about the same issue in different threads. One post is really enough.