wp_audio_shortcode() isn’t working on mobile devices

I use following code for showing audio player:

$post_id = $post->ID;
$file_id = get_post_meta( $post_id, ‘sound_s_’, true );
$fileUrl = wp_get_attachment_url($file_id);
$attr = array(
‘src’ =>$fileUrl,
‘loop’ => ”,
‘autoplay’ => ”,
‘preload’ => ‘none’
);
echo wp_audio_shortcode( $attr );

The above code is working on windows but on android, it only shows the audio player but the progressbar and pause button doesn’t work at all.

Read more here:: wp_audio_shortcode() isn’t working on mobile devices

Leave a Reply

Your email address will not be published. Required fields are marked *