Skip to content

Commit

Permalink
fixes: background image will now change after video background. updat…
Browse files Browse the repository at this point in the history
…e dependencies. I'm trying websockets instead of http transport for live stream, to just gain 2 sec delay. add new background video.
  • Loading branch information
reaby committed Nov 23, 2021
1 parent 413ae72 commit 2481ef0
Show file tree
Hide file tree
Showing 8 changed files with 2,401 additions and 662 deletions.
Binary file added data/backgrounds/bg_loop.mp4
Binary file not shown.
10 changes: 6 additions & 4 deletions data/bundles/default/bundle.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,25 @@
{
"displayName": "default",
"background": "bg.jpg",
"background": "bg_loop.mp4",
"duration": 15,
"transition": "Dreamy",
"transition": "fade",
"useWebFonts": false,
"displayTime": true,
"styleHeader": {
"stroke": "",
"fill": "#fff",
"fontSize": 56,
"fontWeight": 900,
"fontFamily": "Arial"
"fontFamily": "Arial",
"strokeWidth": 0
},
"styleText": {
"stroke": "",
"fill": "#fff",
"fontSize": 32,
"fontWeight": 900,
"fontFamily": "Arial"
"fontFamily": "Arial",
"strokeWidth": 0
},
"bundleName": "default"
}
3 changes: 2 additions & 1 deletion modules/admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,8 @@ class admin {

if (serverOptions.isStreaming === false) {
serverOptions.loop = false;
serverOptions.streamSource = "http://" + config.serverHost + ":" + (config.serverListenPort + 1) + "/live/" + config.streamKey + ".flv";
// changed next line from http:// to ws://, to reduce stream lag
serverOptions.streamSource = "ws://" + config.serverHost + ":" + (config.serverListenPort + 1) + "/live/" + config.streamKey + ".flv";
serverOptions.isStreaming = true;
cli.success("start stream");
} else {
Expand Down
Loading

0 comments on commit 2481ef0

Please sign in to comment.