Commit 05415545 authored by Keven's avatar Keven
Browse files

Fix #6 Get Duration on file or resource from client

parent 682254a4
......@@ -150,6 +150,7 @@ $file->size // Size in bytes (immutable)
$file->embed // Embed code to view the file (immutable)
$file->encodingStatus // Whether or not the file encoding is done (immutable)
$file->thumbnail // URL to the file thumbnail (immutable)
$file->duration // Video/Audio duration in seconds
```
#### Example to retrieve files and folders
......@@ -349,6 +350,7 @@ $resource->title // Title of the stream
$resource->subtitle // Optional subtitle for the stream
$resource->publishedAt // Publication date (may be in the future to schedule a publication)
$resource->visibility // Visibility of the stream (public, hidden, protected)
$resource->duration // Video/Audio duration in seconds
$resource->embed // Embed of the resource (immutable)
$resource->metadata // Array of metadata
$resource->usages // Collection of usages
......
......@@ -50,6 +50,13 @@ class File extends Entity implements FileInterface
*/
protected $thumbnail;
/**
*
* @Type("double")
* @var float
*/
protected $duration;
/**
* URL of the thumbnail
*
......
......@@ -49,6 +49,13 @@ class Resource extends Entity implements ResourceInterface
*/
protected $visibility;
/**
*
* @Type("double")
* @var float
*/
protected $duration;
/**
* @XmlList(entry = "flavor")
* @Type("array<Libcast\Client\Entity\Flavor>")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment