WordPress.org

Ready to get started?Download WordPress

Forums

mb.miniAudioPlayer - an HTML5 audio player for your mp3 files
[resolved] M4A file format support (3 posts)

  1. jakenbake
    Member
    Posted 1 year ago #

    I have users that upload audio files in .m4a format. Is is possible to have the link to the .m4a file show the player?

    http://wordpress.org/extend/plugins/wp-miniaudioplayer/

  2. pupunzi
    Member
    Plugin Author

    Posted 1 year ago #

    At the time this player support only .mp3 file format.
    Bye,
    matteo

  3. jakenbake
    Member
    Posted 1 year ago #

    I added the follow code to the miniaudioplayer.php file and got it to play the m4a format. I am new to php so I'm not sure if this is the best way to accomplish this but it works for now. Thanks for the plugin.

    <!-- start miniAudioPlayer initializer -->
    	<script type="text/javascript">
    
        if(!map) var map={};
        map.downloadUrl = "'.plugins_url( 'map_download.php', __FILE__ ).'";
        map.userCanDownload = '.(current_user_can('read') == 1 ? "true" : "false").';
    
    	jQuery(function(){
               	jQuery("a[href*=\'.m4a\']")'.getExcluded().'mb_miniPlayer({
    				inLine:true,
                    width:"'.$miniAudioPlayer_width.'",
    				skin:"'.$miniAudioPlayer_skin.'",
    				animate:'.$miniAudioPlayer_animate.',
    				volume:'.$miniAudioPlayer_volume.',
    				autoplay:'.$miniAudioPlayer_autoplay.',
    				showVolumeLevel:'.$miniAudioPlayer_showVolumeLevel.',
    				showTime:'.$miniAudioPlayer_showTime.',
    				id3:'.$miniAudioPlayer_getMetadata.',
    				showRew:'.$miniAudioPlayer_showRew.',
    				downloadable:'.canDownload().',
    				swfPath:"'.plugins_url( '/js/', __FILE__ ).'"
    			});
    	});
    	</script>
    	<!-- end miniAudioPlayer initializer -->

    [Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum's parser.]

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.