ffmpeglab-sdk 0.3.8 → 0.3.11

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.
@@ -16,7 +16,6 @@ docs/RenderResponse.md
16
16
  docs/RendersApi.md
17
17
  docs/Resize.md
18
18
  docs/RunDto.md
19
- package.json
20
19
  src/apis/AppApi.ts
21
20
  src/apis/RendersApi.ts
22
21
  src/apis/index.ts
@@ -30,4 +30,5 @@
30
30
 
31
31
  # The following entries are pre-populated based on the input obtained via
32
32
  # the option `openapiGeneratorIgnoreList` (--openapi-generator-ignore-list in CLI for example).
33
+ package.json
33
34
  README.md
package/README.md CHANGED
@@ -7,22 +7,36 @@ Welcome to ffmpeglab typescript sdk.
7
7
 
8
8
  This simple code allows you to render a small project
9
9
 
10
- ```
11
- import * as ffmpeglab from 'ffmpeglab-sdk'
10
+ ```ts
11
+ import * as ffmpeglab from 'ffmpeglab-sdk';
12
12
 
13
13
  const clientConfig = new ffmpeglab.Configuration({
14
- accessToken:"API_KEY",
15
- basePath:"https://api.ffmpeglab.com"
16
- })
17
-
18
- const client = new ffmpeglab.RendersApi(clientConfig)
19
-
20
- const renderDto = renderData as ffmpeglab.RenderDto
21
-
22
- const newRender = await client.rendersControllerCreate({renderDto})
23
-
24
- await client.rendersControllerRunRender({runDto:{id:newRender.id}})
25
-
14
+ accessToken: 'API_KEY',
15
+ basePath: 'https://api.ffmpeglab.com',
16
+ });
17
+
18
+ const client = new ffmpeglab.RendersApi(clientConfig);
19
+
20
+ const render = await client.rendersControllerCreate({
21
+ project: 'myproject',
22
+ editor: {
23
+ code: '-i $MEDIA_1 -movflags +faststart myproject.mp4',
24
+ selectedCode: 'custom',
25
+ },
26
+ layers: [
27
+ {
28
+ id: 'layer1',
29
+ media: [
30
+ {
31
+ id: 'media1',
32
+ url: 'https://test-videos.co.uk/vids/bigbuckbunny/mp4/h264/360/Big_Buck_Bunny_360_10s_1MB.mp4',
33
+ },
34
+ ],
35
+ },
36
+ ],
37
+ });
38
+
39
+ await client.rendersControllerRunRender({runDto:{id:render.id}})
26
40
  ```
27
41
 
28
42
 
package/package.json CHANGED
@@ -1,11 +1,10 @@
1
1
  {
2
2
  "name": "ffmpeglab-sdk",
3
- "version": "0.3.8",
4
- "description": "OpenAPI client for ffmpeglab-sdk",
5
- "author": "OpenAPI-Generator",
3
+ "description": "typescript client for ffmpeglab",
4
+ "author": "danilaplee",
6
5
  "repository": {
7
6
  "type": "git",
8
- "url": "https://github.com/GIT_USER_ID/GIT_REPO_ID.git"
7
+ "url": "https://github.com/ffmpeglab/server.git"
9
8
  },
10
9
  "main": "./dist/index.js",
11
10
  "types": "./dist/index.d.ts",
@@ -17,5 +16,6 @@
17
16
  },
18
17
  "devDependencies": {
19
18
  "typescript": "^4.0 || ^5.0"
20
- }
19
+ },
20
+ "version": "0.3.11"
21
21
  }