/** * ----------------------------------------------------------------------------- * @package smartVISU * @author Onkel Andy * @copyright 2017 - 2020 * @license GPL [http://www.gnu.de] * ----------------------------------------------------------------------------- */ {% extends "widget_multimedia.html" %} {% block example %} 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:
{{ basic.stateswitch('', 'item_play', '', '', 'audio_play') }}
{% filter trim|escape|nl2br %}{% verbatim %} {{ multimedia.timeslider('timeslider1', 'item_time', 'item_play', 'item_duration', '1') }} {% endverbatim %}{% endfilter %}
{{ multimedia.timeslider('timeslider1', 'item_time', 'item_play', 'item_duration', '1') }}

Slider is disabled as duration is zero.
{% filter trim|escape|nl2br %}{% verbatim %} {{ multimedia.timeslider('', 'item_time2', 'item_play', 'item_duration2', '1') }} {% endverbatim %}{% endfilter %}
{{ multimedia.timeslider('', 'item_time2', 'item_play', 'item_duration2', '1') }}
{% endblock %}