How to check if permission denied?

How to check if permission denied?

in the case where getUserMedia fails on error,
one of 2 messages needs to be delivered,
as in each case the author may want to present relevant information:
either please attach a camera, or a response to permission denied.

readyState muted seems a possible & likely candidate, but both Opera & Chrome 
return '0' when a camera is not attached, 
and  '0' when a camera is attached and permission is denied, expect '1' see below
ie should 'may' read 'must' 

comments would be appreciated

regards

MUTED of type unsigned short
The track is muted (the track’s underlying media source is temporarily unable to provide data).

A MediaStreamTrack in a LocalMediaStream may be muted if the user temporarily revokes the web application’s permission to use a media input device.


http://dev.w3.org/2011/webrtc/editor/getusermedia.html#callback-navigatorusermediasuccesscallback-parameters
 
Jonathan Chetwynd

~:" jay@peepo.com
http://www.peepo.com

+44 (0) 20 7978 1764

Received on Tuesday, 27 November 2012 16:34:56 UTC