<!--
  ~ Copyright (C) 2023 Xibo Signage Ltd
  ~
  ~ Xibo - Digital Signage - https://xibosignage.com
  ~
  ~ This file is part of Xibo.
  ~
  ~ Xibo is free software: you can redistribute it and/or modify
  ~ it under the terms of the GNU Affero General Public License as published by
  ~ the Free Software Foundation, either version 3 of the License, or
  ~ any later version.
  ~
  ~ Xibo is distributed in the hope that it will be useful,
  ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
  ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  ~ GNU Affero General Public License for more details.
  ~
  ~ You should have received a copy of the GNU Affero General Public License
  ~ along with Xibo.  If not, see <http://www.gnu.org/licenses/>.
  -->
<module>
    <id>core-audio</id>
    <name>Audio</name>
    <author>Core</author>
    <description>Upload Audio files to assign to Layouts</description>
    <icon>fa fa-file-audio</icon>
    <class>\Xibo\Widget\AudioProvider</class>
    <type>audio</type>
    <dataType></dataType>
    <schemaVersion>1</schemaVersion>
    <assignable>1</assignable>
    <regionSpecific>0</regionSpecific>
    <renderAs>native</renderAs>
    <defaultDuration>0</defaultDuration>
    <hasThumbnail>0</hasThumbnail>
    <settings>
        <property id="validExtensions" type="text">
            <title>Valid Extensions</title>
            <helpText>The Extensions allowed on files uploaded using this module. Comma Separated.</helpText>
            <default>mp3,wav</default>
        </property>
    </settings>
    <properties>
        <property id="message-duration" type="message">
            <title>This audio will play for %media.duration% seconds. To cut the audio short set a lower duration in the Advanced tab, to wait on the last frame or select to Loop set a higher duration.</title>
        </property>
        <property id="loop" type="checkbox">
            <title>Loop?</title>
            <helpText>Should the audio loop if it finishes before the provided duration?</helpText>
            <default>0</default>
        </property>
    </properties>
    <preview></preview>
</module>