Multimedia-Widgets

multimedia.audio multimedia.image multimedia.music multimedia.slideshow multimedia.station multimedia.timeslider multimedia.playpause


multimedia.timeslider

Displays a slider to show and control the current time of a media file. Slider continues to run every second even if time value is not updated by item

Parameters
{{ multimedia.timeslider(id, time, play, duration, step, value_display) }}
id
unique id for this widget
time
an item providing the current time of a media file
play
an item providing info whether song is playing or not (value has to be true or false)
duration
an item providing the duration of the same media file
step
step in % between updates (optional, default 5)
value_display
how should the value be shown; possible options: 'input', 'handle', 'both', 'none' (optional, default 'input')
Display the current time of a song on a slider.
Example
Time is automatically updated every second in this example as long as play is true. The slider will jump back on stop in this example but not with real data as the current value is read by the current time response of your player.
Use this switch to turn on/off play:
audio_play audio_play
{{ multimedia.timeslider('timeslider1', 'item_time', 'item_play', 'item_duration', '1') }}

Slider is disabled as duration is zero.
{{ multimedia.timeslider('', 'item_time2', 'item_play', 'item_duration2', '1') }}

Widgets

Design

Misc