27 protected \ILIAS\MediaObjects\MediaType\MediaTypeManager
$media_types;
36 $this->media_types = $DIC->mediaObjects()->internal()->domain()->mediaType();
37 $this->media_cast = $cast;
41 protected function init(): void
45 $f = $DIC->ui()->factory();
46 $r = $DIC->ui()->renderer();
49 foreach ($this->media_cast->getSortedItemsArray() as $item) {
50 $mob = new \ilObjMediaObject($item[
"mob_id"]);
51 $med = $mob->getMediaItem(
"Standard");
52 $title = $item[
"title"];
53 $time = (
int) $item[
"playtime"];
55 if ($mob->getVideoPreviewPic() !=
"") {
56 $preview_pic = $mob->getVideoPreviewPic();
62 if (is_object($med)) {
63 $resource = $mob->getStandardSrc();
64 $mime = $med->getFormat();
66 if (in_array($mime, iterator_to_array($this->media_types->getAllowedVideoMimeTypes()),
true)) {
74 (
string) $item[
"content"],
75 (
string) $item[
"playtime"],
93 if (count($this->videos) > 0) {
94 return $this->videos[0];
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null