How do I detect a chromecast device in Javascript

Viewed 6507

The app I'm writing will behave differently if it detects that its host is not a chromecast device. What javascript code would determine whether or not it is running on a chromecast device?

2 Answers
Related