diff --git a/README.md b/README.md index 31a7a1e..e923ca2 100644 --- a/README.md +++ b/README.md @@ -322,7 +322,7 @@ setLength(float $length) | The length, in seconds, the Clip should play for. | Y setFit(string $fit) | Set how the asset should be scaled to fit the viewport using one of the following options [default to `crop`]: | - setScale(float $scale) | Scale the asset to a fraction of the viewport size - i.e. setting the scale to 0.5 will scale asset to half the size of the viewport. This is useful for picture-in-picture video and scaling images such as logos and watermarks. | - setPosition(string $position) | Place the asset in one of nine predefined positions of the viewport. This is most effective for when the asset is scaled and you want to position the element to a specific position [default to `center`]. | - -stOffset([\Shotstack\Client\Model\Offset](#offset) $offset) | Offset the location of the asset relative to its position on the viewport. The offset distance is relative to the width of the viewport - for example an x offset of 0.5 will move the asset half the viewport width to the right. | - +setOffset([\Shotstack\Client\Model\Offset](#offset) $offset) | Offset the location of the asset relative to its position on the viewport. The offset distance is relative to the width of the viewport - for example an x offset of 0.5 will move the asset half the viewport width to the right. | - setTransition([\Shotstack\Client\Model\Transition](#transition) $transition) | In and out transitions for a clip - i.e. fade in and fade out | - setEffect(string $effect) | A motion effect to apply to the Clip. | - setFilter(string $filter) | A filter effect to apply to the Clip. | - @@ -590,8 +590,9 @@ use Shotstack\Client\Model\Transformation; $transformation = new Transformation(); $transformation - ->setX(0.5) - ->setY(0.5); + ->setRotate($rotate) + ->setSkew($skew) + ->setFlip($flip); ``` #### Methods: @@ -955,7 +956,7 @@ if ($video->getStatus() === 'done') { ``` ## Inspecting Media -The SDK `probe` endpoint can be used to inspect media hosted online. Simply pass the URL an asset to inspect. +The SDK `probe` endpoint can be used to inspect media hosted online. Simply pass the URL of an asset to inspect. ### Probe Example The example below inspects (probes) a video hosted on GitHub and returns metadata about the file. @@ -1126,4 +1127,4 @@ getUpdated(): string | The time the asset status was last updated. | - - [Getting Started Guide](https://shotstack.io/docs/guide/getting-started/core-concepts/) - [API Reference](https://shotstack.io/docs/api/) - [Examples](https://github.com/shotstack/php-demos) -- [Shotstack Website](https://shotstack.io) \ No newline at end of file +- [Shotstack Website](https://shotstack.io)