Another flash player

Another flash player

by henny jellema -
Number of replies: 6
Beste Gordon,

Recently I’m using the flash player of Pyg

http://pyg.keonox.com/flashmp3player but in Moodle I don’t get sound.

Here is an example:

http://jellema.etine.nl/mod/hotpot/view.php?id=847
( I have made you teacher in this course )

Does it mean that I cannot use this player in Moodle or do you or anybody else a good tip for me?

Many thanks beforehand! Henny.
Average of ratings: -
In reply to henny jellema

Re: Another flash player

by Gordon Bateson -
Picture of Core developers Picture of Peer reviewers Picture of Plugin developers

Hi Henny,
one way to to ensure your sounds files play correctly is to use absolute URLs to specify the sound file and the media player.

The site you linked to has examples where the URL of the media player is specified in the following tag:

  • <param name="movie" value="player.swf" />

The HotPot module is programmed to check the "value" in PARAM tags, so it will detect this relative URL and convert it to an absolute URL. I have not seen your site, but I guess that the player itself appears.

However, the sound file is initiated by some javascript:

  • <a href="javascript:void(0);" onclick="document.mp3player.SetVariable('url', 'myfolder/mysound.mp3');">Play sound 1</a>

The HotPot module has not been programmed to detect the relaitve URL in such a case, so it will not be converted to an absolute URL and the browser will not be able to get the sound file. If you change this relative URL to an absolute URL, then the sound will play.

The absolute URL for the sound might be something like:

where "99" is the course id for the Moodle course which contains the sound file.

best regards
Gordon


By the way, I can't remember my username or password for you Moodle site I'm afraid, and when I tried to have a reminder email sent, I got the following error message:
  • error sending password change confirmation email sad

In reply to Gordon Bateson

Re: Another flash player

by Gordon Bateson -
Picture of Core developers Picture of Peer reviewers Picture of Plugin developers
Hi Henny,
after a little more investigation, I think that perhaps you don't have to worry about absolute URLs if you specify the sound using a PARAM tag such as:
  • <param name="FlashVars" value="file=myfolder/mysound.mp3&amp;autolaunch=false" />
Please "Example 4" on the following page:
all the best
Gordon
In reply to Gordon Bateson

Re: Another flash player

by henny jellema -
Beste Gordon,

Thank you very much for your quick and attentive reply ( as always).
I'm going to follow your advise and we will see what happens.

Hart. gr. van Henny.
In reply to henny jellema

Re: Another flash player

by Glenys Hanson -
Hello Henny,

I've found a very simple workaround. In the settings for the quiz, I answer "No" to "Force media plugins" and the original Flash player is used instead of the Moodle one.

Hope this helps.

Cheers,
Glenys

In reply to Glenys Hanson

Re: Another flash player

by henny jellema -
Beste Glenys, ( how are you by the way)

I do that always too, but it didn't work this time.

I have some kind of history with the sound things. As you see Gordon has helped me with Martin's player ( see this forum 21 june 2005 ) with the macromedia player ( 15 dec. 2005 ) and now I have troubles again with Pyg's player.

Gordon, about having not the correct link. I can't find a mistake there.

Can it be this? In my Moodle I cannot upload more as 8 mb. The lesson with Pygs player is much larger. So I cut the content of the folder in 6 zip files. Zip.1, zip.2 etc.. I upload these zip files one after one to Moodle. Once in Moodle I unzip all these files and put them all in one folder again, like they originally were 'at home'. Can it be that links get lost in this procedure? Because the pictures I use in the feedback also do not show up. As they do perfect here:
http://www.digischool.nl/oefenen/hennyjellema/nederlands/tpr/s=z/les.2/les.2.01-10.1.htm

and not here:

http://jellema.etine.nl/mod/hotpot/view.php?id=847

Does anybody know how much the maximal upload mb is for Moodle? I can ask my systemmanager to increase that, but if it is impossible I don't want to bother him with it. Then I have to upload all these files one by one I'm afraid. sad

Hart. groeten van Henny.