glad to hear the sound files and HotPot chains are working.
To understand why the HotPot module is compatible with some media players and not with others, it is necessary to understand the the HotPot module tries to convert relative URLs to absolute URLs. This is necesssary because the URL of a HotPot activity is not the right one for the browser to use when converting relative URLs to absolute URLs.
The URL for a HotPot activity usually looks something like this:
Let us say your quiz contains a relative URL for an image file such as the following:
Then the browser will try to generate an absolute URL for the image, using the URL for the page as its base URL. i.e. the brower would send a request for:
Of course, there is no such file, so the image doesn't show.
To get around this problem, the HotPot module attempts to change all the relative URLs in a quiz to absolute URLs. In the above example, the <IMG> tag is changed to:
<IMG src=" http://someserver.org/moodle/file.php/2/my-pretty-picture.gif">
Then the browser doesn't have to make any changes to URLs, it can just send of the absolute URL it is told to use.
The HotPot module has been programmed to look for the relative URLs in the following situations:
- stylesheets: <link href="...">
- scripts: <script src="...">
- links: <a href="...">
- images: <img src="...">
- media player settings: <param value="...">
- <param name="url" value="my-sound-file.mpg">
- <param name="player" value="my-media-player?url=my-sound-file.mpg">
- <param name="FlashVars" value="TheSound=my-sound-file.mpg">
By the way, you if you want to have a separate player in each folder of quizzes that's fine, but you could also have just one player (e.g. the Moodle media) and make all your quizzes use the same URL to refer to that.
One final note regarding changing the media players in quizzes that you have already made. If you have DreamWeaver, you can use the find and replace regular expressions I gave in an earlier post on this thread. There may be other programs which can do batch find and replace and which would use some similar expressions, but please be warned that regular expressions can take a lot of time (and patience!) to get just right. It may be quicker to cut and paste from one of the "-moodleplayer.html" files I put on your site.
hope this helps
P.S. I hope to enhance the module over the summer and the quizzes and player that you have kindly introduced me to, will be very useful for testing. Thanks!