I have a MediaElement
that plays video. I have my video stored, in binary, in my SQL Server database.
The way this works out for me is that the Silverlight app reads ALL the binary data from a web service. The web service returns a byte[]
that I turn into a stream, and set as source for the MediaElement
.
The big problem with this is that it needs to read all the data before the MediaElement
's source can be set. With large videos, this takes a long time.
So, I was hoping to somehow take chunks, and buffer as I go, like any online video player does.
Any clues on how I can actually do that?
Could you please explain what did you do ? Because I have a similar problem.
There are a lot of films on a server which clients should watch them via Silverlight's MediaElement. Is that possible to have a MediaElement like :