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.