How to play large video files in Silverlight 4

Feb 7 2011 12:27 PM
Hi every one,

I need to play large video file [ 2 GB ] in silverlight OOB application.

I am using byte array  to read the stream of the video file. so its giving error like OutOfBoundException if i try to load large files.

this is the sample code

FileStream fs = new FileStream("video.mp4",FileMode.Read);

fs.Read(byteArray,0,byteArray.Length);  This is line giving error..

Help me..

Thanks in advance..

Answers (8)