@shotstack/schemas 1.19.0 → 1.20.0

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.
@@ -1676,12 +1676,24 @@
1676
1676
  "type": "string"
1677
1677
  },
1678
1678
  "speed": {
1679
- "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).",
1680
- "type": "number",
1681
- "format": "float",
1682
- "minimum": 0,
1683
- "maximum": 10,
1684
- "example": 1
1679
+ "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.",
1680
+ "oneOf": [
1681
+ {
1682
+ "type": "number",
1683
+ "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).",
1684
+ "format": "float",
1685
+ "minimum": 0,
1686
+ "maximum": 10,
1687
+ "example": 1
1688
+ },
1689
+ {
1690
+ "type": "array",
1691
+ "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.",
1692
+ "items": {
1693
+ "$ref": "#/components/schemas/Tween"
1694
+ }
1695
+ }
1696
+ ]
1685
1697
  },
1686
1698
  "crop": {
1687
1699
  "$ref": "#/components/schemas/Crop"
@@ -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": {