Skip to main content
Home Forums General Silverlight Installation and Setup crossdomain.xml with windows media services
3 replies. Latest Post by cybercandyman on November 4, 2009.
(0)
cybercan...
Member
0 points
8 Posts
10-28-2009 5:16 AM |
Hello,
Is there a way to indicate a crossdomain.xml to windows media services ? The reason is that i want to use WriteableBitmap to capture picture from video, but I get an exception security when i get pixel from it.
So, maybe a crossdomain policy on wms, can make the job ?
Sorry for my english, i will try to explain more if it is not clear.
Thanks
Cyril
Jonathan...
All-Star
24939 points
2,425 Posts
11-03-2009 10:31 PM |
Hi Cybercandyman,
Seems that your problem is related with Windows Media Services rather than Silverlight. We would recommend you discuss it here.
To use WriteableBitmap to capture picture, you can do it like this.
WriteableBitmap wb = new WriteableBitmap(your MediaElement's NaturalVideoWidth, your MediaElement's NaturalVideoHeight);
wb.Render(your MediaElement, new MatrixTransform());
Best regards,
Jonathan
meidianto
583 points
124 Posts
11-03-2009 10:52 PM |
more on WriteableBitmap:http://msdn.microsoft.com/en-us/library/system.windows.media.imaging.writeablebitmap%28VS.95%29.aspx
11-04-2009 3:02 AM |
Hi All,
Thanks for your answers.
There is no problem with videos on the same domain, or with relative path. The security exception is thrown with video like : mms://otherdomain/video.wmv or http://otherdomain/video.wmv.
So i have to find a way to give authorization to my silverlight app from windows media services.It's clearly a problem with cross domain but i don't know how to solve it. It's ok for give authorization from a web server with crossdomain.xml or clientaccesspolicy.xml but i don't know with windows media services.
greetings