Is it able to work in Silverlight 5?

Mar 24, 2012 at 1:18 AM

Hi, great work you've done!

I would like to use it in Silverlight applications, is there any constraints to reach this?


Mar 24, 2012 at 1:20 AM

We don't provide a Silverlight client for the project, but you should be able to port the Windows Phone client over fairly easily.

Mar 26, 2012 at 4:32 PM

Hi Thanks for your reply. I tried to use the Coding4Fun.Kinect.KinectService.Common and the Coding4Fun.Kinect.KinectService.PhoneClient, addint these references to my silverlight applications. No compiler errors were found.

But when I tried to connect the colorClient being already risen the console Host, but I was not able to connect. I do no know why yet, can you guide please?

Should I used something else or different in my silverlight app, should I change something (what something) and recompile the windows phone client?

(this is the code I used) 

if (!_colorClient.IsConnected)
    _colorClient.Connect(ServerIp.Text, 4530);
catch (Exception ex)


Mar 26, 2012 at 4:37 PM

It won't work directly.  My comment meant was that you'd have to port the code over to Silverlight projects (a Silverlight Common, a Silverlight Client, etc) and that the code that would be the closest to the Silverlight way of doing things would be the Windows Phone versions, but they are not identical.  I'm not sure what you would need to change off the top of my head...

Mar 26, 2012 at 8:07 PM

Thanks Again, I will search something about the Silverlight Sockets Theory even I guesses that Windows Phone will be very similar to Silverlight apps. In addition, could you tell me if the Windows Phone Sample only runs on the device? Because trying to check the code in order to conver it to silverlight apps, I launched the Windows Phone Sample on the Visual Studio Emulator but it did not work. Is there any constraint for the emulator?

Mar 26, 2012 at 11:34 PM

It works on device or emulator. Make sure you have entered the actual IP address of the host machine, not, which would point back to the device/emulator itself.

Mar 27, 2012 at 10:33 AM

Thanks Once more and Sorry for my stupid question! Now it works on Silverlight I just create silverlight classes for KinectService.Common and KinectService.SilverlightClient; It works fine! some delay but pretty good. The one thing I would like to fix is that it only works (for now) in Silverlight Trusted Applications (OOB and InBrowser), but I would like that it works in a Non trusted application, I supposed that I must work out with cross domain policies but I do not know yet (in your code) where to do it.

Any suggestions?

Mar 27, 2012 at 4:15 PM

I'm not much of a Silverlight guy, but check out the "Security Policy Restrictions on Connecting to Sites" section at for some more details.  Looks like you need to implement what's here to have this work in-browser...

Mar 27, 2012 at 7:36 PM

Hi, I hope you dont mind if I bother you frecuently but I am an ImagineCup competitor and I am right now at the round2, so please your help is awesome and effective, thanks again. My new problem is that DynamicSoundEffectInstance for silverlight doesn't exist, I dont know why, if It exists for Windows Phone, but well, Can you guide me how to work with Kinect Audio Stream without DynamicSoundEffectInstance Class.

Mar 27, 2012 at 10:21 PM

DynamicSoundEffect is from XNA, which exists on Phone.  You may be able to use it with Silverlight with the new Silverlight/XNA integration.  I'm not entirely sure how that may be graphics only, not audio.  Anyone else familiar enough with Silverlight that may know