How to make WordPress audio playlist understand the direct links of audio files shared on google drive?

As you can see in comments section of my question, «birgire» had suggested to a user of his plugin to change the google drive direct link as follow so that It can be recognized an played in the WordPress playlist: A normal google drive direct link is something like this: https://drive.google.com/uc?export=download&id=0Bz4YdwRI3rnCMFRoTmtSS0M1VHM If you make sure … Read more

Background audio player

For a permanent/persistent audio player I can think of these options: a completely Ajaxified theme, so the content is dynamicaly loaded put the audio player in a frame and the navigation/content in another one (yes, frames, that thing of the past) open the audio player in a pop-up make WordPress the CMS but pull the … Read more

How to add audio files to wordpress blog and making it auto play?

Basic parts To get all audio files attached to a post use get_children(): $audio_files = get_children( array ( ‘post_parent’ => get_the_ID(), ‘post_status’ => ‘inherit’, ‘post_type’ => ‘attachment’, ‘post_mime_type’ => ‘audio’ ) ); For the last attached file URL use wp_get_attachment_url() and pass the ID of the last child as an argument: $id = array_pop( array_keys( … Read more

Download button for wp audio player

How to use a custom playlist template: You can overwrite the playlist template with your own template: /** * Remove the native playlist template and load our custom template * @link http://wordpress.stackexchange.com/q/141767/26350 */ add_action( ‘wp_playlist_scripts’, ‘wpse_141767_wp_playlist_scripts’ ); function wpse_141767_wp_playlist_scripts() { remove_action( ‘wp_footer’, ‘wp_underscore_playlist_templates’, 0 ); add_action( ‘wp_footer’, ‘wpse_141767_wp_underscore_playlist_templates’, 0 ); } where our modified template … Read more

How to get the number of times an audio file has been played

Yes, the play event fires on the <audio> element, so you could target it eg $(‘audio.wp-audio-shortcode’).on(‘play’, function (event) { //etc });. A number of other events are also available, eg ended, playing, pause. Here’s some code I’m trialing at the moment that may help you (in “functions.php”): add_action( ‘wp_footer’, function () { ?> <script> jQuery(document).ready(function() … Read more

Making audio playlist with external audio files?

Playlist shortcode with external audio or video files Here I explain how you can implement idea 3 in my other answer, where we use the following shortcode structure: [wpse_playlist type=”” current=”” style=”” tracklist=”” tracknumbers=”” images=”” artist=””] [wpse_trac src=”” title=”” type=”” caption=”” description=”” image=”” meta_artist=”” meta_album=”” meta_genre=”” meta_length_formatted=”” image_src=”” image_width=”” image_height=”” thumb_src=”” thumb_width=”” thumb_height=””] [wpse_trac src=”” … Read more

compressed and uncompressed .wav files

The WAV format is a container format for audio files in Windows. The WAV file consists of a header and the contents. The header contains information about the size, duration, sampling frequency, resolution, and other information about the audio contained in the WAV file. Generally, after the header is the actual audio data. Since WAV is a … Read more