NetrisTV/ws-qvh

WS-QVH buffer format and help

krishtoautomate opened this issue · 3 comments

Hi Can you help me, how ws-qvh works and what format, it is buffering its raw data. so i can use AVFOUNDATION ios library to mimic same.

Hi.
ws-qvh sends raw h264 NAL-units with additionally four bytes at the beginning ([]byte{00, 00, 00, 01}) over Web Socket. One NALU per message.
That's all.

I have pure swift version using AVFoundation, I ll see if I can stream to websocket.
how port is managed? random?

ws-qvh/main.go

Lines 23 to 30 in dde9484

func main() {
log.SetLevel(log.DebugLevel)
addr := "127.0.0.1:8080"
if len(os.Args) > 1 {
addr = os.Args[1]
}
startWebSocketServer(addr)
}