Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WS-QVH buffer format and help #16

Open
krishtoautomate opened this issue Feb 1, 2022 · 3 comments
Open

WS-QVH buffer format and help #16

krishtoautomate opened this issue Feb 1, 2022 · 3 comments

Comments

@krishtoautomate
Copy link

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
Copy link
Collaborator

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
Copy link
Author

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

@drauggres
Copy link
Collaborator

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)
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants