Extension talk:AudioPlayer2

From mediawiki.org
Latest comment: 10 years ago by Dave88008

Hi, I have followed the instructions for setting audioplayer2 but when I add the player it shows Sound file not found. I am specifying a http location within the player tags Could you help me with this?

Thanks Arnab

Hi, the extension as-is only supports files uploaded to the wiki itself, not general URL locations. It seems I didn't mention this. Supporting sound files at external locations is something, I haven't yet worked on. /UC
What do you mean by "uploaded to the wiki itself"? On the server? If so, what directory? Do you mean through the user interface for uploading images/files? I added "mp3" to the list of allowed file types in LocalSettings.php but still can't find the upload in Gallery of new file so it doesn't seem to have worked and don't even know if this is possible or the right thing to try. DaveL (talk) 20:04, 27 March 2014 (UTC)Reply

Hi, I have installed this extension but, I'm not sure if this is a problem with the extension's coding or the WordPress Audio Player files, but the text inside the player is not aligning correctly. When I click "play" the audio plays, but the timestamp in the far-right corner is cut off. It starts at 0:00 and as it begins playing, the digits get cut off.

Also, is there any way I can eliminate the default text "Track #1" and just leave it blank?

Thanks!

Streaming feature request[edit]

Is it possible to add capability to not only play mp3 uploaded to wiki site but also stream it from "example.org/sample.mp3"?

Fatal PHP error if file not found[edit]

I placed a holder player tag on every page as a time saving measure, I previsouly had no problems but isnce a recent update I get a fatal PHP error

PHP Fatal error:  Call to undefined function wfMsg()

Whenever I load a page that doesn't have a file on it, anyone else experienced this?

For those that follow after this can be fixed quite easily by updating lines as follows:

Instead of:
   wfMsg( 'key' );
write:
   wfMessage( 'key' )->text(); 

For example: return '<div class="error">' . wfMessage('audioplayer2-invalid-title')->text() . '</div>';