Adding Elapsed Time to jPlayer in Audio Post Format
-
Love this theme, it’s offered a great base framework that I’ve customized a bit for the podcast/blog website that I maintain.
I really like the way that jPlayer has been tightly integrated into the theme (along with a featured image spot) in the Audio post format, which we use frequently.
However, our podcast producer recently asked me if it’s possible to get the audio player to display the Elapsed Time within the audio player while the audio is being played back.
I did a little fiddling around within <b>inc/post-formats.php</b> and figured out that I could add
<div class="jp-current-time"></div>
to make the elapsed time display within the<div id="jp-interface-<?php the_ID(); ?>" class="jp-interface">
div (lines 53-59)… but the problem is that it’s not simply that easy to squeeze it in between the play/pause button and the play/seek bar without borking up the layout.Looking at the CSS for the jPlayer elements in style.css, I’m having a difficult time figuring out the most effective way to edit the parameters to make it possible for me to squeeze in the jp-current-time div.
Any advice would be greatly appreciated. Thank you!
- The topic ‘Adding Elapsed Time to jPlayer in Audio Post Format’ is closed to new replies.