Jump to content

Can we get an [audio] tag?


jean-luc

Recommended Posts

Can we please get something that would translate to html5 ? For a certain podcast...

 

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

I don't visit as often as I used to. If you want me to see something, make sure to quote a post of mine or ping me @jean-luc

Link to comment
Share on other sites

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 about tulpamancy stuff there.

Link to comment
Share on other sites

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

s inside a single 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)

Link to comment
Share on other sites

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.

I don't visit as often as I used to. If you want me to see something, make sure to quote a post of mine or ping me @jean-luc

Link to comment
Share on other sites

Something like this:

 

[audio]http://community.tulpa.info/laughingtulpas.mp3[/audio]

 

There are two forms of this tag:

 

[audio]http://my/url/my/file.ext[/audio]

This simply generates an 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)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...