src/Entity/XiboHls.php
public function create($name, $useDuration, $duration, $uri, $mute, $transparency, $playlistId)
    {
        $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->getLogger()->info('Creating HLS widget in playlist ID ' . $playlistId);
        $response = $this->doPost('/playlist/widget/hls/' . $playlistId , $this->toArray());

        return $this->hydrate($response);
    }
public function create($name, $useDuration, $duration, $uri, $mute, $transparency, $playlistId)
    {
        $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->getLogger()->info('Creating HLS widget in playlist ID ' . $playlistId);
        $response = $this->doPost('/playlist/widget/hls/' . $playlistId , $this->toArray());

        return $this->hydrate($response);
    }
public function create ( $ name , $ useDuration , $ duration , $ uri , $ mute , $ transparency , $ playlistId ) { $ 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 -> getLogger ( ) -> info ( 'Creating HLS widget in playlist ID ' . $ playlistId ) ; $ response = $ this -> doPost ( '/playlist/widget/hls/' . $ playlistId , $ this -> toArray ( ) ) ; return $ this -> hydrate ( $ response ) ; }
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
@return XiboHls
Create The HLS widget .