3
* Spring Signage Ltd - http://www.springsignage.com
4
* Copyright (C) 2015 Spring Signage Ltd
9
{% extends "form-base.twig" %}
10
{% import "forms.twig" as forms %}
13
{% trans "Add HLS Video Stream" %}
16
{% block formButtons %}
17
{% trans "Help" %}, XiboHelpRender("{{ help }}")
18
{% trans "Cancel" %}, XiboDialogClose()
19
{% trans "Save" %}, $("#hlsAddForm").submit()
22
{% block formFieldActions %}
24
"field": "useDuration",
27
"operation": "is:checked",
29
".duration-fields": { "display": "none" }
32
"field": "useDuration",
35
"operation": "is:checked",
37
".duration-fields": { "display": "none" }
40
"field": "useDuration",
43
"operation": "is:checked",
45
".duration-fields": { "display": "block" }
48
"field": "useDuration",
51
"operation": "is:checked",
53
".duration-fields": { "display": "block" }
60
<div class="col-md-12">
61
<form id="hlsAddForm" class="XiboForm form-horizontal" method="post" action="{{ urlFor("module.widget.add", {type: module.widget.type, id: playlist.playlistId}) }}">
62
{% set title %}{% trans "Video Path" %}{% endset %}
63
{% set helpText %}{% trans "A URL to the HLS video stream. Requires Player running Windows 8.1 or later, or Android 6 or later. Earlier Android devices may play HLS via the LocalVideo widget." %}{% endset %}
64
{{ forms.input("uri", title, "", helpText, "", "required") }}
66
{% set title %}{% trans "Set a duration?" %}{% endset %}
67
{% set helpText %}{% trans "Select to provide a specific duration for this Widget" %}{% endset %}
68
{{ forms.checkbox("useDuration", title, 0, helpText) }}
70
{% set title %}{% trans "Duration" %}{% endset %}
71
{% set helpText %}{% trans "The duration in seconds this should be displayed" %}{% endset %}
72
{{ forms.number("duration", title, module.getModule().defaultDuration, helpText, "duration-fields", "required") }}
74
{% set title %}{% trans "Mute?" %}{% endset %}
75
{% set helpText %}{% trans "Should the video be muted?" %}{% endset %}
76
{{ forms.checkbox("mute", title, 0, helpText, "mute-fields") }}
b'\\ No newline at end of file'