Compare commits

..

4 Commits

Author SHA1 Message Date
dexterlb 150e442f37 update example config 2024-10-12 15:15:11 +03:00
dexterlb d57f6258bb web_server option 2024-10-05 15:14:31 +03:00
dexterlb acf7d44fb3 add example config 2024-10-05 15:13:09 +03:00
dexterlb a36a5906f8 add initial scaffold for break player 2024-10-05 14:54:15 +03:00
12 changed files with 4275 additions and 11 deletions

2
.gitattributes vendored
View File

@ -1,2 +0,0 @@
*.qet filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text

19
break_player/.gitignore vendored Normal file
View File

@ -0,0 +1,19 @@
# Binaries for programs and plugins
*.exe
*.exe~
*.dll
*.so
*.dylib
# Test binary, built with `go test -c`
*.test
# Output of the go coverage tool, specifically when used with LiteIDE
*.out
# Dependency directories (remove the comment below to include it)
# vendor/
# Go workspace file
go.work

View File

@ -0,0 +1,27 @@
package main
import (
"fmt"
"os"
"git.openfest.org/Video/openfest-video/break_player/mainservice"
)
func main() {
if len(os.Args) != 2 {
fmt.Fprintf(os.Stdout, "usage: %s <yaml config filename>\n", os.Args[0])
os.Exit(1)
}
svc, err := mainservice.New(os.Args[1])
if err != nil {
fmt.Fprintf(os.Stdout, "could not init main service: %s\n", err)
os.Exit(1)
}
err = svc.Serve()
if err != nil {
fmt.Fprintf(os.Stdout, "server died: %s\n", err)
os.Exit(1)
}
}

View File

@ -0,0 +1,34 @@
web_server:
bind: '[::]:8000'
player:
initial_playlist: 'off'
start_volume: 100
reset_volume_at_each_play: true
playlists:
- name: 'promo'
order: 'sequential'
media:
- '/home/human/s/random/blender_movies/big_buck_bunny_720_stereo-720p.mp4'
- '/home/human/s/random/blender_movies/sintel-the-movie-720p.mp4'
- name: 'openart_casting_couch'
media:
- 'rtmp://strm.ludost.net/openfest_interviews'
- name: 'openart_lecture'
media:
- 'rtmp://strm.ludost.net/openfest_interviews'
- name: 'ads'
order: 'shuffle'
media:
- '/home/human/s/random/blender_movies/big_buck_bunny_720_stereo-720p.mp4'
- '/home/human/s/random/blender_movies/sintel-the-movie-720p.mp4'
- '/home/human/s/random/blender_movies/elephants-dream-1080p.mp4'
- '/home/human/s/random/blender_movies/tears-of-steel.mp4'
- name: 'off'
media:
- '/home/human/s/random/placeholder.png'

3
break_player/go.mod Normal file
View File

@ -0,0 +1,3 @@
module git.openfest.org/Video/openfest-video/break_player
go 1.22.2

View File

@ -0,0 +1,16 @@
package mainservice
type MainService struct {
}
func New(configFileName string) (*MainService, error) {
// parse config
return nil, nil
}
func (s *MainService) Serve() error {
// start web server in goroutine
// start mpvipc in another goroutine
// go!
return nil
}

Binary file not shown.

BIN
schematics/2023-of/audio_video_B.qet (Stored with Git LFS)

File diff suppressed because it is too large Load Diff

BIN
schematics/2024-balkanruby/audio_video.qet (Stored with Git LFS)

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff