Extension:AudioButton

From Gamepedia Help Wiki
Jump to: navigation, search
AudioButton
Version 0.1.0
Author(s)  • Nils Enevoldsen
Extension link GitHub
Description
Creates a one-button play/pause toggle for an uploaded audio file

AudioButton is an extension that creates a one-button play/pause toggle for an uploaded audio file. It is a drop-in replacement for SoundManager2Button.

Known issues[edit | edit source]

Many extensions allow you to put the opening extension tag on its own line, like this:

<sm2>
Rain-01.mp3
</sm2>

This extension does NOT. You have to have all of the content in one line, like this:

<sm2>Rain-01.mp3</sm2>

As a consequence, you cannot use frame:extesnsionTag() in Lua. A very easy workaround is to use the following syntax instead:

frame:callParserFunction{
    name = '#tag:sm2',
    args = { file }
}

External links[edit | edit source]