drag and drop with sound

drag and drop with sound

henny jellema -
回帖数:11
Beste Gordon, ( or others)

One of my favorite exercises for language teaching is this one:

http://www.digischool.nl/oefenen/hennyjellema/engels/vbo-basic/chapt.1/vbo-1.chapt.1.05.htm

and here a bigger one:

http://www.digischool.nl/oefenen/hennyjellema/frans/4.nieuwkleren/14.nofe.htm

The student has to reconstruct a conversation by listening.

But how so sad. If I put these things in Moodle there are no sound player things at all. Only empty tickets....


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

Is there something I could do?

Hgv, Henny.
回复henny jellema

Re: drag and drop with sound

Gordon Bateson -
Core developers的头像 Peer reviewers的头像 Plugin developers的头像
hi Henny,
unfortunately I can't get into your site because I have forgotten the password for the username you set up for me 伤心

I tried asking your Moodle to send me a new password but the mail system is not set up on your server 伤心

Could you reset my password to something and then email the new password to me?

Alternatively, please could you upload the quiz, media files and player onto my server. Then I will definitely be able to tell you how to fix it.
thanks!
Gordon
回复Gordon Bateson

Re: drag and drop with sound

henny jellema -
Beste Gordon,

Thank you for wanting to look at it.

I did send your users account again ( hope I did it properly and you recieved it)
I gave you the password 'gordon'. No capitals.
And I made you teacher in 'engels basic'.

That is were the exercise with the drag-drop is. It is exercise vbo-1.chapt1.1.05.htm

The player ( Martins' flashplayer ) is in the correct folder, because other exercises like vbo-1.chapt.1.04.htm have the same player and are working fine.

I hope you find something :- ))

Hgv, Henny.

回复henny jellema

Re: drag and drop with sound

Glenys Hanson -
Hello Henny,

I like your exercise pairing up oral questions and answers. Why didn't I think of that?

What I do with audio files on Moodle, is when setting up the HP settings, I put:

Force media plugins: No

And there's no problem. Not even when I have 16 Flash players on the same page.


Cheers,
Glenys




回复Glenys Hanson

Re: drag and drop with sound

Gordon Bateson -
Core developers的头像 Peer reviewers的头像 Plugin developers的头像
Hi Glenys,
that's a good point - when using your own player it is important to have "Force media plugins" set to "No". I checked Henny's quiz and there is no problem there.

Rather the problem was caused by the fact that this quiz has a separate javascript file. The HotPot module only converts URLs in the main quiz file. The relative URLs used to specify the player and sound files in the separate javascript file are not converted to absolute URLs, and this is why the players do not show in Henny's quiz.

Henny, there are several solutions, but the simplest is to recreate the html file for the quiz and this time do NOT create a separate javascript file
  1. on your PC, start up JMatch and open the quiz's source file, the ".jmt" file
  2. on the menus, select Options -> Configure Output, then click the "Other" tab
  3. uncheck the box at the bottom of the page marked "Create a separate linked file containing the javascript code"
  4. click the "OK" button, to save the changed settings
  5. recreate the html file and upload it to Moodle
From what I can see, the following quizzes in the "moodlezip" folder were created with a separate javascript file, and may cause similar problems if they contain relative URLs to images, sound files and media players:
  • vbo-1.chapt.1.04.htm
  • vbo-1.chapt.1.05.htm
  • vbo-1.chapt.1.06.htm
  • vbo-1.chapt.1.07.htm
  • vbo-1.chapt.1.08.htm
  • vbo-1.chapt.1.12.htm
  • vbo-1.chapt.1.13.htm
  • vbo-1.chapt.1.14.htm
  • vbo-1.chapt.1.15.htm
  • vbo-1.chapt.1.16.htm
  • vbo-1.chapt.1.17.htm
Hgv,
Gordon

P.S. By the way Henny, thanks for resetting my password. I was able to login and change it to something more private. I'll try not to forget it this time blush
回复Gordon Bateson

Re: drag and drop with sound

henny jellema -
Beste Glenys and Gordon,


Glenys, thank you for thinking with me. But I check like you, always plug-in things when there is trouble with sound. And indeed it often can be solved there.


Gordon, thank you for finding out. At least I know what to do.

I seperate always the java-scripts automatically ( since Martin made that possible) because I have had more than once a lazy student who opened the html source and copied simply the answers from there.

But with a sound as vbo-1.chapt.1.05.htm will that be impossible, ( because the student can not know the names I give to my soundfiles ) so I'm going not to do that anymore in sound exercises.

