<?xml version="1.0" encoding="UTF-8"?>
<editor id="editor.audio" order="1000" enabled="true" modalOnly="true" openable="false" previewProvider="true" text="186" title="136" icon="frame_image.png" className="AudioPreviewer" mimes="mp3" label="CONF_MESSAGE[Audio Player]" description="CONF_MESSAGE[Inserts a flash player for reading mp3 files online, and playing a whole folder in a separate window.]" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="file:../core.ajaxplorer/ajxp_registry.xsd">
	<class_definition filename="plugins/editor.audio/AudioPreviewer.php" classname="Pydio\Editor\Audio\AudioPreviewer"/>
    <client_settings>
        <resources>
            <i18n namespace="audio_editor" path="plugins/editor.audio/i18n"/>
        </resources>
    </client_settings>
	<registry_contributions>
		<actions>
			<action name="audio_proxy" contentTypedProvider="true" skipSecureToken="true">
				<processing>
					<serverCallback methodName="switchAction" restParams="/file+" developerComment="Server an audio file as a stream">
                        <input_param name="file" type="AJXP_NODE" description="Path to the file"/>
					</serverCallback>
				</processing>
			</action>
			<!-- This one will happen a post-processing filter when ls is called with parameter playlist=true -->
			<action name="ls" dirDefault="true">
				<pre_processing>
					<serverCallback methodName="preProcessAction" applyCondition="$apply=isSet($httpVars['playlist']);"/>
				</pre_processing>
				<post_processing>
					<serverCallback methodName="switchAction" applyCondition="$apply=isSet($httpVars['playlist']);" capture="true"/>
				</post_processing>
			</action>
		</actions>
	</registry_contributions>
	<dependencies>
		<!-- Stream Wrapper must be implemented -->
		<activePlugin pluginName="access.AJXP_STREAM_PROVIDER"/>
	</dependencies>
</editor>
