Click here to Skip to main content
13,350,822 members (55,584 online)
Rate this:
Please Sign up or sign in to vote.
See more:
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
Sandeep Mewara 17-Jan-13 12:40pm
And you tried anything of what you plan to implement.
kiran131993 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 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 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 17-Jan-13 12:49pm
Another question to further clarify, is this winforms/wpf/ I see you said window forms but what to double check as client side could include a browser as well.
kiran131993 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
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:

These links may help you for implementing RTMP in your app:
Managed Media Aggregation using Rtsp and Rtp

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 :)

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.
SoMad 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 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
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web04 | 2.8.180111.1 | Last Updated 20 Jan 2013
Copyright © CodeProject, 1999-2018
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