@shotstack/schemas 1.19.0 → 1.20.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3769,12 +3769,24 @@
3769
3769
  "type": "string"
3770
3770
  },
3771
3771
  "speed": {
3772
- "description": "Adjust the playback speed of the video clip between 0 (paused) and 10 (10x normal speed) where 1 is normal speed (defaults to 1). Adjusting the speed will also adjust the duration of the clip and may require you to adjust the Clip length. For example, if you set speed to 0.5, the clip will need to be 2x as long to play the entire video (i.e. original length / 0.5). If you set speed to 2, the clip will need to be half as long to play the entire video (i.e. original length / 2).",
3773
- "type": "number",
3774
- "minimum": 0,
3775
- "maximum": 10,
3776
- "examples": [
3777
- 1
3772
+ "description": "Adjust the playback speed of the video clip. Use a number for a constant speed or an array of [Tween](./#tocs_tween) objects to change speed over time, for example easing from normal speed up to 3x.",
3773
+ "oneOf": [
3774
+ {
3775
+ "type": "number",
3776
+ "description": "The playback speed between 0 (paused) and 10 (10x normal speed) where 1 is normal speed (defaults to 1). Adjusting the speed will also adjust the duration of the clip and may require you to adjust the Clip length. For example, if you set speed to 0.5, the clip will need to be 2x as long to play the entire video (i.e. original length / 0.5). If you set speed to 2, the clip will need to be half as long to play the entire video (i.e. original length / 2).",
3777
+ "minimum": 0,
3778
+ "maximum": 10,
3779
+ "examples": [
3780
+ 1
3781
+ ]
3782
+ },
3783
+ {
3784
+ "type": "array",
3785
+ "description": "An array of [Tween](./#tocs_tween) objects that change the playback speed over time. A speed of 0 holds the current frame. The clip length is not adjusted, so set it to cover the footage you want to play.",
3786
+ "items": {
3787
+ "$ref": "#/$defs/Tween"
3788
+ }
3789
+ }
3778
3790
  ]
3779
3791
  },
3780
3792
  "crop": {