MM2 - Audio Files not playing

MM2 - Audio Files not playing

by Tim Edsell -
Number of replies: 8

v 2.9, Galaxy s6, 3G connection

I have some embedded audio clips in a Book's chapter.  The audio bar is displayed, yet when I tap on the play button, nothing can be heard.   After a few minutes, I receive an Error message saying "Error downloading module files.   Some files may be missing".  The blue circle goes round and round.  I also receive and "Error reading chapter of book".

All of these sound files play fine when listened to on a laptop/pc.

Any ideas?

Thanks

Average of ratings: -
In reply to Tim Edsell

Re: MM2 - Audio Files not playing

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

Thanks for reporting this problem, I've created this issue:

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

One question, those audio files are part of the course files or are pointing to files in another site or server?

would it be possible to have a backup of this activity so we can test?

Regards, Juan

In reply to Juan Leyva

Re: MM2 - Audio Files not playing

by Tim Edsell -

Juan,

Sorry for the tardy reply.

The audio files are stored under my "Private Files" and are linked to them via clicking on the "media" icon, browse repositories and select the file.

I can give you access via a user test account.  Please let me know.

Thanks!

In reply to Tim Edsell

Re: MM2 - Audio Files not playing

by Frédéric Massart ⭐ -
Picture of Core developers Picture of Plugin developers Picture of Testers

Hi Tim,

I had a look at this issue too, it seems that this is coming from network security feature most likely set up by your system administrator. When I accessed your site, I could not listen to the audio clips either. The requests to those files were forbidden with the following message:

HTTP/1.1 407 Proxy Authentication Required

I am guessing that the request is allowed providing that my proxy details have been set as you'd expect them, which is not something the app has control over. Another thing I noticed is that the URL to your files are pointing to a draft area "draftfile.php". That does not seem right, draft files are temporary and should not be used to serve content. Technically you might be able to access them if you were the user uploading them, but drafts are usually deleted with 4 days. The URL pointing to your resource should contain "pluginfile.php" in order to work both in a browser, and in the app.

That problem can often arise when copying content from one place to another.

I hope this helps.

Cheers,

Fred

In reply to Frédéric Massart ⭐

Re: MM2 - Audio Files not playing

by Tim Edsell -

Fred,

Thank you for your insight.

I am the sys admin (newbie) and have doing all my checks with that login which is why it worked for me.  My big mistake!

I re-linked the files and works fine from my tester acct. on laptop/PC.  I do not know what parameter I need to check and set as sys admin to allow this functionality.  Will you point me to the correct document to research as I'm unsure what the name of the parameter is which needs to be set?

Thanks!
In reply to Tim Edsell

Re: MM2 - Audio Files not playing

by Frédéric Massart ⭐ -
Picture of Core developers Picture of Plugin developers Picture of Testers

Hi Tim,

I tested again and I can now access a few audio files from the app, unfortunately not all of them. That would be great if I could get access to the source of that page book to have a better idea of what is happening. Could you grand me permission to edit that one activity? I don't intend to change anything, just to check how the content was set-up.

Cheers!

Fred

In reply to Frédéric Massart ⭐

Re: MM2 - Audio Files not playing

by Tim Edsell -

Fred,

I'll PM you the access info.

Tim

In reply to Tim Edsell

Re: MM2 - Audio Files not playing

by Frédéric Massart ⭐ -
Picture of Core developers Picture of Plugin developers Picture of Testers

Great! I had a quick look, and took the liberty of taking a backup (which lead me to find out that the files are aliases/shortcuts). It seems to be a bug due to the media player as the module seems to be set up exactly as it should.

I have reported this here: MOBILE-1160

Feel free to follow that issue!

Cheers,

Fred

In reply to Frédéric Massart ⭐

Re: MM2 - Audio Files not playing

by Tim Edsell -

Fred,

I read the write up of the issue.  I thought that all of the links were alias/shortcut.  Might you PM me the ones that aren't or where you identified as being played through the media player.

Also, in thinking ahead, what about audio/media files that might be embedded in a quiz question via a link (alias/shortcut) from files stored in Private Files?  I haven't done that, yet, but am planning to.

Thanks for the help!