[wp-trac] [WordPress Trac] #36680: Audio player with preload="metadata" shows incorrect duration for audio files 1 hour or longer

WordPress Trac noreply at wordpress.org
Wed Sep 20 21:25:33 UTC 2017


#36680: Audio player with preload="metadata" shows incorrect duration for audio
files 1 hour or longer
--------------------------+------------------------------
 Reporter:  Dexterity     |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Media         |     Version:  4.5.1
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by Dexterity):

 Replying to [comment:3 caercam]:
 > add_filter( 'mejs_settings', 'change_mejs_time_format' );
 > function change_mejs_time_format( $mejs_settings ) {
 >
 >       $mejs_settings['timeFormat'] = 'hh:mm:ss';
 >
 >       return $mejs_settings;
 > }


 Thanks a bunch! I added the code to my site, and it works nicely.

 Just note that you have extra close paren in the add_filter line. I
 removed it in the quoted version above.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/36680#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list