Stanford Tulpa Study looking for more participants
(if you're chosen they'll pay for travel and lodging!)

Can we get an [audio] tag?
#1
Can we please get something that would translate to html5 <audio>? For a certain podcast...

but please DO NOT ALLOW autoplay. So much possibility for abuse.
Reply

Sponsors:
Lolflash - click it, you know you want to

#2
By [audio] I thought you meant like [Switching] and [Imposition] lol. An audio tag would be cool though it might take a bit of work. As long as I can view its source url easily, because a lot of the time I can't. I kinda want to know where the file's being hosted, but otherwise sounds useful.
Hi! I'm Lumi, host of Reisen, Tewi, Flandre and Lucilyn.
Everyone deserves to love and be loved. It's human nature.
My tulpas and I have a Q&A thread, which was the first (and largest) of its kind. Feel free to ask us stuff.
Reply
#3
Sounds doable -- we are able to define MyCode tags that expand to a custom string of HTML. It looks like a pretty simple tag as well. I see it supports multiple <source>s inside a single <audio> tag -- is this something we want or need to support, or just have something like [mp3]myfile.mp3[/mp3] to create one with type="audio/mpeg" and/or [ogg] etc.?
Lyra: human female, ~17
Evan: boy, ~14, was an Eevee
Anera: anime-style girl, ~12; Lyra made her
My blog :: Time expectations are bad (forcing time targets are good though)
Reply
#4
It's something that'd be nice to have, I would use it myself, but I don't know how terribly important it is. Another thing to look into would be what goes in the tag that gets displayed on browser that don't support it. Perhaps a plain link to the audio file? Perhaps you should automatically put a link to it just below, for people who can but don't want to use their in-browser player.
Reply
#5
Something like this:


[Download audio file]

There are two forms of this tag:

[audio]http://my/url/my/file.ext[/audio]
This simply generates an <audio> tag with the specified URL as the source. It's the simplest to use, but you can only specify one source. A download link is included. For stupid reasons, your URL may not contain a [ character; if it does, replace the [ with %5b.

[audio mpeg="http://my/url/my/file.mp3" ...]
This accepts 1-3 sources of type mpeg (*.mp3), ogg (*.ogg), or mp4 (*.aac). You must specify source types as mpeg, ogg, and/or mp4 rather than their file extensions. If you only give one source in this format, the result will look the same as the simple form above, including download link (though the resulting HTML will look slightly different). Specify 2-3 sources and it'll provide separate download links for each, labeled with their type. Sources may be in any order. The first one you list will be listed first, making browsers treat it as the preferred one.


NOTES:
If you place text before your [audio] element, be sure to put an empty line in between. At least in Firefox, the play position indicator will overlap text on the line above if you don't.

If you put more than one player, put a blank line between them. Same reason as above. You can even try putting more than one on the same line, which is even uglier.
Lyra: human female, ~17
Evan: boy, ~14, was an Eevee
Anera: anime-style girl, ~12; Lyra made her
My blog :: Time expectations are bad (forcing time targets are good though)
Reply
#6
Thank you! Awesome!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)

Sponsors:
Lolflash - click it, you know you want to