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..
Loading


Krishna GaradRank #191 · 12.8K reputationPosted Feb 7, 2011, 6:26 PM EST
Silverlight provides one media control you can use this control to play a video for this you have no need to read from bytes and other. just give the url of video.
Soft CornerRank #1,221 · 1.5K reputationPosted Feb 7, 2011, 8:09 PM EST
take a look on this article
http://www.c-sharpcorner.com/UploadFile/mahesh/3851/
Jaganathan BantheswaranRank #170 · 14.1K reputationPosted Feb 7, 2011, 8:58 PM EST
Thanks.. But i need to play the video from local drives [C:\,D:\...].
Jaganathan BantheswaranRank #170 · 14.1K reputationPosted Feb 7, 2011, 9:01 PM EST
I need to play the video from the local drives like [ C:\, D:\ ...]
Krishna GaradRank #191 · 12.8K reputationPosted Feb 7, 2011, 9:11 PM EST
Krishna GaradRank #191 · 12.8K reputationPosted Feb 7, 2011, 9:12 PM EST
Jaganathan BantheswaranRank #170 · 14.1K reputationPosted Feb 7, 2011, 9:21 PM EST
But i am trying to play video using Silverlight OOB Application. You may be knowing that In silverlight we cant access the file from local drive. Thats why i confused.
Krishna GaradRank #191 · 12.8K reputationPosted Feb 7, 2011, 9:24 PM EST