There again, thank you for your very quick help.

Hgv, Henny.

P.s., In Utrecht ( in the centre of the Netherlands ) at April 19 we're organizing a so called Aardappel beurs. ( in Dutch Potatoe = Aardappel ) It's a day with workshops, presentations and an Award for the Golden Potatoe. There is a workshop "HP in Moodle" by Peter-Anne Wissema.
What a pity Japan is that far away...: - (( otherwise you could come!
回复henny jellema

Re: drag and drop with sound

Gordon Bateson -
Core developers的头像 Peer reviewers的头像 Plugin developers的头像
Hi Henny,
I can see it would be useful to keep the separate javascript file. You could still do that if you use absolute URLs to specify the media file and player.

I will try to make sure the new HotPot module can be made to check the associated javascript file (and CSS) files for URLs and convert them where necessary.

I also intend to give the new HotPot module some Flash players which will make the quizzes a lot more secure, and completely defeat any attempts to look at the source. These quizzes would have to be run from the quizzes' XML files - i.e. not the html files.

It is very exciting news about the "Aardapel beurs" in Utrecht. I would love to come, but I'm afraid I cannot make it this year. To tell the truth, there are other meetings and conferences I would love to come to this year too in Europe such as Antwerp CALL 2008 (in Belgium), AILA 2008 (in Essen, Germany) and EuroCALL 2008 (in Budapest, Hungary). However, I have decided not to go to these wonderful events this year. Instead, I will concentrate on polishing the code for the new version of the HotPot module (HotPot v3.0), and on producing materials which will show off the features and potential of the new module.

I definitely intend to come to Europe in 2009 though. I would like to meet some of the great European Moodlers and Hot-Potters in person and attend some of the prestigious European conferences. Wow - I get very excited thinking about that.

all the best
Gordon
回复Gordon Bateson

visiting

henny jellema -
Beste Gordon,

Anyhow, let us know when you are in Europe. We will organize it that you can meet as much Moodles and Hot-Potters as possible!

Apart from that, I just am corresponding with Martin Holmes about a little on-line speech at our Aardappelbeurs from him. Maybe we can organize that with you too? After all, an important part of the day is "Hot Potatoes importing in Moodle"

Don't feel obliged. It's just an idea...

Hgv, Henny.
回复Gordon Bateson

Re: drag and drop with sound

henny jellema -
Beste Gordon, Glenys,

I did not sperate the java-script any longer, but still no sound. It looks to me as if the exercise is picking up another player. ( macromedia or so? )

As you can see:
http://jellema.etine.nl/mod/hotpot/view.php?id=940

I expected to get this player:
http://jellema.etine.nl/mod/hotpot/view.php?id=891

It's in the same series and folder and there is normal sound. And the player looks the same as in my browser at home. Have you any idea why the player is getting a black background and doesn't give sound?

Hgv, Henny.


回复henny jellema

Re: drag and drop with sound

Gordon Bateson -
Core developers的头像 Peer reviewers的头像 Plugin developers的头像
Dear Henny,
you are right. The HotPot module was inserting the standard Moodle player because the "Force media plugins" setting for this HotPot was set to "Yes".

I have changed the "Force media plugins" to "No" and now the quiz displays using the "hbs_mp3_player.swf" player, which is what you wanted I think.

best regards
Gordon
回复Gordon Bateson

Re: drag and drop with sound

henny jellema -
Beste Gordon,

Thank you for finding out. Indeed that helps.
What also has confused me and kept me for a while from the solution is the fact that this kind of exercise doesn't give sound in Mozilla/Firefox but it only does in IE.
A bit strange isn't it hè, since Moodle is Open Source and so on...
For me it is not reallly a problem: at my school there is only IE. ( which is bad enough in many cases! )

Have a Happy Easter!

Hgv, Henny.
回复henny jellema

Re: drag and drop with sound

Gordon Bateson -
Core developers的头像 Peer reviewers的头像 Plugin developers的头像
Hi Henny,

this problem is caused by the fact that IE likes <object> tags and Firefox likes <embed> tags. To make a media player that will be displayed in both browsers you need to use both kinds of tags.

It is common to arrange the tags as follows:

<object> ... settings for IE ... <embed> ... settings for Firefox ... </embed></object>

Notice that the <embed> block is completely enclosed by the <object> block.

Generating these kind of tags by hand is tedious and error-prone, so I usually copy and paste some that work and then change just the url of the media file.

The new HotPot module can easily insert many kinds of media players so when it is released (probably in April), it will make your working life much easier !

all the best
Gordon