thibauts / node-castv2-client

A Chromecast client based on the new (CASTV2) protocol
MIT License
648 stars 95 forks source link

Set the user-agent? #54

Closed johnspurlock closed 7 years ago

johnspurlock commented 7 years ago

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!

thibauts commented 7 years ago

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 !

johnspurlock commented 7 years ago

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?

thibauts commented 7 years ago

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 !