KirovBvulgaru / google-cast-sdk

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

inconsistency between Session#setReceiverVolumeLevel and chrome.cast.Volume #152

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
chrome.cast.Volume does accept a string '0.5' and a number 0.5 as value for 
level property, but setReceiverVolumeLevel doesn't accept a string 
representation for the level value.

chrome.cast.media.SeekRequest's currentTime can also be a string.

What is the expected output? What do you see instead?
it would be good when setReceiverVolumeLevel also accepts string 
representations of the number so that the api is consistent.

Please provide any additional information below.
html5 range inputs report their value as string so it would be easier to use.

Original issue reported on code.google.com by p...@zattoo.com on 20 Feb 2014 at 5:40

GoogleCodeExporter commented 8 years ago
Developers can take care of this kind of conversion (casting) of data types 
easily in apps.

Original comment by shawns...@google.com on 20 Feb 2014 at 10:17