mirror of
https://gitlab.crans.org/nounous/ghostream.git
synced 2024-12-22 10:22:19 +00:00
Make player poster customisable, fix #20
This commit is contained in:
parent
1cab361815
commit
a0e520e128
@ -102,6 +102,11 @@ web:
|
||||
#
|
||||
#oneStreamPerDomain: false
|
||||
|
||||
# Stream player poster
|
||||
# Shown when stream is loading or inactive.
|
||||
#
|
||||
#playerPoster: /static/img/no_stream.svg
|
||||
|
||||
# Refresh period for viewer stats (below the player)
|
||||
#
|
||||
#viewersCounterRefreshPeriod: 20000
|
||||
|
@ -63,6 +63,7 @@ func New() *Config {
|
||||
ListenAddress: ":8080",
|
||||
Name: "Ghostream",
|
||||
OneStreamPerDomain: false,
|
||||
PlayerPoster: "/static/img/no_stream.svg",
|
||||
ViewersCounterRefreshPeriod: 20000,
|
||||
},
|
||||
WebRTC: webrtc.Options{
|
||||
|
@ -3,7 +3,7 @@
|
||||
<div class="col-video">
|
||||
<!-- Video -->
|
||||
<div class="video-responsive">
|
||||
<video id="viewer" poster="/static/img/no_stream.svg" muted controls autoplay></video>
|
||||
<video id="viewer" poster="{{.Cfg.PlayerPoster}}" muted controls autoplay></video>
|
||||
</div>
|
||||
|
||||
<!-- Links and settings under video -->
|
||||
|
@ -23,6 +23,7 @@ type Options struct {
|
||||
ListenAddress string
|
||||
Name string
|
||||
OneStreamPerDomain bool
|
||||
PlayerPoster string
|
||||
SRTServerPort string
|
||||
STUNServers []string
|
||||
ViewersCounterRefreshPeriod int
|
||||
|
Loading…
Reference in New Issue
Block a user