diff --git a/src/init.php b/src/init.php index d1c67a3..23ec2b5 100644 --- a/src/init.php +++ b/src/init.php @@ -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,