You are here

public function BrightcoveVideo::getDuration in Brightcove Video Connect 8

Same name and namespace in other branches
  1. 8.2 src/Entity/BrightcoveVideo.php \Drupal\brightcove\Entity\BrightcoveVideo::getDuration()
  2. 3.x src/Entity/BrightcoveVideo.php \Drupal\brightcove\Entity\BrightcoveVideo::getDuration()

Returns the video's duration.

Return value

int Video duration.

Overrides BrightcoveVideoInterface::getDuration

1 call to BrightcoveVideo::getDuration()
BrightcoveVideo::save in src/Entity/BrightcoveVideo.php

File

src/Entity/BrightcoveVideo.php, line 308

Class

BrightcoveVideo
Defines the Brightcove Video entity.

Namespace

Drupal\brightcove\Entity

Code

public function getDuration() {
  return $this
    ->get('duration')->value;
}