Home > Development, Silverlight > CaptureDeviceConfiguration.RequestDeviceAccess() does not show the authorization popup

CaptureDeviceConfiguration.RequestDeviceAccess() does not show the authorization popup


Today I started playing a bit with Silverlight 4.0 RC. One of the things I wanted to do is to check out how to make my webcam work. If I look at the example code out there, one thing doesn’t really seem to be explained. When you call CaptureDeviceConfiguration.RequestDeviceAccess() in the constructor of your page it will not work as you are not in the UI thread. The authorization popup will not appear and you will not be able to grant Silverlight acces to your webcam.

Advertisements
  1. mozes
    January 29, 2011 at 4:54 pm

    thx! this was very helpful!

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: