Audio Player (All-in-one)
From KickApps Documentation
The All-in-one Audio Player makes it easy to create a customized audio player that plays back .mp3 and .flv files, RSS feeds, and Playlists.
Contents |
Properties
- Show 'Rate This' Link
- Show a link to rate the current audio track. The link will open the audio track's play page.
- Show Track Info Panel
- Show the panel above the playbar that includes details about the current audio track. Without this panel, the component will just be the playbar.
- Show Sound Spectrum
- Show a cool-lookin audio visualization of the music.
- Play on load
- Start playing as soon as the widget loads.
- Auto Play
- When one audio track finishes playing, play the next one.
- Auto Advance
- When one audio track finishes playing, advance to the next one, but do not play it.
- Share button in control bar
Content
- Feed
- Playlist
- URL to an .mp3 or .flv (.flv's will only play in the Flash version of your audio players)
Settings
- Control Bar Color
- Control Bar Highlight Opacities (2)
- Corner Radii (2)
- Highlight Color
- Info Panel Color
- Info Panel Corner Radii (2)
- Progress Color
- Timer Color
- Spectrum Colors (2)
- Button Colors (2)
- Button Opacities (2)
- Button Highlight Opacities (2)
- Button Icon Color
- Button Stroke Color
- Button Stroke Thickness
Layout
There are two types of containers: the widget canvas itself (background of the entire widget) is considered a container, and you can also create containers that enclose components within your widget. Like any standard component, containers that you create can be moved around the stage, resized, and styled. The most powerful feature of Containers, though, is their ability to fix the positions of their constituent components via layout constraints, which we'll cover below. To create a container, select multiple components, right-click, and select "Group in new container".
You can configure a container's background color, opacity, border color, border thickness, corner radius, and background image in its Properties panel:
You can also mask content in a container by selecting the Mask Content checkbox at the bottom of the panel above. With masking enabled, components that belong to the container but fall outside its bounds will be hidden. To indicate this, when you're editing a container that has masking enabled in Design mode, and then add a component outside the bounds of the container you're in, that component will be translucent:
Masking is useful for situations in which you want to animate a component into a container after it loads initially.
Layout Constraints
Layout constraints let you anchor components a certain distance away from the sides and axes of their containers. Components with layout constraints enabled maintain their offset distances when their containers are resized. To set layout constraints, double click on your container, then single click on a component within it. The Layout Constraints panel will appear:
The checkboxes along the top side of the square in the Layout Constraints panel can be used to anchor the selected component to the left, vertical center, and right sides of its container. The checkboxes along the left side of the square can be used to anchor the selected component to the top, horizontal center, and bottom sides of its container.
When you select a checkbox, a text input field appears across the box from it. The number in this field represents the offset distance, in pixels, from the selected side of the container. For example, this is what it looks like when you anchor to the left side:
If you then resize this container, the component maintains its distance from the left side:
Similarly, you can anchor a component to the top of its container, and it will maintain its distance from the top when its container is resized:
You can also anchor components to the horizontal and vertical center lines of their containers. This component is anchored to the horizontal center of its container. It maintains its distance from the horizontal center when its container is resized.
This component is anchored to the vertical center of its container. It maintains its distance from the vertical center when its container is resized.
Components anchored to opposite sides of their containers expand and contract to maintain their offsets. Below is a component anchored to both the left and right sides of its container. Note how it expands to maintain its distances from the left and right sides.
The component below is anchored to both the top and bottom sides of its container. It contracts when its container is resized.
Events
Standard Events
- Click
- Component hidden
- Component loaded
- Component shown
- Double click
- Mouse down
- Mouse up
- Roll out
- Roll over
Audio Player Events
- Media Paused
- Media Playing
- Media Start
- Media End
- Media Percent Complete
- Specify the percentage of playback at which this event should be fired
- Media Time Elapsed
- Specify how many seconds of playback should occur before firing the event (whole seconds only; no decimals)
- Media Change
Actions
Standard Actions
- Drag/Stop Drag
- Set depth
- Show/Hide
- Tween Blur
- Tween Color
- Tween Drop Shadow
- Tween Glow
- Tween Property
- Update Property
- For a listing of all properties on KickApps components, see our Properties Reference.
Audio Player Actions
- Play/Pause
- Set Media URL
- Change Selection
- Mute |
Favorites






