Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1439220

    Dear Kriesis,
    I’m creating a website with lots of big mp3 files (2 to 6MB). Is it possible to load mp3-files from other directories or external sources instead from the internal media library? Enfold enables to display video files from Vimeo or YouTube and I’m looking for a similar solution for audios.

    Best regards
    Anne

    #1439229

    i do not know if there is an easier way – but if you like to install a plugin – you have the oportunity to have external links added to media library:
    https://wordpress.org/plugins/external-files-in-media-library/

    Unfortunately mp3 is not included by default in the supported mime types. – But you can add it by a hook in child-theme functions.php:

    add_filter( 'eml_supported_mime_types', function( $list ) {
    	$list['audio/mpeg'] = array(
    	'label' => 'MP3 Audio',
    	'ext' => 'mp3'
    	);
    	return $list;
    });

    after that you can go to the settingspage of that plugin and activate all files that you like to add externally to your media-library.
    Now you can add external links to media library via:

    but be careful : those files could be erased without your knowledge. Or changed.

    PS: on audio Element you can now add them like the selfhosted ones – but on playlist there is no total time for them
    it is shown in the control panel – but not in the list:

    #1439244

    Edit: i think there are a lot of conflicts with other alb elements. So – do not use that plugin.

    #1439270

    Hello Guenni007,
    I’ll solve the problem this way: mp3 files will be compressed before uploading and hope the site will not slow down too much.
    If you have any other ideas please let me know.
    Best regards Anne

    #1439317

    Hi,
    Perhaps a plugin like Html5 Audio Player would be a good choice because it uses a shortcode that allows you to add the audio file URL, so it could be from an external source or a directory on your site that you upload to via FTP and bypass the WordPress media library completely:
    Enfold_Support_5276.jpeg

    Best regards,
    Mike

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.