Video streaming with c#

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi i am writing a application where i want to browse video file and copy data
into stream and send that stream over network...I have develop P2P windows
application where i successfully transfer text message to each other but now
i want to send video file and play that file on other end...I know the code
how to send the stream over the network but basic problem is how open that
file as a stream.

Thanks
 
Hello amjad,

Have u tried this http://groups.google.com/groups/search?q=dotnet+play+stream+video
?

a> Hi i am writing a application where i want to browse video file and
a> copy data into stream and send that stream over network...I have
a> develop P2P windows application where i successfully transfer text
a> message to each other but now i want to send video file and play that
a> file on other end...I know the code how to send the stream over the
a> network but basic problem is how open that file as a stream.
a>
a> Thanks
a>
---
WBR,
Michael Nemtsev [C# MVP] :: blog: http://spaces.live.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
 
Yah but did find any things.
I need some sample code how to stream vedio file using c# code not any third
party code....
 
It'd help to mention what type of video you're talking about. Some
videos use different formats for file storage and streaming and some
use multiple sockets for streaming.

Sam
 
any format i would like to try .....

I am using System.IO.Stream class object to send data across the network....

Can i use StreamReader to read the video file or i have to use special video
classess.

thanks
 
No, you can't use StreamReader. xxxReader classes are for text data,
videos are almost always binary.

What is the goal, just to transfer the file from one computer to
another or do you actually want to be able to stream out the video so
someone can pull it up in a viewer like quicktime or windows media or
vlc?

Sam
 
Then you'll need to implement RTSP, RTP, SDP and a host of other
standards. It's not as easy as which class do I use--it's a huge
undertaking. You will be better off looking into freely available
existing streaming servers instead of trying to build your own.

www.videolan.org

or

http://developer.apple.com/opensource/server/streaming/index.html

You could also host your videos on a web server and then they can be
accessed via HTTP which would provide "progressive download" access to
the videos (but not true streaming).

HTH,

Sam

------------------------------------------------------------
We're hiring! B-Line Medical is seeking Mid/Sr. .NET
Developers for exciting positions in medical product
development in MD/DC. Work with a variety of technologies
in a relaxed team environment. See ads on Dice.com.
 
I'm not saying use their code, I'm saying use their product. Run
their streaming server on your host computer.

Even in peer-to-peer you can set up a web server or video streaming
server on one of the "peers" and have th eother "peer" hit that. If
you need two way streaming then set up the servers on both peers.

BTW, are these peers in the same lan? You could save a ton of trouble
by just using a windows file share and opening the files directly in
windows media player.

Good luck,

Sam
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top