Note: You are currently viewing documentation for Moodle 2.0. Up-to-date documentation for the latest stable version is available here: MP3 player.

MP3 player: Difference between revisions

From MoodleDocs
No edit summary
(added template)
 
(34 intermediate revisions by 14 users not shown)
Line 1: Line 1:
<div id="nolabel" style="overflow:auto;height:1px;">
{{Working with media}}
{{Improve}}
The multimedia filter embeds MP3 files in a streaming player made with Flash. The big MP3 player is used when an MP3 file is added as a [[Resources|resource]]. The small player is used when an MP3 file is linked to from within a forum post or another resource or activity using the [[HTML editor]].


:''Note:'' The MP3 Player used in Moodle 1.9 and the media filter does not recognise .m4a and .aac file types.


[http://www.action-meds.com cheap butalbital]
==MP3 player rates==
[http://www.5stardrugs.com buy tramadol]
[http://www.24-7pills.net tramadol online]
[http://www.american-meds.net butalbital discount]
[http://www.amazing-pills.com butalbital cheap]
buy tramadol online. online tramadol from our pharmacy, taking tramadol buy information tramadol, side effects tramadol, purchase tramadol online. cod online tramadol, tramadol india, cheap tramadol online, tramadol online, pharmacy online store
tramadol 50 mg. low price tramadol, tramadol pain treatment - tramadol hcl 50? - 120 tramadol. tramadol sales, buying cod tramado l, tramadol for humans, cheap tramadol online, overdose tramadol. order tramadol pictured tramadol pill tramadol seizure. cod tramadol cod, tramadol pdr, order pharmacy tramadol. buy prescription tramadol drug tramadol - tramadol side.
is tramadol a, order tramadol online, tramadol hcl, tramadol drug test .tramadol uses order tramadol overnight paypal tramadol
tramadol com tramadol tablets tramadol no perscription remove tramadol.
[http://20six.co.uk/cheaptramadol cheap tramadol]
[http://20six.co.uk/ordertramadol order tramadol]
[http://20six.co.uk/onlinetramadol1 online tramadol]
[http://20six.co.uk/tramadolonline tramadol online]
[http://20six.co.uk/tramadoldiscount tramadol discount]
[http://20six.co.uk/purchasetramadol purchase tramadol]
[http://20six.co.uk/ordersoma order soma]
[http://20six.co.uk/onlinesoma1 online soma]
[http://20six.co.uk/online-viagra online viagea]
[http://20six.co.uk/orderviagra order viagra]
[http://20six.co.uk/cheapviagraonline cheap viagra online]
[http://20six.co.uk/purchaseviagra purchase viagra]
[http://20six.co.uk/cheap-ultram cheap ultram]


[http://spaces.msn.com/cheap-tramadol/ cheap tramadol]
To ensure that MP3 files are played at the correct rate, sample rates of 11, 22 or 44 kHz should be used. Constant Bit Rate (CBR) files are also recommended over Variable Bit Rate (VBR) files. Please note that sample and bit rates are not the same thing. See the two sections MP3 sample rates and MP3 bit rates below.
[http://spaces.msn.com/buy-viagra/ buy viagra]


SEO: UndoneHeaven
==MP3 sample rates==


[http://www.replicahours.com rolex replica]
Flash Player can produce undesirable results if the MP3 files are not encoded at a sample rate that is not a multiple of 11.025 kHz. In other words, the acceptable sample rates are:
[http://www.replicahours.com/index.php?cPath=51_25 fake rolex daydate]
[http://www.replicahours.com/index.php?cPath=29 replica swiss]
[http://www.google.com/search?sourceid=navclient&gfns=1&ie=UTF-8&q=replicahours replicahours]
buy replica cheap best price rolex discounf fake. watches fake watch online store using paypal fedex rolex replicahours. order rolex replica now. cheap wholesale fake rolex online free shipping. 80% discount rolex replica and replicas watches. woman how to adjust a chronometer watch authorized rolex dealer, rolex watches rolex dial rolex oyster perpetual date reloj panerai replica en usa rolex watches serial numbers rolex woman daytona daytona watch replica panerai watch rolex 50th anniversary rolex daytona paul newman replica rolex buy rolex watches. ladies rolex yachtmaster white dial faux. rolex daytona manual cellini rolex for sale pictures of rolex oyster perpetual datejust rolex rolex gmt-master ii buying rolex on line fake rolex daytona gold on silver how to tell fake tag rolex oyster perpetual new tell. Replica rolex? Swiss made replica rolex watch! Cost does fake much rolex rolex presidential rolex. Rolex dials rolex sea dweller. Rolex  tudor fake rolex turkey datejust oyster perpetual rolex man rolex submariner cosmograph daytona oyster professional rolex? Datejust rolex rolex replica rolex fake rolexes for sale. Rolex submariner for sale, rolex yachtmaster! Explorer ii rolex preowned rolex watch? Cheap rolex watch, rolex daytona 116520 forum rolex. 18k gold replica ex part rolex daytona review rolex submariner 50 anniversary rolex cellini replica rolex watch fake rolex omega?


[http://www.customsoftwarenow.com custom software development]
* 11.025 kHz
Software Development, custom software development, offshore  software development, outsourcing software development


[http://www.thepublish.com press release]
* 22.050 kHz
press release, articles, business directory, ezines, classifieds, job search,business free  b2b search advertising aerospace defense agriculture airlines automotive chemicals computers electronics semiconductors energy utilities


[http://www.ez-agents.com wholesale atv]
* 44.100 kHz
</div>
 
==MP3 bit rates==
 
Flash player cannot play MP3 files with a bit rate higher than 128 kbps, which is the default bit rate for most MP3 encoders. For use on the web, lower bit rates are recommended because they download faster and take up less server disk space. Experiment with different bit rates to get the smallest file you can with acceptable sound quality. Common bit rates are:
 
* 32 kbps, mono - speech only
 
* 40 kbps, mono - music might sound OK
 
* 40 kbps, stereo - speech only
 
* 48 kbps, mono - some music sounds OK
 
* 48 kbps, stereo - speech only
 
* 56 kbps, stereo - some music sounds OK
 
* 64 kbps, stereo - most music sounds OK
 
 
==Flash security settings==
 
Security changes in Flash player 7 may result in the MP3 player not playing MP3 files hosted on a remote server. This issue may be resolved by writing a cross-domain policy for the remote server and/or each user changing their global security settings in the Flash player settings manager.
 
===Cross-domain policy===
 
To create a cross-domain policy, save the code below as ''crossdomain.xml'' and place the file at the root (public_html or httpdocs) of the remote server.
 
<pre>
<?xml version="1.0" encoding="utf-8"?>
<cross-domain-policy>
<!-- Place top level domain name -->
<allow-access-from domain="www.yoursite.com" secure="false"/>
<allow-access-from domain="www.yoursite.com" to-ports="80,443"/>
<allow-http-request-headers-from domain="yoursite.com" headers="*" />
<!-- use if you need access from subdomains. testing/www/staging.domain.com -->
<allow-access-from domain="*.yoursite.com" secure="false" />
<allow-access-from domain="*.yoursite.com" to-ports="80,443" />
<allow-http-request-headers-from domain="*.yoursite.com" headers="*" />
</cross-domain-policy>
</pre>
 
Please refer to [http://www.macromedia.com/devnet/flash/articles/fplayer_security.html Macromedia - Developer Center: Security Changes in Macromedia Flash Player 7] for further details.
 
===Global security settings===
 
Please refer to [http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager02.html Macromedia - Flash Player Help: Global Privacy Settings Panel].
 
==MP3 player customisation==
 
It is possible to customise the colours of the the MP3 player via CSS included in the theme. For example
 
<code>
.mp3flowplayer_backgroundColor {color: #000000;}
</code>
 
modifies the background colour, see http://flowplayer.org/documentation/skinning/controlbar.html?skin=default for more colour properties, any property that ends with '...Color' can be overridden via CSS.
 
For accessibility reasons it is not allowed to initiate an automatic playback.
 
==Inserting sounds into questions==
[http://moodle.org/mod/forum/discuss.php?d=33335 In a forum, Joseph Rézeau] offer this
 
There are various ways to insert links to media files in Moodle.
You can
*(1) insert a link which when clicked will open a new window activating your computer's default media player (e.g. quicktime, realaudio, windows media player, etc.)
*(2) OR rely on the automatic insertion of the small Flash player built-in Moodle
*(3) OR both!
 
The [[Filter]] for multimedia must be on and Flash enabled. The HTML editor needs to be active for the question content.
#In the question text, type "Listen to this sound and select your answer."
#Select by highlighting "this sound"
#Click on the Insert Web Link button
#Give the address of your MP3 file, either a web address or an internal address of a file located in the moodledata directory of your Moodle course.
#Toggle HTML source and view the result, something like this: Listen to <nowiki> < a href="http://moodle/file.php/2/audio/trumpet.mp3" >this sound< /a > </nowiki>and say what you heard. (See NOTE about filenaming below!)
#Now type in the rest of your question data, depending on its type (MCQ, short answer, etc.).
#The result will look something like (3) in screen dump below.
#The student has a choice of using the Flash player (with its minimum buttons) or clicking on the link, which will open the computer's default media player, with all its buttons.
 
Note: Unfortunately it would be best to give filenames to the
sounds that do NOT contain the information you are asking about.
There are several ways the page viewer can see that name and see
"Aha, it's a trumpet!"
 
(2) Method to get the Flash player only, and no link to open an external player
 
#In the question text, type "Listen to this sound xxx and say what you heard."
#Select xxx
#Click on the Insert Web Link button
#Give the address of your MP3 file, either a web address or an internal address of a file located in the moodledata directory of your Moodle course.
#Toggle HTML source and view the result, something like this: Listen to <nowiki>< a href="http://moodle/file.php/2/audio/trumpet.mp3" >xxx< /a > </nowiki> and say what you heard.
#Delete xxx
#The result will look something like (2) in screen dump below.
#The student can only use the Flash player.
 
[[Image:Quiz question MP3 example.JPG|thumb|center|Example of Quiz Question with Sound]]
 
==Tips and tricks==
===Temporarily disable the MP3 player ===
* You can surround your link with <nowiki><nolink></nolink></nowiki> tags to stop any kind of processing including the multimedia filters that create the MP3 player. This may be useful when linking to external MP3 files with characters in their name that Flash cannot understand.
:''TIP:''  Be careful with the no link tags or any user written HTML code.  The [[HTML editor]] may eliminate some of your work if you use the HTML editor in the future.  The HTML editor tries to tidy things up for the new user but this can frustrate an experienced user of HTML code.
:''NOTE:'' This does not work for something like the following inserted into a [[Web page|web page resource]]. (Add a resource > Compose a web page)
<nowiki><nolink><a href="http://theExampleServer.com/file.php/55/mp3_2/mt16/The_file.mp3"> The_file.mp3</a></nolink></nowiki> , however you can stop the multimedia filter from showing when linking to files by adding ?forcedownload=1 to the end of the link.
 
==See also==
* [[Audio in Moodle]] for  links to audio MP3 encoders, audio programs, modules and plugins for Moodle
* Using Moodle [http://moodle.org/mod/forum/discuss.php?d=43297 Multimedia resource filtering on the course page] forum discussion
* Using Moodle [http://moodle.org/mod/forum/discuss.php?d=14663 mp3 player rates] forum discussion
 
* [[Podcasting]]
 
[[Category:Administrator]]
[[Category:Teacher]]
[[Category:Filter]]
[[Category:Audio]]
 
[[pl:Odtwarzacz_MP3]]
[[ja:MP3プレイヤー]]

Latest revision as of 13:24, 23 September 2011

This page really needs improving. Please see the page comments for suggestions of what to include, then remove this template when you're done.

The multimedia filter embeds MP3 files in a streaming player made with Flash. The big MP3 player is used when an MP3 file is added as a resource. The small player is used when an MP3 file is linked to from within a forum post or another resource or activity using the HTML editor.

Note: The MP3 Player used in Moodle 1.9 and the media filter does not recognise .m4a and .aac file types.

MP3 player rates

To ensure that MP3 files are played at the correct rate, sample rates of 11, 22 or 44 kHz should be used. Constant Bit Rate (CBR) files are also recommended over Variable Bit Rate (VBR) files. Please note that sample and bit rates are not the same thing. See the two sections MP3 sample rates and MP3 bit rates below.

MP3 sample rates

Flash Player can produce undesirable results if the MP3 files are not encoded at a sample rate that is not a multiple of 11.025 kHz. In other words, the acceptable sample rates are:

  • 11.025 kHz
  • 22.050 kHz
  • 44.100 kHz

MP3 bit rates

Flash player cannot play MP3 files with a bit rate higher than 128 kbps, which is the default bit rate for most MP3 encoders. For use on the web, lower bit rates are recommended because they download faster and take up less server disk space. Experiment with different bit rates to get the smallest file you can with acceptable sound quality. Common bit rates are:

  • 32 kbps, mono - speech only
  • 40 kbps, mono - music might sound OK
  • 40 kbps, stereo - speech only
  • 48 kbps, mono - some music sounds OK
  • 48 kbps, stereo - speech only
  • 56 kbps, stereo - some music sounds OK
  • 64 kbps, stereo - most music sounds OK


Flash security settings

Security changes in Flash player 7 may result in the MP3 player not playing MP3 files hosted on a remote server. This issue may be resolved by writing a cross-domain policy for the remote server and/or each user changing their global security settings in the Flash player settings manager.

Cross-domain policy

To create a cross-domain policy, save the code below as crossdomain.xml and place the file at the root (public_html or httpdocs) of the remote server.

<?xml version="1.0" encoding="utf-8"?>
<cross-domain-policy>
<!-- Place top level domain name -->
<allow-access-from domain="www.yoursite.com" secure="false"/>
<allow-access-from domain="www.yoursite.com" to-ports="80,443"/>
<allow-http-request-headers-from domain="yoursite.com" headers="*" />
<!-- use if you need access from subdomains. testing/www/staging.domain.com -->
<allow-access-from domain="*.yoursite.com" secure="false" />
<allow-access-from domain="*.yoursite.com" to-ports="80,443" />
<allow-http-request-headers-from domain="*.yoursite.com" headers="*" />
</cross-domain-policy>

Please refer to Macromedia - Developer Center: Security Changes in Macromedia Flash Player 7 for further details.

Global security settings

Please refer to Macromedia - Flash Player Help: Global Privacy Settings Panel.

MP3 player customisation

It is possible to customise the colours of the the MP3 player via CSS included in the theme. For example

.mp3flowplayer_backgroundColor {color: #000000;}

modifies the background colour, see http://flowplayer.org/documentation/skinning/controlbar.html?skin=default for more colour properties, any property that ends with '...Color' can be overridden via CSS.

For accessibility reasons it is not allowed to initiate an automatic playback.

Inserting sounds into questions

In a forum, Joseph Rézeau offer this

There are various ways to insert links to media files in Moodle. You can

  • (1) insert a link which when clicked will open a new window activating your computer's default media player (e.g. quicktime, realaudio, windows media player, etc.)
  • (2) OR rely on the automatic insertion of the small Flash player built-in Moodle
  • (3) OR both!

The Filter for multimedia must be on and Flash enabled. The HTML editor needs to be active for the question content.

  1. In the question text, type "Listen to this sound and select your answer."
  2. Select by highlighting "this sound"
  3. Click on the Insert Web Link button
  4. Give the address of your MP3 file, either a web address or an internal address of a file located in the moodledata directory of your Moodle course.
  5. Toggle HTML source and view the result, something like this: Listen to < a href="http://moodle/file.php/2/audio/trumpet.mp3" >this sound< /a > and say what you heard. (See NOTE about filenaming below!)
  6. Now type in the rest of your question data, depending on its type (MCQ, short answer, etc.).
  7. The result will look something like (3) in screen dump below.
  8. The student has a choice of using the Flash player (with its minimum buttons) or clicking on the link, which will open the computer's default media player, with all its buttons.
Note: Unfortunately it would be best to give filenames to the
sounds that do NOT contain the information you are asking about.
There are several ways the page viewer can see that name and see
"Aha, it's a trumpet!"

(2) Method to get the Flash player only, and no link to open an external player

  1. In the question text, type "Listen to this sound xxx and say what you heard."
  2. Select xxx
  3. Click on the Insert Web Link button
  4. Give the address of your MP3 file, either a web address or an internal address of a file located in the moodledata directory of your Moodle course.
  5. Toggle HTML source and view the result, something like this: Listen to < a href="http://moodle/file.php/2/audio/trumpet.mp3" >xxx< /a > and say what you heard.
  6. Delete xxx
  7. The result will look something like (2) in screen dump below.
  8. The student can only use the Flash player.
Example of Quiz Question with Sound

Tips and tricks

Temporarily disable the MP3 player

  • You can surround your link with <nolink></nolink> tags to stop any kind of processing including the multimedia filters that create the MP3 player. This may be useful when linking to external MP3 files with characters in their name that Flash cannot understand.
TIP: Be careful with the no link tags or any user written HTML code. The HTML editor may eliminate some of your work if you use the HTML editor in the future. The HTML editor tries to tidy things up for the new user but this can frustrate an experienced user of HTML code.
NOTE: This does not work for something like the following inserted into a web page resource. (Add a resource > Compose a web page)

<nolink><a href="http://theExampleServer.com/file.php/55/mp3_2/mt16/The_file.mp3"> The_file.mp3</a></nolink> , however you can stop the multimedia filter from showing when linking to files by adding ?forcedownload=1 to the end of the link.

See also