public function getData()
{
$path = $this->id;
if ($this->type == "asset" && ($video = Asset::getById($this->id))) {
$path = $video->getFullPath();
}
$poster = Asset::getById($this->poster);
return ["id" => $this->id, "type" => $this->type, "title" => $this->title, "description" => $this->description, "path" => $path, "poster" => $poster ? $poster->getFullPath() : ""];
}