NetrisTV / ws-qvh

Server for streaming the screen of iOS devices over WebSocket.
MIT License
31 stars 9 forks source link

WS-QVH buffer format and help #16

Open krishtoautomate opened 2 years ago

krishtoautomate commented 2 years ago

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.

drauggres commented 2 years ago

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.

krishtoautomate commented 2 years ago

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

drauggres commented 2 years ago

https://github.com/NetrisTV/ws-qvh/blob/dde948424463b4255c27e2897fa7c70eae691cc7/main.go#L23-L30