Comments (14)
One not-well-documented feature is you can have local overrides for CSS, Javascript, images, etc.
So, in the docker version, you can mount a volume in the container at /home/multistreamer/share/multistreamer/html/local/css/
, and it will serve css files out of that folder if they exist. So you don't need to have all the CSS files in there, just the ones you care about overriding.
So in your docker-compose.override.yml
file, you could have a volume line like:
- /some/path/wherever/css:/home/multistreamer/share/multistreamer/html/local/css
Copy multistreamer.css from this repo to /some/path/wherever/css
and edit as needed.
That would be really helpful, you could submit it later on for the proper "night mode override" file
EDIT: I had the path wrong. Triple-checking with Docker-compose now
DOUBLE-EDIT: Yep, that's all correct and it works!
from multistreamer.
Alright, I just pushed 11.4.0 which has a basic night-mode UI. It can be set in the profile, or it can be set anytime by adding "night_mode=true" to any URL (for the chat widget, for example). Also, putting "night_mode=(whatever)" will always override what a user's set in their profile.
I'm going to consider "night mode" kind of a beta feature right now, I'm sure there's parts of the CSS that need to be updated.
from multistreamer.
Awwwwyis. Solid.
from multistreamer.
i doubt that JPR will have something against editing the css used. feel free to add the feature :)
from multistreamer.
That's a great idea!
I think the best way to go about it is to:
- add a new field to the user table to store preferences. It can just be a blob of JSON
- Add a drop-down to the "profile" section so a user can change between night mode and regular mode
- Then
lib/multistreamer/views/chatlayout.etlua
can conditionally include a nightmode CSS file, which has overrides for the colors used
I should be able to get those steps done and get a stubbed night-mode CSS file going, which you could then edit
from multistreamer.
Man, I was halfway through tampering the CSS via dev tools.. and was almost done with a dark version until I happen to clink a link which re-loaded the default css. facepalm
I was planning to just 'fetch' my night mode css code from an upload site and just sideload it via a command when I launch the container.
Any implementation would be appreciated. I dont really need customizations like a banner photo or font change or what.. Just something dark.
Thanks!
from multistreamer.
thankssss!
from multistreamer.
Weird, I redeployed with the same config, everything was fine from last night but botched after I redeployed today.
Error
[string "etlua"]:27: attempt to index global 'user' (a nil value)
Traceback
stack traceback:
[string "etlua"]:27: in function 'run'
.../multistreamer/lua_modules/share/lua/5.1/lapis/etlua.lua:158: in function 'render'
...ultistreamer/lua_modules/share/lua/5.1/lapis/request.lua:242: in function 'render'
...streamer/lua_modules/share/lua/5.1/lapis/application.lua:136: in function <...streamer/lua_modules/share/lua/5.1/lapis/application.lua:135>
[C]: in function 'xpcall'
...streamer/lua_modules/share/lua/5.1/lapis/application.lua:159: in function 'dispatch'
.../multistreamer/lua_modules/share/lua/5.1/lapis/nginx.lua:215: in function 'serve'
content_by_lua(nginx.conf:69):2: in function <content_by_lua(nginx.conf:69):1>
from multistreamer.
i can confirm, with 11.4.0 the above error shows.
from multistreamer.
Oh wow, that's bad on my part. I tested nearly everything except for logging out.
Since there's no "user" object if you're not logged in, I can't exactly check for the user's preferences, can I? Fix incoming
from multistreamer.
Just pushed up tag 11.4.1, I've got the docker images building right now
from multistreamer.
for some reason, i just pulled now, still the same. i will check the container logs
ps: im filing a ticket (low prio) if you can pipe the logs to stderr/stdout so i can easily retrieve them without docker exec (through DC/OS)
from multistreamer.
Regarding logs: I can do that, but in the meantime I'd just make /var/log/multistreamer (or all of /var/log) a volume to some path on the host. That should also save you from having to docker exec, and keep logs around as you stop/destroy/restart containers. They have their own built-in rotater, so you don't have to worry about setting up logrotate or anything like that.
from multistreamer.
Marking as resolved. Will file new issues if UI color theme is mis-matched at some sections.
from multistreamer.
Related Issues (20)
- Questions ! HOT 1
- Mixer module is completely broken HOT 7
- IRC connection reset HOT 8
- [feature request] Can the chat widget be transparent? HOT 2
- [REQ] webhooks HOT 1
- Custom front end HOT 2
- Make project fail - 2 errors HOT 4
- Twitch API HOT 4
- Possible to set IRC client to OPER? HOT 1
- Option to not end youtube stream on lost signal (same as FB) HOT 1
- Feature Request, Transitions or Static Image per Stream HOT 3
- Plans for Instagram streaming? HOT 3
- Facebook Scheduled Streams not in list HOT 1
- Terms of Service page HOT 1
- Referenced maintained version of RTMP module HOT 2
- YouTube doesn't appear to stop livestreaming when RTMP stream ends HOT 3
- Writing comments on FB page / profile HOT 2
- Facebook Module does without SSL HOT 1
- User access permissions and security HOT 2
- Using FFMPEG Args HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from multistreamer.