mp3 filter

mp3 filter

Marcus Green
Vastuste arv 30
Core developers pilt Particularly helpful Moodlers pilt Plugin developers pilt Testers pilt
I am having problems getting the media filter to work and to show the flash player for mp3 files. I have moodle 1.5.1 installed and existing mp3 files play with no problem. New ones I add bring up the "you have chosen" browser dialog box. It seems like the filter is not recognising something about the newer files. I have looked at upper/lower case issues etc but cannot work out the problem. All *.mp3 files show up with a speaker icon implying that the system recognises the type of file. It doesn't seem to be a browser issue, as older mp3 files (ones I put up before I upgraded to 1.5.1 show up in the media player very nicely indeed. Any suggestions would be greatfully received as I intend to do add some more recordings to the course.
Keskmine hinnang: -
Vastuses Marcus Green

Re: mp3 filter

Helen Foster
Core developers pilt Documentation writers pilt Moodle HQ pilt Particularly helpful Moodlers pilt Plugin developers pilt Testers pilt Translators pilt

Hmm, are you having problems with the large mp3 player or the small player or both?

What happens when you try adding an existing mp3 file to a different section of your course?

Could you post a sample mp3 file that you are having problems with?

Vastuses Helen Foster

Re: mp3 filter

Marcus Green
Core developers pilt Particularly helpful Moodlers pilt Plugin developers pilt Testers pilt
This is a sawn off copy of one of my files that is giving me the problem.
Vastuses Marcus Green

Re: mp3 filter

Helen Foster
Core developers pilt Documentation writers pilt Moodle HQ pilt Particularly helpful Moodlers pilt Plugin developers pilt Testers pilt Translators pilt
Well both the large mp3 player and the small player are shown for your sample mp3 file in my Moodle 1.5.2 installation. Sorry I've no idea what the problem is. sad
Vastuses Helen Foster

Re: mp3 filter

Marcus Green
Core developers pilt Particularly helpful Moodlers pilt Plugin developers pilt Testers pilt
Many thanks for giving it a try. Thought I'd bump this message to see if anyone can hit me with a cluestick on how the filtering works.

I assume that it looks at the extension of the file/resource, and then loads the flash player accordingly. Can anyone point me to where in the code it looks at the file name.

To give a little history, my exisint/old mp3 files that I uploaded in earlier verisons of moodle work fine, but anything new I upload just gets processed as a dumb file with a dialog that asks what I want to run it in. Clues, hints, pointers?
Marcus
Vastuses Helen Foster

Re: mp3 filter

Marcus Green
Core developers pilt Particularly helpful Moodlers pilt Plugin developers pilt Testers pilt
Many thanks for giving it a try. Thought I'd bump this message to see if anyone can hit me with a cluestick on how the filtering works.

I assume that it looks at the extension of the file/resource, and then loads the flash player accordingly. Can anyone point me to where in the code it looks at the file name.

To give a little history, my exisint/old mp3 files that I uploaded in earlier verisons of moodle work fine, but anything new I upload just gets processed as a dumb file with a dialog that asks what I want to run it in. Clues, hints, pointers?

I am trolling through the mediafilter code at the moment, but hints are always helpful...

Marcus
Vastuses Marcus Green

Re: mp3 filter

Marcus Green
Core developers pilt Particularly helpful Moodlers pilt Plugin developers pilt Testers pilt
I am absolutly baffled. If I go into my site configuraion/filters option and make multimedia plugins inactive I still get exactly the same result, i.e. some stuff is filtered and I get the flash player, and the newer stuff isnt. I have even gone as far as to go into my directory structure and rename the mediaplugin directory, when that didn't work I moved the mediaplugin directory somethwere else. Fired up an alternative browser or two to see if it was a caching artifact and I am absolutly stumped. Actually it is 2.30 in the morning so that may be an artifact in my lack of understanding. Wild stabs in the dark and lateral input most appreciated....
Vastuses Marcus Green

Re: mp3 filter

