Showing posts with label Silverlight. Show all posts
Showing posts with label Silverlight. Show all posts

Thursday, February 10, 2011

How to play steam video in Silverlight 4.0

Today , I am investigating how to play video in Silverlight 4.0 ,  using MediaElement, it is quite easy to play a video in local disk , or hold in a server that can be accessed through http.  but unfortunately , our server is in a seperate server, and exposed as mms stream.  

it is quite headache , I was plan to use telerik's media play control, but it can't support mms stream as well. it takes me a few hours to look around, but no luck , finally I was thinking whether I can change the mms protocol to using http to see what will happen,  the interesting thing is , I change the mms to http at the video url, and paste to chrome, and I found I can access it and play it successfully in a browser.

so I use MediaElement, and change the video url protocol to http and set to the source property of MediaElement, it works smoothly....

Is that mean mms is based on http? need to figure this out.

Saturday, January 29, 2011

Silverlight drag and drop issue

This week , I upgrade our project to silverlight 4, you know silverlight 4 is on the market for a long time, but unfortunately , we are still using silverlight 3.0, constrained by the infrastructure. cause it is not easy to change our build server.  finally now it is silverlight 4.

Once I finish up the upgrade, I came across a drag and drop issue. In silverlight 4, when I move mouse on the top of a ListBoxDragDropTarget, even me mouse left key is not down, but sometimes, it just start to drag....Which might cause a lot problem.  after some search , it turns out it is a bug of silverlight 4 toolkit, and I found a solution here  http://silverlight.codeplex.com/workitem/5930 , this solution works for me.