Skip to content

Commit

Permalink
fix: add video duration to media modal view
Browse files Browse the repository at this point in the history
  • Loading branch information
fului committed Apr 7, 2024
1 parent 4027dd2 commit 13fbbdf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/init.php
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,8 @@ function action_wp_ajax_query_cloudflare_stream_attachments() {
'width' => 64,
'height' => 48,
),
'fileLength' => gmdate( 'H:i:s', round( $video->duration ) ),
'fileLengthHumanReadable' => human_readable_duration( gmdate( 'H:i:s', round( $video->duration ) ) ),
'thumb' => array(
'src' => $video->thumbnail,
'width' => 64,
Expand Down

0 comments on commit 13fbbdf

Please sign in to comment.