Click here to Skip to main content
15,888,224 members
Articles / Desktop Programming / MFC
Article

Windows Media video chatting tool

Rate me:
Please Sign up or sign in to vote.
3.32/5 (35 votes)
20 Feb 2004Apache1 min read 278.9K   11.7K   81   78
Videochat app using Windows Media technology.

Sample screenshot

Video chat using Winsock and Windows media

This software allows one to setup a server and engage in video chatting using Windows media technology. It makes use of capability within "Windows Media Format" SDK to capture audio/video, compress it and deliver it to a client via the "Windows Media Encoder". Windows Media itself is better suited for content distribution, not live video chat. Included within the software is a simple text chat client which coordinates text chat between members in a certain chat room. Below is a list of the core classes and a brief description.

Within the client app, which is the CPianChat app is:

class CEncoderImpl

The above class is the utility class, used to manipulate the encoder interface.

static IWMEncoder* pEncoder;//encoder interface

void CreateEnc();           //initializes the encoder interface
void StartEncoder();        //starts the encoder
void StopEncoding();        //stops encoder
void Setport();             //set port that other's should connect to.

This class encapsulates the Windows Media Player control.

 class CMediaPlayer2

void Open(LPCTSTR bstrFileName);
//opens a connect to some chatter at "bstrFileName"

To set up the chat server, you'll need a static address for others to connect to. dns2go has what you need. Download the app, select a server name and publish the address (of course, how you accomplish that is your problem :)) for others to use.

You also need to include the path of the WMSDK include folder to the VC++ 6.0 directory list. Install the Windows Media Encoder. Register the Windows Media Player control (it used to be called wmp.ocx).

With all of the above done, you're ready to video chat. :)

Pump up your app, go to Tools and start the encoder. Find a room or create one. There's a lot of room for improvement and feature additions. Questions are welcome. Jobs too :).

License

This article, along with any associated source code and files, is licensed under The Apache License, Version 2.0


Written By
Web Developer
United States United States
biography? I am not that old yet.

Comments and Discussions

 
GeneralRe: could not find wmenvcu.h Pin
Anonymous7-Apr-04 21:22
Anonymous7-Apr-04 21:22 
Generalplease help me Pin
rama surendra babu10-May-03 4:40
rama surendra babu10-May-03 4:40 
GeneralRe: please help me Pin
mystro_AKA_kokie11-Jun-03 16:01
mystro_AKA_kokie11-Jun-03 16:01 
Generali am geting error please help Pin
rama surendra babu10-May-03 4:35
rama surendra babu10-May-03 4:35 
Questionhow to connect to media player? Pin
supercook23-Apr-03 23:08
supercook23-Apr-03 23:08 
AnswerRe: how to connect to media player? Pin
mystro_AKA_kokie26-Apr-03 13:01
mystro_AKA_kokie26-Apr-03 13:01 
QuestionIs there any ActiveX Control of this kind? Pin
Jack_Cai23-Mar-03 1:14
Jack_Cai23-Mar-03 1:14 
AnswerRe: Is there any ActiveX Control of this kind? Pin
extremalis6-Apr-03 5:30
extremalis6-Apr-03 5:30 
Generalvidchat Pin
burebista1-Feb-03 13:25
burebista1-Feb-03 13:25 
GeneralRe: vidchat Pin
mystro_AKA_kokie1-Feb-03 14:59
mystro_AKA_kokie1-Feb-03 14:59 
GeneralRe: vidchat Pin
Gilad Novik22-Feb-04 23:02
Gilad Novik22-Feb-04 23:02 
Generalhelp Pin
Anonymous13-Nov-02 21:06
Anonymous13-Nov-02 21:06 
GeneralWebLink.cpp WebLink.h missing Pin
Ahtsair Lin28-Jun-02 19:17
Ahtsair Lin28-Jun-02 19:17 
Generalerror Pin
rama surendra babu19-Jun-02 5:41
rama surendra babu19-Jun-02 5:41 
QuestionCan not find wmsdk1.h Pin
20-May-02 23:53
suss20-May-02 23:53 
AnswerRe: Can not find wmsdk1.h Pin
mystro_AKA_kokie21-May-02 4:33
mystro_AKA_kokie21-May-02 4:33 
Generalcould not find wmencvu.h Pin
19-May-02 23:58
suss19-May-02 23:58 
GeneralRe: could not find wmencvu.h Pin
mystro_AKA_kokie20-May-02 15:57
mystro_AKA_kokie20-May-02 15:57 
GeneralRe: could not find wmencvu.h Pin
mystro_AKA_kokie20-May-02 16:05
mystro_AKA_kokie20-May-02 16:05 
GeneralRe: could not find wmencvu.h Pin
littleaqma16-Jun-03 3:04
littleaqma16-Jun-03 3:04 
GeneralRe: could not find wmencvu.h Pin
Sergiu3-Oct-03 4:15
Sergiu3-Oct-03 4:15 
Generalzip file is corrupted Pin
18-May-02 16:54
suss18-May-02 16:54 
GeneralRe: zip file is corrupted Pin
mystro_AKA_kokie18-May-02 17:24
mystro_AKA_kokie18-May-02 17:24 
GeneralRe: zip file is corrupted Pin
18-May-02 19:40
suss18-May-02 19:40 
GeneralRe: zip file is corrupted Pin
mystro_AKA_kokie19-May-02 5:35
mystro_AKA_kokie19-May-02 5:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.