Audio flash player problem

Audio flash player problem

Glenys Hanson -
回帖数:8
Hello Gordon and Martin,

Hope you had a good weekend. 眨眼

Yes, this is exactly the same problem as I have with the video flash player, but it only occurs inside Moodle. That is, the Flash player takes the focus and does not surrender it back to the browser when it should (thanks, Martin, for the right vocabulary) in Firefox but works normally in IE.

I've uploaded an example to your site, Gordon, here: 16.htm

Here's the same exercise outside Moodle working normally: http://cla.univ-fcomte.fr/english/dictations/rodspeople/rods16_new/16.htm
with Martin's Flash player.

I'm using Hot Potatoes 6.2.0.8 (modified files).
The html code and the css validate.

Cheers,
Glenys

PS: I haven't been able to test the JQuiz scoring fix you suggested, Gordon, because our two Moodle administrators have both gone on holiday for a week.angry



回复Glenys Hanson

Re: Audio flash player problem

Martin Holmes -
This gives us something to go on. The player in the Moodle site (where does that come from, by the way?) causes the problem, but my ancient simple player doesn't. That suggests it's something in the player code, rather than the Flash plugin itself, which is causing the problem.

What happens if you use my old audio player inside Moodle?

Cheers,
Martin
回复Martin Holmes

Re: Audio flash player problem

Glenys Hanson -
Hi Martin,

I'll try that option tomorrow when I'm on a fast connection.

I've always assumed that inside Moodle, I should choose the Moodle options. There are so many different options (html file, Hot Pot file, absolute links, relative links, Moodle navigation or not, Moodle player or not ...) I must admit that I haven't tried out all the possible combinations. mixed

Cheers,
Glenys


回复Glenys Hanson

Re: Audio flash player problem

Martin Holmes -
So I take it that the player there is a Moodle player? If so, you could just use our player instead (or another one with the features you like, but without the Firefox bug).

If it is a Moodle player, it should be open source, so comparing the code for my player and that player should help us find the problem. I think this is the only code in my player:

_global.SndFile = "no_sound_specified.mp3";
_global.SndFile = TheSound;
_global.Snd = new Sound();
_global.Snd.loadSound(SndFile, false);
_global.SndPos;
_global.Playing = false;
gotoAndStop("frmPaused");

_global.Snd.onSoundComplete=function(){
 _global.SndPos = 0;
 _global.Playing = false;
 gotoAndStop("frmPaused");
}

function PlayTheSound(){
 if (_global.Playing == false){
 _global.Snd.start((_global.SndPos/1000), false);
 _global.Playing = true;
 gotoAndStop("frmPlaying");
 }
}

function StopTheSound(){
 _global.SndPos = 0;
 _global.Snd.stop();
 _global.Playing = false;
 gotoAndStop("frmPaused");
}

function PauseTheSound(){
 _global.Playing = false;
 gotoAndStop("frmPaused");
 _global.SndPos = _global.Snd.position;
 _global.Snd.stop();
}

回复Martin Holmes

Re: Audio flash player problem

Glenys Hanson -
Hi Martin and Gordon,

Great! There's no problem if I use Martin's player
Here's the same exercise with the problem: Moodle player

Thanks, Martin.

Hope this helps to find the problem with the Moodle player.

Cheers,
Glenys
回复Glenys Hanson

Re: Audio flash player problem

Martin Holmes -
It would be handy to get a look at the Moodle player code. Does anyone know where that would be available?

Cheers,
Martin
回复Martin Holmes

Re: Audio flash player problem

Gordon Bateson -
Core developers的头像 Peer reviewers的头像 Plugin developers的头像

Hi Martin,
the source code for the Moodle mp3 player is inside "filter/mediaplayer/mp3player.fla.zip" on your Moodle site.

hope that helps!
Gordon

 

回复Gordon Bateson

Re: Audio flash player problem

Martin Holmes -
I'm not an admin on the Moodle server, unfortunately, so I can't see it.

Cheers,
Martin
回复Martin Holmes

Re: Audio flash player problem

Gordon Bateson -
Core developers的头像 Peer reviewers的头像 Plugin developers的头像
> I'm not an admin on the Moodle server, unfortunately, so I can't see it

Oh I see. Sorry about that.

Another way to get the zip file would be to download a Moodle package to your PC, and unzip the whole of Moodle on your PC, and then locate the mediaplayer folder.

Alternatively, you could get the source file straight from the Moodle CVS depository here:

If you are confident experimenting with the Flash file source and can find a workaround, that would be marvelous. Otherwise, we could ask the creator of Moodle's mp3 player, Andrew Walker, for help.

all the best
Gordon