Audio  

    bh
    Einbindung von MP3-Dateien als Player mit Control-Buttons
    HTML-Template: Resources/Private/Partials/Audio.html
    HTML
    {namespace bh=TYPO3\Bh\ViewHelpers} <bh:tmpl.element object="{cObj}"> <audio src="uploads/tx_bh/{cObj.file.file}" preload="{cObj.settings.preload}" <f:for each='{cObj.settings.audioattr}' key='aa' as='as'> <f:if condition='{as}'>{aa} </f:if> </f:for> > Your browser does not support the audio element. </audio> </bh:tmpl.element>
    Settings-HTML: Configuration/BheForms/Audio.html
    HTML
    {namespace bh=TYPO3\Bh\ViewHelpers} <bh:form.settingsform content="{cObj}"> <div class="bhe-formsettings-option"> <label>Autoplay</label> <f:form.checkbox name="audioattr[autoplay]" value="1" checked="{cObj.allSettings.audioattr.autoplay}" /> </div> <div class="bhe-formsettings-option"> <label>Controls</label> <f:form.checkbox name="audioattr[controls]" value="1" checked="{cObj.allSettings.audioattr.controls}" /> </div> <div class="bhe-formsettings-option"> <label>Loop</label> <f:form.checkbox name="audioattr[loop]" value="1" checked="{cObj.allSettings.audioattr.loop}" /> </div> <div class="bhe-formsettings-option"> <label>Muted</label> <f:form.checkbox name="audioattr[muted]" value="1" checked="{cObj.allSettings.audioattr.muted}" /> </div> <div class="bhe-formsettings-option"> <label>Preload</label> <f:form.select name="preload" value="{cObj.allSettings.preload}" options="{auto:'auto',metadata:'metadata',none:'none'}" /> </div> <f:form.submit value="Speichern" /> </bh:form.settingsform>