QuantumEntangledAndy / neolink

An RTSP bridge to Reolink IP cameras
GNU Affero General Public License v3.0
322 stars 44 forks source link

Pass error messages to reciever #40

Closed QuantumEntangledAndy closed 1 year ago

QuantumEntangledAndy commented 1 year ago

This makes it so that error messages during deser are passed onto the end points. This should allow for graceful stopping of the server and also better error tracking.

It also adds another discovery method and renames discovery functions to better reflect the underlying structure.

QuantumEntangledAndy commented 1 year ago

Also added configurable strict mode (default false). When false it will allow a stream to recover if the BcMedia stream becomes invalid by consuming one byte at a time until a magic header is found. When true it will error and terminate if there are any issues with the stream