Skip to main content

Microsoft Silverlight

Unanswered Question crossdomain.xml with windows media servicesRSS Feed

(0)

cybercandyman
cybercan...

Member

Member

0 points

8 Posts

crossdomain.xml with windows media services

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 Shen – MSFT
Jonathan...

All-Star

All-Star

24939 points

2,425 Posts

Microsoft

Re: crossdomain.xml with windows media services

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

Jonathan Shen
Microsoft Online Community Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help.

meidianto
meidianto

Member

Member

583 points

124 Posts

Re: Re: crossdomain.xml with windows media services

more on WriteableBitmap:
http://msdn.microsoft.com/en-us/library/system.windows.media.imaging.writeablebitmap%28VS.95%29.aspx

Please "Mark as Answer" if this post answers your question.

Ferry Meidianto
www.meidianto.com

cybercandyman
cybercan...

Member

Member

0 points

8 Posts

Re: Re: crossdomain.xml with windows media services

 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.

I tried to go through a videobrush to capture the image on a different element than MediaElement, but this is the same thing.

greetings

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities