lddl / video-server Goto Github PK
View Code? Open in Web Editor NEWServer which connects to set of existing RTSP's and provides HLS/MSE-based streams.
License: MIT License
Server which connects to set of existing RTSP's and provides HLS/MSE-based streams.
License: MIT License
hi. I have a problem 'appendBuffer' in MsePlayer. Server written in rast. I getting streams in 'arrayBuffer', but i get the error: Cannot read property 'appendBuffer' of null. I need help. I will be grateful for the help.
[GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.
2020/09/18 22:23:35 Server has been started (awaiting signal to exit)
2020/09/18 22:23:35 Stream must be establishment for 'c2680f08-07cc-4dee-9231-685893e2661f' by connecting to rtsp://admin:[email protected]/h265/ch1/main/av_stream
2020/09/18 22:23:35 Fix Format may be raw PCM 97 96
Is your feature request related to a problem? Please describe.
There is new version of RTSP library: https://github.com/deepch/vdk
We are interested in https://github.com/deepch/vdk/tree/master/format/rtspv2
Describe the solution you'd like and provide pseudocode examples if you can
Move to new syntax of 'rtspv2'. Check if everything still works
Additional context
nope
Is your feature request related to a problem? Please describe.
Here is example of code without any client feedback about error:
func wshandler(wsUpgrader *websocket.Upgrader, w http.ResponseWriter, r *http.Request, app *Application) {
...
...
streamIDSTR := r.FormValue("suuid")
streamID, err := uuid.Parse(streamIDSTR)
if err != nil {
log.Printf("Can't parse UUID: '%s' due the error: %s\n", streamIDSTR, err.Error())
return
}
...
...
}
It's bad practice, because client doesn't even know who (client or server) is wrong in case when there is no video-stream in player without talking to Back-end programmer.
Describe the solution you'd like and provide pseudocode examples if you can
Just wrtie some fancy error codes (with text) for most of cases.
Describe alternatives you've considered and provide pseudocode examples if you can
nope
Additional context
nope
Is your feature request related to a problem? Please describe.
CORS is hardcoded currently. It ill be good to have an option for it.
Describe the solution you'd like and provide pseudocode examples if you can
Edit *.json configuration file. Update Go's structs, add some conditions checks.
Describe alternatives you've considered and provide pseudocode examples if you can
nope
Additional context
nope
Describe the bug
can't sync dependency
To Reproduce
go mod tidy
~/go/src/github.com/LdDl/video-server(master) » go mod tidy
verifying github.com/morozka/[email protected]: checksum mismatch
downloaded: h1:pPU9EkyU6k8xIET23Q+VZgyozCwLkiRUB0feoKynKYM=
go.sum: h1:pRCLahoaYW8OCyavzCdB/3c/DONVg1PEvknlsYrRwl8=
SECURITY ERROR
This download does NOT match an earlier download recorded in go.sum.
The bits may have been replaced on the origin server, or an attacker may
have intercepted the download attempt.
For more information, see 'go help module-auth'.
Expected behavior
after run go mod tidy
, it should produce
~/go/src/github.com/LdDl/video-server(master*) » go mod tidy
go: finding module for package github.com/morozka/vdk/av
go: finding module for package github.com/morozka/vdk/format/rtsp
go: finding module for package github.com/morozka/vdk/format/ts
go: finding module for package github.com/morozka/vdk/format/mp4f
go: found github.com/morozka/vdk/av in github.com/morozka/vdk v0.0.0
go: found github.com/morozka/vdk/format/mp4f in github.com/morozka/vdk v0.0.0
go: found github.com/morozka/vdk/format/rtsp in github.com/morozka/vdk v0.0.0
go: found github.com/morozka/vdk/format/ts in github.com/morozka/vdk v0.0.0
Describe the solution you'd like and provide pseudocode examples if you can
I remove go.mod
and go.sum
and run go mod init
go mod tidy
, it works, maybe I should send a pull request later.
I think this may caused by vdk updated the source code
Additional context
my environment:
~/go/src/github.com/LdDl/video-server(master) » go version
go version go1.15.6 linux/amd64
Is your feature request related to a problem? Please describe.
There are MSE+HLS output always for every possible stream.
It should be optional for some cases: sometimes you just do not need, i.e., HLS output.
Describe the solution you'd like and provide pseudocode examples if you can
Add necessary filed to *.json configuration file.
Update HTTP/WS handlers.
Update StartStreams function
Describe alternatives you've considered and provide pseudocode examples if you can
nope
Additional context
nope
Is your feature request related to a problem? Please describe.
Consider storing (optionally) archive videos in filesystem
Describe the solution you'd like and provide pseudocode examples if you can
Is your feature request related to a problem? Please describe.
Consider WebRTC output
Describe the solution you'd like and provide pseudocode examples if you can
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.