Marcus Green
Core developers pilt Particularly helpful Moodlers pilt Plugin developers pilt Testers pilt
I think I have identified my problem. The mp3 files  that do not show up in the flash player had the proprty

"Put resource in a frame to keep site navigation visible"

 checked as on.

Once I unchchecked it the file runs in the flash player.

Many thanks for the feedback I have on this. Is this the type of thing that should go in some documentation, wiki?  Or perhaps another litte yellow question mark button that explains the implication of that check box.

I vote for the adoption of PHPDoc style comments for all coding.

 
Vastuses Marcus Green

Re: mp3 filter

Helen Foster
Core developers pilt Documentation writers pilt Moodle HQ pilt Particularly helpful Moodlers pilt Plugin developers pilt Testers pilt Translators pilt
Marcus, well spotted! Only having the mp3 file in the frameset is different behaviour from Moodle 1.4. thoughtful
Vastuses Helen Foster

Re: mp3 filter

Martin Dougiamas
Core developers pilt Documentation writers pilt Moodle HQ pilt Particularly helpful Moodlers pilt Plugin developers pilt Testers pilt
It's actually supposed to be a feature ... When the MP3 is in a frame Moodle gives control over playing the MP3 to the browser (eg Quicktime can play it)
Vastuses Martin Dougiamas

Re: mp3 filter

Marcus Green
Core developers pilt Particularly helpful Moodlers pilt Plugin developers pilt Testers pilt
Feature, bug whats the difference?
Just kidding, once I had realised what was going on I figured the way it worked was probably logical. However working on the "don't make me think" principle (or is that "assume the user is not very good at thinking"), I wonder if there is somewhere to point out the impact of that checkbox on filtering?.

By the way, I think that whole mp3 filtering/flash thing is absolutlely brilliant, wonderful and marvellous.

All Pumped for Moodle Moot 05
Vastuses Martin Dougiamas

Re: mp3 filter

Todd Johnson

I had the same problem as Marcus, on both a Mac and a Windows computer.  Luckily, I figured out the same solution he did, though sooner.  However, I would like to take advantage of the "feature" you imply, allowing my preferred media player to play an mp3 file.  How can I make that work?  (My university is using Moodle version 1.5.2)

Also, am I understanding that the media player Moodle selects, when I do not have the fle open in a separate frame, is a Flash player?  if so, does my site administrator have the option of selecting a different default player?

Any suggestions or info would be much appreaciated.

Vastuses Marcus Green

Re: mp3 filter

Eric Hagley
Sorry Marcus, but could you please tell me exactly where to find this check box. I would like to know as I can't find it! Many thanks, Eric
Vastuses Eric Hagley

Re: mp3 filter

Helen Foster
Core developers pilt Documentation writers pilt Moodle HQ pilt Particularly helpful Moodlers pilt Plugin developers pilt Testers pilt Translators pilt
Hi Eric,

The checkbox that Marcus refers to may be found in the window settings on the editing resource page.
Manus ScreenShot001.jpg
Vastuses Helen Foster

Re: mp3 filter

