thibauts/node-castv2-client

Set the user-agent?

johnspurlock opened this issue · 3 comments

Hi there, is it possible to provide the userAgent string sent over to the receiver? i.e. the one that ends up in onSenderConnected.

Right now it is the empty string.

Thanks!

Hi John, I don't know how the user-agent is transmitted. I have not observed it in the protocol when I worked on it. This is probably something new and I have no clue !

Ok - any pointers on where to look? I tried searching for "agent" in various github repos that try and implement the v2 protocol, no luck.

I imagine it's probably in the chromium source somewhere, do you remember where you were looking for hints like this?

Most castv2 implementations (if not all) are based on this implementation.

You'll find instructions here for protocol snooping.

Let me know if you find something interesting, or send a PR !