You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+55-47Lines changed: 55 additions & 47 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,5 @@
1
+
Note: Updated for API v2.0
2
+
1
3
# Create videos programmatically in Node JS
2
4
Create and edit videos: add watermarks, resize videos, create slideshows, add soundtrack, automate the creation of videos in multiple languages, add voice-over, add text animations.
3
5
@@ -38,54 +40,60 @@ JSON2Video makes video creation easy as a piece of cake:
38
40
39
41
```javascript
40
42
const {Movie, Scene} =require("json2video-sdk");
41
-
42
-
// Create a new movie
43
-
let movie =newMovie;
44
-
45
-
// Set your API key
46
-
// Get your free API key at https://json2video.com
47
-
movie.setAPIKey(YOUR_API_KEY);
48
-
49
-
// Set a project ID
50
-
movie.set("project", "myproj");
51
-
52
-
// Set movie quality: low, medium, high
53
-
movie.set("quality", "high");
54
-
55
-
// Create a new scene
56
-
let scene =newScene;
57
-
58
-
// Set the scene background color
59
-
scene.set("background-color", "#4392F1");
60
-
61
-
// Add a text element printing "Hello world" in a fancy way (basic/006)
62
-
// The element is 10 seconds long and starts 2 seconds from the scene start
63
-
// Element's vertical position is 50 pixels from the top
0 commit comments