Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#
hi again,
 
im now involved in a project for developing a server and client application in which a video file from server side is to be displayed in all the client side applications (multiple clients at a time).
 
so it should work like 2 windows open in the server and client computers and the video should run within both the server and client window forms.
 
any help ???
Posted 17-Jan-13 7:35am
Comments
Sandeep Mewara at 17-Jan-13 12:40pm
   
And you tried anything of what you plan to implement.
kiran131993 at 18-Jan-13 13:30pm
   
i have implemented the desktop sharing technique and now want to stream video files alone in a form
David_Wimbley at 17-Jan-13 12:44pm
   
what exactly do you need help with? logistics of client server and how that works? how to stream a file in c#? how to open 2 windows at once? If you can provide some clarification im sure youd get a better response
kiran131993 at 17-Jan-13 12:46pm
   
k i need to know abt how to send the video from server side and how to receive it in the client side.
also wat protocol that i can use.
David_Wimbley at 17-Jan-13 12:49pm
   
Another question to further clarify, is this winforms/wpf/asp.net? I see you said window forms but what to double check as client side could include a browser as well.
kiran131993 at 17-Jan-13 12:51pm
   
i want to do it in windows forms. and not to open a webpage and all.
just run the forms on both sides and show the video played.(more kind of like a seminar session but not live but pre-recorded)

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

First you need to tell us what you did until now. What type of video you have now and ...
 
But about your question you need to convert images or video source to an acceptable video format. Using FFMPEG or something like that.
But if you have video file in an acceptable format already you can ignore above line
.
Then you need to send data to client(s). For doing so you need to learn socket programming or you need to use a library. Two famous streaming protocols are:
http://en.wikipedia.org/wiki/Microsoft_Media_Services
http://en.wikipedia.org/wiki/Real_Time_Messaging_Protocol
 
These links may help you for implementing RTMP in your app:
http://www.live555.com/liveMedia/
Managed Media Aggregation using Rtsp and Rtp
http://net7mma.codeplex.com/
http://www.streamcoders.com/
 
Or you can write your own protocol completely from ground and actually I recommend it because it is easier to learn socket programming then using MMS or RTMP Smile | :)
 
Then in your client app you need to render video. You can use a user control or you can use Direct2D to show video to user. But this is an other topic.
  Permalink  
Comments
SoMad at 20-Jan-13 15:41pm
   
I would not recommend OP writes his own protocol. If this is supposed to run in different network environments, there is a good chance network administrators will resist it and in many organizations, their word is the law. Stick with standardized protocols. RTP can be a pain to get fully integrated, but it is a well established protocol with support for proxy servers, which is something that can also make or break the application being accepted by a network administrator.
 
Soren Madsen
Soroush Falahati at 20-Jan-13 17:32pm
   
Yeah. You are correct. But he can write it's own protocol based on HTTP protocol and it will solve any problem. The main reason that I said, writing it him-self is better, is simplifying of protocol. He will get rid of lot of difficulties that come with RTMP. But any way every thing depends on him.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 350
1 Jochen Arndt 150
2 PIEBALDconsult 110
3 Richard MacCutchan 105
4 Sergey Alexandrovich Kryukov 104
0 OriginalGriff 6,055
1 DamithSL 4,621
2 Maciej Los 4,087
3 Kornfeld Eliyahu Peter 3,500
4 Sergey Alexandrovich Kryukov 3,294


Advertise | Privacy | Mobile
Web04 | 2.8.141220.1 | Last Updated 20 Jan 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100