{% extends 'whispeakauth/view/record_audio.html.twig' %} {% block intro %}

{{ parent() }} {% endblock %} {% block config_data %} $('#username').on('change', function () { $('#record-audio-recordrtc, #btn-start-record, #btn-stop-record, #btn-save-record').off('click', ''); RecordAudio.init( { blockId: '#record-audio-recordrtc', btnStartId: '#btn-start-record', btnStopId: '#btn-stop-record', btnSaveId: '#btn-save-record', plyrPreviewId: '#record-preview', data: { action: 'authentify', username: $('#username').val() } } ); }); {% endblock %}