mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 15:33:15 +00:00
Round video/audio duration
This commit is contained in:
@@ -455,7 +455,7 @@ class record_adapter implements record_Interface, cache_cacheableInterface
|
|||||||
public function get_duration()
|
public function get_duration()
|
||||||
{
|
{
|
||||||
if ( ! $this->duration) {
|
if ( ! $this->duration) {
|
||||||
$this->duration = $this->get_technical_infos(media_subdef::TC_DATA_DURATION);
|
$this->duration = round($this->get_technical_infos(media_subdef::TC_DATA_DURATION));
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->duration;
|
return $this->duration;
|
||||||
|
Reference in New Issue
Block a user