-
AuthorPosts
-
April 4, 2024 at 4:46 pm #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
AnneApril 4, 2024 at 7:57 pm #1439229i 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:
April 5, 2024 at 5:53 am #1439244Edit: i think there are a lot of conflicts with other alb elements. So – do not use that plugin.
April 5, 2024 at 11:53 am #1439270Hello 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 AnneApril 6, 2024 at 1:38 pm #1439317Hi,
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:
Best regards,
Mike -
AuthorPosts
- You must be logged in to reply to this topic.