gingerbeur / google-cast-sdk

Automatically exported from code.google.com/p/google-cast-sdk
0 stars 0 forks source link

Enhancement: Expose system language to custom receivers. #519

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Requesting an addition to the Chromecast Receiver SDK, that would provide the 
system language set on the Chromecast device. 

This would allow for custom receivers to create localized error messages, idle 
screen promotions, etc. 

What version of the product are you using? On what operating system?
Cast Receiver v2.0.0
MPL v1.0.0

Original issue reported on code.google.com by tuc...@willowtreeapps.com on 5 Mar 2015 at 2:54

GoogleCodeExporter commented 9 years ago

Original comment by jonathan...@google.com on 5 Mar 2015 at 10:19

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Anty tips how to handle language for idle screen? 

Original comment by slavodes...@gmail.com on 16 Mar 2015 at 3:51

GoogleCodeExporter commented 9 years ago
We've had to implement a custom message that is send whenever a sender joins 
with the language  the sender desires. Then developed a quick mechanism that 
picks the language based on the majority of languages sent. 

Definitely not the best solution if we could tap into the system language. 

Original comment by tuc...@willowtreeapps.com on 16 Mar 2015 at 6:01

GoogleCodeExporter commented 9 years ago
You can find the system language on the device by looking at the 
accept-language header. The information is exposed in JavaScript using 
window.navigator.language and window.navigator.languages (for all the 
alternative values in the header).

Original comment by jonathan...@google.com on 3 Apr 2015 at 6:05

GoogleCodeExporter commented 9 years ago

Original comment by jonathan...@google.com on 6 Apr 2015 at 6:27