Silverlight. Play video from byte array -



Silverlight. Play video from byte array -

i have silverlight application recieves special construction of media: images , videos. info recieved byte[] each image or video

to show images, use:

memorystream stream = new memorystream(node.resourcebin); bitmapimage bmp = new bitmapimage(); bmp.setsource(stream); imagecontainer.source = bmp;

and works.

to show video have tried:

memorystream stream = new memorystream(); stream.write(node.resourcebin, 0, node.resourcebin.length); stream.position = 0; videocontainer.setsource(stream); videocontainer.play();

and doesnt work. compared length of byte[] , original avi file , equals, so, info recieved correctly.

what's wrong it?

thanks

have verified silverlight can play video without loading stream? video issues i've had relate codec support. – real baumann 9 hours ago

sl plays wmv format. avi doesnt play @ all. thanks.

look here: http://forums.silverlight.net/t/9498.aspx/1

yes. according overview of silverlight,it back upwards (vc-1, wmv, wma, mp3) , 720p high definition (hd) video.

silverlight video byte mediaelement

Comments

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -