Mediaelement Audio Player – Additional Features
-
I’m using the default mejs audio player and am trying to figure out how to add additional features to the media player. Mediaelement has a repository of plugins available, but I’m having trouble finding a way to actually implement any of these plugins.
For example, I’ve tried to download the skip-back plugin dist assets and enqueue them via the wp_enqueue_scripts hook (requiring
wp-mediaelement
as a dependant) but it returns an error frommediaelement-migrate.js
:error building jumpforward TypeError: n.replace is not a function
Additionally, I’ve tried to use the
mejs_settings
filter hook to add in the Jump Forward as a feature, but that doesn’t seem to help or really do anything.add_filter('mejs_settings', function( $settings ) { return array_merge( $settings, array( 'features' => array( 'jumpforward' ) ) ); } );
The end goal is learning to add a skip-back mejs plugin onto the default media player. I’m not looking to replace this with a plugin but understand if WordPress supports this kind of customization. Any thoughts or ideas would be helpful!
- The topic ‘Mediaelement Audio Player – Additional Features’ is closed to new replies.