Skip to content

Commit 284a7d6

Browse files
author
Jeff Shillitto
committed
Add volume effect to docs
1 parent fce3ac3 commit 284a7d6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,7 @@ videoAsset
345345
.setSrc('https://shotstack-assets.s3.aws.com/mountain.mp4')
346346
.setTrim(5)
347347
.setVolume(0.5)
348+
.setVolumeEffect('fadeIn')
348349
.setCrop(crop);
349350
```
350351

@@ -355,6 +356,7 @@ Method | Description | Required
355356
setSrc(string url) | The video source URL. The URL must be publicly accessible or include credentials. | Y
356357
setTrim(float seconds) | The start trim point of the video clip, in seconds (defaults to 0). Videos will start from the in trim point. The video will play until the file ends or the Clip length is reached. | -
357358
setVolume(float level) | Set the volume for the video clip between 0 and 1 where 0 is muted and 1 is full volume (defaults to 0). | -
359+
setVolumeEffect(string effect) | The volume effect to apply to the video asset.<ul><li>`fadeIn` - fade volume in only</li><li>`fadeOut` - fade volume out only</li><li>`fadeInFadeOut` - fade volume in and out</li></ul> | -
358360
setCrop([Shotstack.Crop](#crop) crop) | Crop the sides of an asset by a relative amount. The size of the crop is specified using a scale between 0 and 1, relative to the screen width - i.e. a left crop of 0.5 will crop half of the asset from the left, a top crop of 0.25 will crop the top by quarter of the asset. | -
359361

360362
---

0 commit comments

Comments
 (0)