Skip to content

Commit 156d4bf

Browse files
author
Dean Fogarty
authored
Update generation, add new FPS settings (#14)
* Update api generator version, whitespace fixes. * First pass generator check. * Second pass generator check. * Bump version number. * Update README.md. * Fix generator enum on numeric.
1 parent ad59df9 commit 156d4bf

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+58
-48
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -729,7 +729,7 @@ setFormat(string format) | The output format and type of media file to generate.
729729
setResolution(string resolution) | The output resolution of the video or image. <ul><li>`preview` - 512px x 288px @ 15fps</li><li>`mobile` - 640px x 360px @ 25fps</li><li>`sd` - 1024px x 576px @ 25fps</li><li>`hd` - 1280px x 720px @ 25fps</li><li>`1080` - 1920px x 1080px @ 25fps</li></ul> | -
730730
setAspectRatio(string aspectRatio) | The aspect ratio (shape) of the video or image. Useful for social media output formats. Options are: <ul><li>`16:9` - regular landscape/horizontal aspect ratio (default)</li><li>`9:16` - vertical/portrait aspect ratio</li><li>`1:1` - square aspect ratio</li><li>`4:5` - short vertical/portrait aspect ratio</li><li>`4:3` - legacy TV aspect ratio</li></ul> | -
731731
setSize([Shotstack.Size](#size) size) | Set a custom size for a video or image. When using a custom size omit the `resolution` and `aspectRatio`. Custom sizes must be divisible by 2 based on the encoder specifications. | -
732-
setFps(int fps) | Override the default frames per second. Useful for when the source footage is recorded at 30fps, i.e. on mobile devices. Lower frame rates can be used to add cinematic quality (24fps) or to create smaller file size/faster render times or animated gifs (12 or 15fps). Default is 25fps. <ul><li>`12` - 12fps</li><li>`15` - 15fps</li><li>`24` - 24fps</li><li>`25` - 25fps</li><li>`30` - 30fps</li></ul> | -
732+
setFps(float fps) | Override the default frames per second. Useful for when the source footage is recorded at 30fps, i.e. on mobile devices. Lower frame rates can be used to add cinematic quality (24fps) or to create smaller file size/faster render times or animated gifs (12 or 15fps). Default is 25fps. <ul><li>`12` - 12fps</li><li>`15` - 15fps</li><li>`23.976` - 23.976fps</li><li>`24` - 24fps</li><li>`25` - 25fps</li><li>`29.97` - 29.97fps</li><li>`30` - 30fps</li></ul> | -
733733
setScaleTo(string scaleTo) | Override the resolution and scale the video or image to render at a different size. When using scaleTo the asset should be edited at the resolution dimensions, i.e. use font sizes that look best at HD, then use scaleTo to output the file at SD and the text will be scaled to the correct size. This is useful if you want to create multiple asset sizes. <ul><li>`preview` - 512px x 288px @ 15fps</li><li>`mobile` - 640px x 360px @ 25fps</li><li>`sd` - 1024px x 576px @25fps</li><li>`hd` - 1280px x 720px @25fps</li><li>`1080` - 1920px x 1080px @25fps</li></ul> | -
734734
setQuality(string quality) | Adjust the output quality of the video, image or audio. Adjusting quality affects render speed, download speeds and storage requirements due to file size. The default `medium` provides the most optimized choice for all three factors. <ul><li>`low` - slightly reduced quality, smaller file size</li><li>`medium` - optimized quality, render speeds and file size</li><li>`high` - slightly increased quality, larger file size</li></ul> | -
735735
setRepeat(bool repeat) | Loop settings for gif files. Set to `true` to loop, `false` to play only once. [default to `true`] | -
@@ -1098,4 +1098,4 @@ getUpdated(): string | The time the asset status was last updated. | -
10981098
- [Getting Started Guide](https://shotstack.io/docs/guide/getting-started/core-concepts/)
10991099
- [API Reference](https://shotstack.io/docs/api/)
11001100
- [Examples](https://github.com/shotstack/node-demos)
1101-
- [Shotstack Website](https://shotstack.io)
1101+
- [Shotstack Website](https://shotstack.io)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "shotstack-sdk",
3-
"version": "0.0.24",
3+
"version": "0.0.25",
44
"description": "Official Node SDK for the Shotstack Cloud Video Editing API",
55
"license": "MIT",
66
"main": "src/index.js",

src/ApiClient.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
88
* https://openapi-generator.tech
99
*
10-
* OpenAPI Generator version: 5.0.0
10+
* OpenAPI Generator version: 5.4.0
1111
*
1212
* Do not edit the class manually.
1313
*
@@ -545,7 +545,7 @@
545545
*/
546546
exports.parseDate = function(str) {
547547
if (isNaN(str)) {
548-
return new Date(str.replace(/T/i, ' '));
548+
return new Date(str.replace(/(\d)(T)(\d)/i, '$1 $3'));
549549
}
550550
return new Date(+str);
551551
};

src/api/EditApi.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
88
* https://openapi-generator.tech
99
*
10-
* OpenAPI Generator version: 5.0.0
10+
* OpenAPI Generator version: 5.4.0
1111
*
1212
* Do not edit the class manually.
1313
*

src/api/ServeApi.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
88
* https://openapi-generator.tech
99
*
10-
* OpenAPI Generator version: 5.0.0
10+
* OpenAPI Generator version: 5.4.0
1111
*
1212
* Do not edit the class manually.
1313
*

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
88
* https://openapi-generator.tech
99
*
10-
* OpenAPI Generator version: 5.0.0
10+
* OpenAPI Generator version: 5.4.0
1111
*
1212
* Do not edit the class manually.
1313
*

src/model/AssetRenderResponse.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
88
* https://openapi-generator.tech
99
*
10-
* OpenAPI Generator version: 5.0.0
10+
* OpenAPI Generator version: 5.4.0
1111
*
1212
* Do not edit the class manually.
1313
*

src/model/AssetResponse.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
88
* https://openapi-generator.tech
99
*
10-
* OpenAPI Generator version: 5.0.0
10+
* OpenAPI Generator version: 5.4.0
1111
*
1212
* Do not edit the class manually.
1313
*

src/model/AssetResponseAttributes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
88
* https://openapi-generator.tech
99
*
10-
* OpenAPI Generator version: 5.0.0
10+
* OpenAPI Generator version: 5.4.0
1111
*
1212
* Do not edit the class manually.
1313
*

src/model/AssetResponseData.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
88
* https://openapi-generator.tech
99
*
10-
* OpenAPI Generator version: 5.0.0
10+
* OpenAPI Generator version: 5.4.0
1111
*
1212
* Do not edit the class manually.
1313
*

0 commit comments

Comments
 (0)