src/Entity/XiboEmbedded.php
public function create($name, $duration, $useDuration, $transparency, $scaleContent, $embedHtml, $embedScript, $embedStyle, $playlistId)
    {
        $this->userId = $this->getEntityProvider()->getMe()->getId();
        $this->name = $name;
        $this->duration = $duration;
        $this->useDuration = $useDuration;
        $this->transparency = $transparency;
        $this->scaleContent = $scaleContent;
        $this->embedHtml = $embedHtml;
        $this->embedScript = $embedScript;
        $this->embedStyle = $embedStyle;
        $this->playlistId = $playlistId;
        $this->getLogger()->info('Creating Embed HTML widget' . $name . ' in playlist ID ' . $playlistId);
        $response = $this->doPost('/playlist/widget/embedded/' . $playlistId , $this->toArray());

        return $this->hydrate($response);
    }
public function create($name, $duration, $useDuration, $transparency, $scaleContent, $embedHtml, $embedScript, $embedStyle, $playlistId)
    {
        $this->userId = $this->getEntityProvider()->getMe()->getId();
        $this->name = $name;
        $this->duration = $duration;
        $this->useDuration = $useDuration;
        $this->transparency = $transparency;
        $this->scaleContent = $scaleContent;
        $this->embedHtml = $embedHtml;
        $this->embedScript = $embedScript;
        $this->embedStyle = $embedStyle;
        $this->playlistId = $playlistId;
        $this->getLogger()->info('Creating Embed HTML widget' . $name . ' in playlist ID ' . $playlistId);
        $response = $this->doPost('/playlist/widget/embedded/' . $playlistId , $this->toArray());

        return $this->hydrate($response);
    }
public function create ( $ name , $ duration , $ useDuration , $ transparency , $ scaleContent , $ embedHtml , $ embedScript , $ embedStyle , $ playlistId ) { $ this -> userId = $ this -> getEntityProvider ( ) -> getMe ( ) -> getId ( ) ; $ this -> name = $ name ; $ this -> duration = $ duration ; $ this -> useDuration = $ useDuration ; $ this -> transparency = $ transparency ; $ this -> scaleContent = $ scaleContent ; $ this -> embedHtml = $ embedHtml ; $ this -> embedScript = $ embedScript ; $ this -> embedStyle = $ embedStyle ; $ this -> playlistId = $ playlistId ; $ this -> getLogger ( ) -> info ( 'Creating Embed HTML widget' . $ name . ' in playlist ID ' . $ playlistId ) ; $ response = $ this -> doPost ( '/playlist/widget/embedded/' . $ playlistId , $ this -> toArray ( ) ) ; return $ this -> hydrate ( $ response ) ; }
Create a new Embedded HTML widget.

@param string $name Widget Name
@param int $duration Widget Duration
@param int $useDuration Flag indicating whether to use custom duration
@param int $transparency Flag should the HTML be shown with transparent background? - Not available on Windows players
@param int $scaleContent Flag should the embedded content be scaled along with the layout
@param string $embedHtml The HTML to embed
@param string $embedScript HEAD content to embed, including script tags
@param string $embedStyle Custom Style Sheets (CSS)
@param int $playlistId The playlist ID to which this widget should be assigned
@return XiboEmbedded
Create a new Embedded HTML widget .