The fm:Mp3 component either renders an MP3 player on the page or provides the HTML for a user to copy into their own site to embed an MP3 player.
<!-- This will render an MP3 player for media ID 101 that will wait for the user to start playing -->
<fm:Mp3 mid="101" />
Name | Required | Default | Description |
---|---|---|---|
autoPlay | Optional | 0 | Whether to start playing the media immediately; "0" is no autoplay, "1" is autoplay. |
class | Optional | none | CSS class to assign to the player. |
externalMode | Optional | 0 | When set to "0" the player will be rendered in the browser, when set to "1" the HTML for the player will be displayed for a user to copy and embed in their own site. |
height | Optional | 20 | Height in pixels of the player. |
id | Optional | none | HTML ID to assign to the player. |
mid | Required | N/A | The media ID of the file to play. |
style | Optional | none | HTML style attribute to assign to the player. |
width | Optional | 320 | Width in pixels of the player. |
This component defines no template variables.
<!-- This shows how to provide HTML a user may copy to embed the MP3 player in their own site, along with shrinking the player to half its default width -->
<fm:Mp3 mid="101" width="160" externalMode="1" />