mirror of
https://github.com/owncast/owncast.git
synced 2024-11-21 20:28:15 +03:00
Merge branch 'master' into 0614gw-updates
This commit is contained in:
commit
1b2b7248fc
3 changed files with 9 additions and 4 deletions
4
stats.go
4
stats.go
|
@ -30,7 +30,7 @@ type Stats struct {
|
|||
func (s *Stats) Setup() {
|
||||
s.clients = make(map[string]time.Time)
|
||||
|
||||
statsSaveTimer := time.NewTicker(2 * time.Minute)
|
||||
statsSaveTimer := time.NewTicker(1 * time.Minute)
|
||||
go func() {
|
||||
for {
|
||||
select {
|
||||
|
@ -40,7 +40,7 @@ func (s *Stats) Setup() {
|
|||
}
|
||||
}()
|
||||
|
||||
staleViewerPurgeTimer := time.NewTicker(5 * time.Second)
|
||||
staleViewerPurgeTimer := time.NewTicker(3 * time.Second)
|
||||
go func() {
|
||||
for {
|
||||
select {
|
||||
|
|
|
@ -15,6 +15,10 @@
|
|||
<script src="vendor/autolink.js"></script>
|
||||
<link href="./styles/layout.css" rel="stylesheet" />
|
||||
|
||||
<link
|
||||
href="https://unpkg.com/@videojs/themes@1/dist/sea/index.css"
|
||||
rel="stylesheet"
|
||||
/>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
@ -53,11 +57,12 @@
|
|||
|
||||
<div id="video-container" class="flex shadow-md owncast-video-container">
|
||||
<video
|
||||
class="video-js"
|
||||
class="video-js vjs-theme-sea"
|
||||
id="video"
|
||||
preload="auto"
|
||||
controls
|
||||
autoplay
|
||||
playsinline
|
||||
muted
|
||||
poster="https://goth.land/thumbnail.png"
|
||||
data-setup='{}'
|
||||
|
|
|
@ -100,5 +100,5 @@ function setupWebsocket() {
|
|||
setupApp()
|
||||
getStatus()
|
||||
setupWebsocket()
|
||||
// setInterval(getStatus, 5000)
|
||||
setInterval(getStatus, 5000)
|
||||
|
||||
|
|
Loading…
Reference in a new issue