Playing mp3 audio files in mobile App (v. 2.8)

Playing mp3 audio files in mobile App (v. 2.8)

by Oliver Bay -
Number of replies: 9

Hi out there!

While the document for Moodle Mobile App shows a picture with a lovely audio player, I cannot play my mp3 files, which are working in moodle 3 well, on my iPhone 6. Instead of this the page with the embedded audio file shows up like this:

draftfile.php?file=%2F5%2Fuser%2Fdraft%2F489493997%2FSi4_CD1-Track02_Bild1.mp3

Is there anyone with an idea?

Any help is appreciated.

TIA

Oliver

Average of ratings: -
In reply to Oliver Bay

Re: Playing mp3 audio files in mobile App (v. 2.8)

by Juan Leyva -
Picture of Core developers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers

Hi,

Moodle Mobile 2.9 should be available for iOs now, please can you check with that new version? (We did some fixes in the player)

Juan

In reply to Juan Leyva

Re: Playing mp3 audio files in mobile App (v. 2.8)

by Oliver Bay -

Thank you Juan, but unfortunately there is no change. I put a sceenshot to this post.

The HTML-Code is like this:

<p>Bild 1</p>
<p><a href="http://moodle.mmc-ob.de/draftfile.php?file=/5/user/draft/958753228/Si4_CD1-Track02_Bild1.mp3">draftfile.php?file=%2F5%2Fuser%2Fdraft%2F489493997%2FSi4_CD1-Track02_Bild1.mp3</a></p>

It correctly shows up in Firefox and Safari, even in Safari of the iPhone.

Are ther any settings in Moodle 3 or the Mobile App which are maybe not correct?

TIA

Oliver

Attachment IMG_2736.jpg
In reply to Oliver Bay

Re: Playing mp3 audio files in mobile App (v. 2.8)

by Juan Leyva -
Picture of Core developers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers

Hi Olivier,

I'm thinking this is a bug in Moodle (that is returning via web services different information that for web).

Could you give us access to a course with contents embedded in that way? We just need a student user account, maybe a separate course or a duplicated one

Juan

In reply to Juan Leyva

Re: Playing mp3 audio files in mobile App (v. 2.8)

by Oliver Bay -

Hi Juan,

no problem.

The direct link is

http://moodle.mmc-ob.de/mod/page/view.php?id=121

I will send you the login information via message. OK?

Oliver


In reply to Oliver Bay

Re: Playing mp3 audio files in mobile App (v. 2.8)

by Juan Leyva -
Picture of Core developers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers

Hi Oliver,

thanks, this will be fixed once this bug https://tracker.moodle.org/browse/MDL-53175 is solved (is a bug in Moodle not in the app).

Please, notice that the issue title is not similar what is happening to you but with the changes we made it should work for you (it will require to upgrade your Moodle instance though)

Juan

In reply to Juan Leyva

Re: Playing mp3 audio files in mobile App (v. 2.8)

by Oliver Bay -

Hi Juan,

thank you. I can confirm, that the problem is solved.

Wish you luck and success with the MobileApp. Great work, I think!!!

Oliver

In reply to Juan Leyva

Re: Playing mp3 audio files in mobile App (v. 2.8)

by Oliver Bay -

Hi Juan,

could it be, that this Moodle bug still exists for displaying PDF-Files? I have a simular problem now as before with the audio files: Now I cannot display a PDF file in Mobile App while I can display it in the Moodle desktop version.

The direct link is: http://moodle.mmc-ob.de/mod/resource/view.php?id=89

You can use the same login data as before.

TIA

Oliver

In reply to Oliver Bay

Re: Playing mp3 audio files in mobile App (v. 2.8)

by Dani Palou -
Picture of Core developers Picture of Moodle HQ Picture of Peer reviewers Picture of Plugin developers

Hi Oliver,

the problem is that right now the app looks for the file extension in the URL of the files, so if a URL doesn't contain the file extension then it's going to be downloaded without extension. It was implemented like this to make it faster, simpler and decrease the network usage. We have an open issue to improve it:

https://tracker.moodle.org/browse/MOBILE-1455

New Moodle versions should automatically add the extension of a file when you upload it, or at least it does it for me.

In your case, the URL to the file doesn't contain the extension. Android is able to open the file without having the extension (at least in my phone), but iOS can't.

As a temporary solution, you could modify the file to add the extension to the file name, that way it should work in the Moodle Mobile app.

Kind regards,

Dani

Average of ratings: Useful (1)
In reply to Dani Palou

Re: Playing mp3 audio files in mobile App (v. 2.8)

by Oliver Bay -

Thank you Daniel for the help.  With your explanation I could fix it.

The point was not to use the drag 'n drop interface in Moodle desktop version, but the "add file" icon instead. In the first case Moodle cuts the file extension automatically.

Regards,

Oliver