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
+34-4
Original file line number
Diff line number
Diff line change
@@ -14,18 +14,48 @@ Then just run the following command:
14
14
npx @streamerjs/streamerjs
15
15
```
16
16
17
-
## Configuration
17
+
## Scenes
18
+
19
+
Scenes are HTML files that are used to create the layout of the video stream. You can create multiple scenes and add them to OBS Studio as browser sources.
20
+
21
+
You can also create multiple files for different layers and group in folders per scene - ultimately, file organization is up to you.
22
+
23
+
### Create a basic scene
24
+
25
+
Run the following command to create a basic scene:
Streamer JS will create a basic scene in `/scenes/` folder that has some basic HTML elements, CSS stylesheet and a JavaScript file that uses PouchDB synchronization with the [control panel](#control-panel).
32
+
33
+
For further customization, you can modify the scene HTML, CSS and JavaScript to accomplish whatever you want.
34
+
35
+
## Additional Configuration
18
36
19
37
To configure the application, you need to create a file named `config.json` in the root of the project. This file can contain the following information:
20
38
21
39
```json
22
40
{
23
41
"port": 2525,
24
-
"dbpath": "db",
25
-
"control": true
42
+
"dbpath": "db"
26
43
}
27
44
```
28
45
29
46
-`port`: The port where the web server will run
30
47
-`dbpath`: The path where the database will be stored
31
-
-`control`: If `true`, the application will allow remote control of the stream
48
+
49
+
## Control Panel
50
+
51
+
To enable control panel, create a folder named `/control/` in the root of the project and add HTML page with a control panel that uses the PouchDB to update the UI.
52
+
53
+
### Create a basic control panel
54
+
55
+
To create a basic control panel file in `/control/` folder, run the following command:
0 commit comments