Eric Hagley
Thank you very much Helen. This however does not answer my particular question. The mp3 that I uploaded here as an attachement does not play in the browser but rather asks me whether I want to open it with an application or save it to disc. Previously when I right clicked on the link to open it in a new tab (in firefox/safari) ,it would do so and a quicktime player would play it. In explorer it would automatically play in a media player at the side of the browser. Now when I click it I'm asked to choose "open with an application or save to disc". This happens with the mp3 I have uploaded here both on my mac and windows machine at work. So it is not only my site. Again, I know that I can put a flash player in if I want to. I know how to do this. My problem is that I want students from around the world to upload mp3 files and I want other students to listen to these and reply to them in audio. If students are uploading the mp3s to a forum my understanding is that unless I allow them to embed (by changing the allowobjectembed in variables to yes) they won't be able to do so, but that if I do allow them to embed they will be able to see the files I have on the site (something I don't want them to be able to do!)
It is much slower to open all the files with an application.
I want students to be able to listen quickly to all the submissions to a forum. If they can open them in the browser this becomes possible. Sorry to keep bugging you all, but if anyone has any ideas, they would be greatly appreciated.
Kind regards,
Eric Hagley
Vastuses Eric Hagley

Re: mp3 filter

Val Brooks
Hi,
I wanted to do this and a very kind soul showed me how the other evening - you can use the 'link' function within a text box. Providing the multimedia filter is enabled on your version of Moodle (go to Configuration and then filters), you will see the file as a 'playline' which you can play without having to download it.
Hope that helps.
Vastuses Val Brooks

Re: mp3 filter

Eric Hagley

Val, thanks for your reply. I can see what you have done here and know how to do it. But it is making an extra step (more than one!) for students to do. My students from a variety of different countries already have plenty of work to do just to get the recording posted to the forum - that is all I want them to do. If, after they highlighted a word, they could push the "insert web link" button and browse their hard drive and upload the recording that way, well that would be great. At the moment, when a student clicks the "insert web link" they cannot do that. They obviously can't access site files either - I don't want them to be able to! But If they could browse their hard drive then of course I would be asking them to insert the link. That would be great if it could be achieved.

At the moment though, I think there should be some way of just clicking on the "mp3" and for it to start in a new tab (Safari/firefox) or on the side of the browser (explorer). That is what was happening with 1.4.x . I would like to know how it can happen in 1.5.2.

Again, any ideas would be greatly appreciated as there are already over a hundred student mp3 files on the site and the semester has only just started! I would like to listen to them without having to download them onto my computer!

Regards,

Eric Hagley

Vastuses Eric Hagley

Re: mp3 filter

Val Brooks
Hi Eric,
Interesting what you said there because I actually had trouble linking to your file - I downloaded it and saved it onto my hard drive and then tried link it from there which meant I had to upload it again but I wasn't able to ( I guess because of some restrictions that prevented me getting access to my hard drive) so..........
I actually made the link by right clicking on your mp3 file in your message, clicked on 'copy link location' and then pasted that into the box for the link and hey presto! it worked.
Is that what you want them to be able to do?
Val
Vastuses Eric Hagley

Re: mp3 filter

Tim VanSlyke
Eric,

I have been searching for a solution to the same problem. I teach ESL students who have limited English proficiency as well as limited computer proficiency, so I understand why you want to keep the number of steps for students to a minimum.

Have you found a solution to this since your last post? It would be great if the mp3 player would appear when an mp3 file is uploaded as an attachment to the forum post.
Vastuses Tim VanSlyke

Re: mp3 filter

Eric Hagley
I wish I had but unfortunately not. I created the attached file and leave it as a link to a resource at the top of my courses for students to use. It isn't perfect but it has helped my students to put the mp3 player in their postings. Hope it is of assistance. Use it freely.
All the best,
Eric

The "attached file" was bigger than the upload limit. I'll send it to you by mail. Eric
Vastuses Eric Hagley

Re: mp3 filter

Timothy Takemoto

Dear Eric Hagley

I posted a bug about this a while back because I agree that it would make it a lot easier for students to be able to post audio, and have a chat forum, if attachements were linked.

One way to get around the problem is to upload it as an attachment, click it to save the URL and then edit the post entering a link to the file that one has just attached, as here

BUT this is tremendously difficult for my students. They just would not do it.

I now realise that "put in a frame" prevents the player from appearing. I agree that mp3s on forums should be filtered. I think it would be a good idea if resources could be filtered on the course page too. I don't understand why  do not play. Confusion.

Tim

Vastuses Timothy Takemoto

Re: mp3 filter

Timothy Takemoto
In Internet explorer the plays well, but the does not play at all in the embedded media player.

In Firefox the first file plays automatically when the page is refreshed but the second one does not play at all.

The second file does play in Windows Media Player, and now that I have removed the "put in frame" for all my link resources, I find that it does play in the large MP3 player on a seperate page.

I am searching the forums. I used to have problems with using the wrong kind of mp3 files (at the wrong bit rates) that play too fast in flash but this seems to be different.

Fascinating. Now it when I embed it using Firefox, I find that I can only play it once! This is great. I have always wanted files that I can only play once. But I doubt if it is a reliable feature.

Vastuses Timothy Takemoto

Re: mp3 filter

Timothy Takemoto

Now I have found some files that do not play in flash or media player from my server (via moodle) but they do play when I click them on my hard disk.
Tim

Vastuses Timothy Takemoto

Re: mp3 filter

Timothy Takemoto
There does not seem to be any difference in the setting between these files

Vastuses Timothy Takemoto

Re: mp3 filter

Helen Foster
Core developers pilt Documentation writers pilt Moodle HQ pilt Particularly helpful Moodlers pilt Plugin developers pilt Testers pilt Translators pilt
Hi Tim,

I'm sorry I am confused by your findings... Please could you summarise the problem, perhaps providing sample files.
Vastuses Helen Foster

Re: mp3 filter

Timothy Takemoto

Thanks Helen
Some files play in windows media player but do not play in the flash media player, despite the fact that they seem to have the same settings (sample rate, bit rate).

The ability of the flash player to play mp3 files also seems to depend upon whether one uses the small or big mp3 player. Perhaps. Because in my course the first of the two files above is playable in the large mp3 player but not in the small one.

Of course, I may have some incorrect settings somewhere.

Tim

Vastuses Timothy Takemoto

Re: mp3 filter

Helen Foster
Core developers pilt Documentation writers pilt Moodle HQ pilt Particularly helpful Moodlers pilt Plugin developers pilt Testers pilt Translators pilt
Hi Tim,

Hmm... I've tested your mp3 files - they play fine in both the big and small mp3 players.

Just wondering whether you've made any changes to the following code in your theme config.php?
$THEME->resource_mp3player_colors = 
'bgColour=000000&btnColour=ffffff&btnBorderColour=cccccc&iconColour=000000&'.
'iconOverColour=00cc00&trackColour=cccccc&handleColour=ffffff&loaderColour=ffffff&'.
'font=Arial&fontColour=3333FF&buffer=10&waitForPlay=no&autoPlay=yes';

/// With this you can control the colours of the "big" MP3 player
/// that is used for MP3 resources.


$THEME->filter_mediaplugin_colors =
'bgColour=000000&btnColour=ffffff&btnBorderColour=cccccc&iconColour=000000&'.
'iconOverColour=00cc00&trackColour=cccccc&handleColour=ffffff&loaderColour=ffffff&'.
'waitForPlay=yes';

/// ...And this controls the small embedded player
Vastuses Helen Foster

Re: mp3 filter

Timothy Takemoto

Thank you very much Helen!

I have no idea why my audio is not playing right. I have not changed the theme but I am using the humboldt mac-freindly theme so there is a chance that someone else changed it. I will look into that. I have a 14 week course with 4 audio files per week. But some of the audio files do not play.

More simply, in my post above "There does not seem to be any difference in the setting between these files" do the files play for your here at moodle.org? They do not play for me. The flash player is there but nothing happens when I press the paly button.

Tim

Vastuses Timothy Takemoto

Re: mp3 filter

Helen Foster
Core developers pilt Documentation writers pilt Moodle HQ pilt Particularly helpful Moodlers pilt Plugin developers pilt Testers pilt Translators pilt
Hi Tim,

Regarding files 1 and 2 in your previous post, no they don't play in your post, however if they are downloaded then uploaded to my Moodle site then they play fine.

Let me try linking to them here from my Moodle site...




Hmm, is there perhaps an issue with your server permissions?

Edit: Please check the discussion Choppy audio with MP3 player? too.
Vastuses Helen Foster

Re: mp3 filter--HELP ASAP

Bhupinder Singh

Hi All,

I am unable to get the MP3 File to play after adding it as a resource in Moodle lesson.

I do not see the upladed and linked resource.

My multimedia plugin is activated

Can you help me in identifying where I am going wrong,

Garry