Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
  • in reply to: Media Player time #149081
     superminimal
    Participant

    Hi and thanks for getting back to me.

    I was just referring to showing the current time WITHIN the media player, and the default WP media player successfully shows the current time ticking over so that’s not really the problem, it’s just that it’s missing from the Kleo version.

    If you use the built in [audio] shortcode in a post the player shows the current time (even when using the Kleo theme), but if you use the Kleo ‘media’ tab with the ‘audio’ field it doesn’t show, so it definitely seems like a theme issue.

    I have solved this by using ACF to add an ‘audio_file’ field to posts, and then in content_audio.php I’ve used the wp_audio_shortcode() function to play the audio_file with the media player (and removed the Kleo audio player code).

    https://developer.wordpress.org/reference/functions/wp_audio_shortcode/

    Also note to others: if you use the option preload=auto it will show the total duration BEFORE you press play (which is much better than showing 00:00:00 until the user presses play).

    Thanks again!

Viewing 1 post (of 1 total)

Log in with your credentials

Forgot your details?