芝麻web文件管理V1.00
编辑当前文件:/home/mgatv524/public_html/somares/vendor/xibosignage/oauth2-xibo-cms/src/Entity/XiboHls.php
. */ namespace Xibo\OAuth2\Client\Entity; use Xibo\OAuth2\Client\Exception\XiboApiException; class XiboHls extends XiboWidget { /** @var int The Widget ID */ public $widgetId; /** @var int The Playlist ID */ public $playlistId; /** @var int The Owner ID */ public $ownerId; /** @var string The Widget Type */ public $type; /** @var int The Widget Duration */ public $duration; /** @var int The Display Order of the Widget */ public $displayOrder; /** @var int Flag indicating whether to use custom duration */ public $useDuration; /** @var string Optional Widget name */ public $name; /** @var string URL to HLS video stream */ public $uri; /** @var int Flag Should the video be muted? */ public $mute; /** @var int Flag This causes some android devices to switch to a hardware accelerated web view */ public $transparency; /** * Create The HLS widget. * * @param string $name Optional widget name * @param int $useDuration Flag indicating whether to use custom duration * @param int $duration Widget Duration * @param string $uri URL to HLS video stream * @param int $mute Flag Should the video be muted? * @param int $transparency Flag This causes some android devices to switch to a hardware accelerated web view * @param int $playlistId The playlist ID * @param string $enableStat The settings to enable the collection of Proof of Play statistics, available options: ON, Off, Inherit * @return XiboHls */ public function create($name, $useDuration, $duration, $uri, $mute, $transparency, $playlistId, $enableStat = '') { $this->userId = $this->getEntityProvider()->getMe()->getId(); $this->name = $name; $this->useDuration = $useDuration; $this->duration = $duration; $this->uri = $uri; $this->mute = $mute; $this->transparency = $transparency; $this->playlistId = $playlistId; $this->enableStat = $enableStat; $this->getLogger()->info('Creating HLS widget in playlist ID ' . $playlistId); $response = $this->doPost('/playlist/widget/hls/' . $playlistId , $this->toArray()); return $this->hydrate($response); } /** * Edit the HLS widget. * * @param string $name Optional widget name * @param int $useDuration Flag indicating whether to use custom duration * @param int $duration Widget Duration * @param string $uri URL to HLS video stream * @param int $mute Flag Should the video be muted? * @param int $transparency Flag This causes some android devices to switch to a hardware accelerated web view * @param int $widgetId the Widget ID * @param string $enableStat The settings to enable the collection of Proof of Play statistics, available options: ON, Off, Inherit * @return XiboHls */ public function edit($name, $useDuration, $duration, $uri, $mute, $transparency, $widgetId, $enableStat = '') { $this->userId = $this->getEntityProvider()->getMe()->getId(); $this->name = $name; $this->useDuration = $useDuration; $this->duration = $duration; $this->uri = $uri; $this->mute = $mute; $this->transparency = $transparency; $this->widgetId = $widgetId; $this->enableStat = $enableStat; $this->getLogger()->info('Editing HLS widget ID ' . $widgetId); $response = $this->doPut('/playlist/widget/' . $widgetId , $this->toArray()); return $this->hydrate($response); } /** * Delete the widget. * */ public function delete() { $this->userId = $this->getEntityProvider()->getMe()->getId(); $this->getLogger()->info('Deleting widget ID ' . $this->widgetId); $this->doDelete('/playlist/widget/' . $this->widgetId , $this->toArray()); return true; } }