Skip to content

Commit

Permalink
Trigger auto advance at end of media playback
Browse files Browse the repository at this point in the history
  • Loading branch information
sheepman4267 committed Oct 18, 2024
1 parent 0f3882b commit 8e07d46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OpenShow/slides/templates/slides/display.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
<body hx-ext="sse" sse-connect="/events" class="slide-body">
<div class="slide" id="slide" {% if not display.current_slide.transition %}_="on load send animationend"{% endif %}>
{% if display.current_slide.auto_advance %}
<form action="{% url 'show-slide' %}" method="POST" hx-trigger="load delay:{{ display.current_slide.auto_advance_duration }}s" hx-post="{% url "show-slide" %}" hx-swap="none">
<form action="{% url 'show-slide' %}" method="POST" hx-trigger="load delay:{{ display.current_slide.auto_advance_duration }}s, ended from:video" hx-post="{% url "show-slide" %}" hx-swap="none">
{% csrf_token %}
<input type="hidden" name="show_pk" value="{{ display.current_show.pk }}">
<input type="hidden" name="direction" value="forward">
Expand Down

0 comments on commit 8e07d46

Please sign in to comment.