Page 1 of 1

bbcode request: audio

Posted: Wed Sep 16, 2015 8:25 pm
by arthaey
We already have YouTube and Soundhound. Could we also have a generic audio tag? Eg:

Code: Select all

[audio]{URL}[/audio]


Code: Select all

<audio src="{URL}" controls></audio>

Re: bbcode request: audio

Posted: Sun Sep 20, 2015 10:10 am
by rdearman
All done. You can now use audio tags.

Re: bbcode request: audio

Posted: Sun Sep 20, 2015 5:57 pm
by tomgosse
When I try this code:

Code: Select all

[audio]https://www.dropbox.com/s/mddg9vm2ph5fjvx/FIA%20theme.mp3?dl=0[/audio]


The audio player disappears after a few seconds. The player should be between,

here ...

... and here.

I'm using Windows 10 and the latest version of Firefox.

Thank you
Tom

Re: bbcode request: audio

Posted: Sun Sep 20, 2015 6:02 pm
by tomgosse
Here is a test from a different server.

Code: Select all

[audio]https://soundcloud.com/tom-gosse/le-boudin[/audio]


The player should be between,
here ...

... and here.

Thanks again.
Tom

Re: bbcode request: audio

Posted: Sun Sep 20, 2015 6:14 pm
by AlexTG
The url needs to point directly to the mp3 file. Notice when you place those links in your browser, they open up webpages rather than downloading an mp3. For dropbox you need "dl=1" on the end of the url not "dl=0"

Code: Select all

[audio]https://www.dropbox.com/s/mddg9vm2ph5fjvx/FIA%20theme.mp3?dl=1[/audio]




I couldn't find any way to get the soundcloud as an mp3 :(.

Re: bbcode request: audio

Posted: Sun Sep 20, 2015 6:27 pm
by tomgosse
AlexTG wrote:The url needs to point directly to the mp3 file. Notice when you place those links in your browser, they open up webpages rather than downloading an mp3. For dropbox you need "dl=1" on the end of the url not "dl=0"

Code: Select all

[audio]https://www.dropbox.com/s/mddg9vm2ph5fjvx/FIA%20theme.mp3?dl=1[/audio]




I couldn't find any way to get the soundcloud as an mp3 :(.


Merci mon ami ! :)

Re: bbcode request: audio

Posted: Sun Sep 20, 2015 6:36 pm
by AlexTG
The audio is currently automatically loading from start to finish before we click play. In a thread with lots of files this wouldn't work out well. The html should to be replaced with:

Code: Select all

<audio src="{URL}" preload="metadata" controls></audio>

Re: bbcode request: audio

Posted: Sun Sep 20, 2015 9:08 pm
by rdearman
OK, I've modified the audio link with preload. Let me know if there are any issues.

Re: bbcode request: audio

Posted: Sun Sep 20, 2015 10:36 pm
by tomgosse
When I view this post on my Samsung Tab 4 10.1 (Android system) with Firefox the player disappears. But, it is fine on my notebook.

Code: Select all

[audio]https://www.dropbox.com/s/p1mduggyqisabag/le-boudin.mp3?dl=1[/audio]


Players should be between here ...


... and here.

Re: bbcode request: audio

Posted: Mon Sep 21, 2015 12:57 am
by tomgosse
Here is what I found:

- [audio] and [soundcloud] tags do work on my laptop (Windows 10, Firefox)
- [audio] and [soundcloud] tags do work on my Android tablet with Chrome.
- [audio] and [soundcloud] tags do not work on my Android tablet with Firefox

From what I've read on the web this has to do with problems in Soundcloud, HTML5 and Firefox.
I'll try and do some more checking tomorrow.

Tom