public function get_duration()
    {
        if (!$this->duration) {
            $duration = $this->get_technical_infos(media_subdef::TC_DATA_DURATION);
            $this->duration = $duration ? round($duration->getValue()) : false;
        }

        return $this->duration;
    }
public function get_duration()
    {
        if (!$this->duration) {
            $duration = $this->get_technical_infos(media_subdef::TC_DATA_DURATION);
            $this->duration = $duration ? round($duration->getValue()) : false;
        }

        return $this->duration;
    }
public function get_duration ( ) { if ( ! $ this -> duration ) { $ duration = $ this -> get_technical_infos ( media_subdef :: TC_DATA_DURATION ) ; $ this -> duration = $ duration ? round ( $ duration -> getValue ( ) ) : false ; } return $ this -> duration ; }
Returns duration in seconds

@return int
Returns duration in seconds