Commit 6f443059 authored by Keven's avatar Keven
Browse files

Added some doc for subtitles

parent b994a014
......@@ -155,6 +155,17 @@ $file = $client->sendFile('My Awesome Movie', '/path/to/the/file', $folder, ['ch
$file->name = 'Q2 meeting';
$client->push($file);
// Add subtitles to the file
$file->addSubtitle('/path/to/subtitle/file', 'es');
foreach ($file->subitles as $subtitle) {
echo $subtitle->language.': '.$subtitle->href."\n";
}
// Remove subtitles
$file->removeSubtitle($subtitle); // You can also just use a URL
// or:
$client->removeSubtitle($subtitle); // You can also just use a URL
// Folder properties
$folder->name // Name of the folder
......@@ -388,6 +399,7 @@ $resource->metadata // Array of metadata
$resource->usages // Collection of usages
$resource->widgets // Collection of widgets
$resource->flavors // Collection of flavors
$resource->subtitles // Collection of subtitles
// Usage of widgets
foreach ($resource->widgets as $embed) echo urldecode($embed);
......
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