WaveSurfer-WP
This plugin replaces the default WordPress audio player with a player capable of displaying audio waveforms. It can display a mix of the different audio channels (for podcast, radio replays, e-learning, music), or all channels simultaneously (for sound tutorial, sounds-packs showcases, audio product
This plugin replaces the default WordPress audio player with a player capable of displaying audio waveforms. It can display a mix of the different audio channels (for podcast, radio replays, e-learning, music), or all channels simultaneously (for sound tutorial, sounds-packs showcases, audio products demo etc…), which is its main purpose.
By working with the default audio/playlist shortcode, you have great advantages:
- It works with all your previous posts
- You still have the default player in the Visual Editor (not just shortcode)
- It supports every audio format supported by WordPress (wav, ogg, mp3, m4a).
- Safe deactivation: if you deactivate the plugin, your shortcode will fallback to the WordPress default audio player.
Global colors and style settings can be overridden locally by dedicated shortcode attributes.
- progress_color="purple"
- wave_color="#FF0000"
- cursor_color="#FF0000"
- height="128"
- bar_width="0"
Also, there is some attributes accessible at shortcode level:
- mute_button="true"
- loop_button="true"
- download_button="true"
- split_channels="true"
- player="default"
For more advanced customization, with a custom site-plugin , you can:
- add shortcode attributes conditionally with the filter wavesurfer_wp_shortcode_attributes .
- use the wavesurfer_wp_shortcode_data filter if you want to add custom waveform data attributes.
- use the wavesurfer-wp-init JavaScript event handler to render the player on custom events, like after click on a button. See examples on the WaveSurfer-WP-Init GitHub repository.