Ask questions and get good answers on mb.jQuery.components

Hey, you can change the mp3 files with

 $('#m1').mb_mAPchangeFile('audio/the_rain.mp3',true,'The Rain');

but how to change ogg files? I tried to change the class where the ogg file is linked, but the player didn't stop and change.

asked May 26 '11 at 15:16

chris's gravatar image

chris
16

closed Jun 08 '11 at 15:53

Matteo%20Bicocchi's gravatar image

Matteo Bicocchi ♦♦
1776129

The question has been closed for the following reason "The question is answered, right answer was accepted" by Matteo Bicocchi Jun 08 '11 at 15:53


Okay, first: my mp3 Change code is wrong. Thats the right one:

$('#m1').mb_mAPchangeFile('audio/the_rain.mp3',false,'The Rain');

Second: after searching in the source code I found the reason why there is a "false". The syntax of the query is: (mp3,ogg,name) so the code for change ogg files is

$('#m1').mb_mAPchangeFile(false,'audio/the_rain.ogg','The Rain');

or

$('#m1').mb_mAPchangeFile('audio/the_rain.mp3','audio/the_rain.ogg','The Rain');

greets Chris

answered May 30 '11 at 13:52

chris's gravatar image

chris
16

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Tags:

×6
×1

Asked: May 26 '11 at 15:16

Seen: 241 times

Last updated: Jun 08 '11 at 15:53

jQuery main site - Matteo Bicocchi