Fast open-source video streaming server written in Go
- authentication
- access control
- speed limiter
Media files are recursively added from target directories without category.
Categories can be added in the future via web interface.
Subtitle files must have same name as media files.
go run main.go run
go run main.go seed
libmagic
is required for mime detection.
sudo apt-get install libmagic // linux
brew install libmagic // osx
For User
, add bson: "id"
property to Email
field for MongoDB primary key.
cd ./govideo/models
go get github.com/gogo/protobuf/protoc-gen-gogoslick
protoc --proto_path=$GOPATH/src:. --gogoslick_out=. user.proto
cd ./govideo/models
easyjson response.go
easyjson media.go
webpack --progress --color
User session in redis can be expired based on activity. Set redis expiry to low value and update it whenever a request is made by the same user.
New struct that wraps around Media struct should be returned instead. Sensitive fields such as access and real path should not be visible.
- valyala/httprouter
- react
MIT