Click here to Skip to main content
15,885,435 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.4K   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: Memory Problem... NEED HELP Pin
mystro_AKA_kokie8-Mar-04 4:30
mystro_AKA_kokie8-Mar-04 4:30 
GeneralRe: Memory Problem... NEED HELP Pin
l201l12-Oct-06 17:34
l201l12-Oct-06 17:34 
GeneralMemory Problem Pin
Anonymous3-Mar-04 4:42
Anonymous3-Mar-04 4:42 
GeneralRe: Memory Problem Pin
maohbao24-Mar-04 4:12
maohbao24-Mar-04 4:12 
GeneralRe: Memory Problem Pin
Anonymous22-Apr-04 21:32
Anonymous22-Apr-04 21:32 
GeneralRe: Memory Problem Pin
robby7226-Jun-05 1:00
robby7226-Jun-05 1:00 
QuestionI have some proplem? Pin
haicnt637929-Feb-04 22:08
haicnt637929-Feb-04 22:08 
QuestionHave anyone solve the "Failed3" problem? Pin
kon197913-Jan-04 4:43
kon197913-Jan-04 4:43 
AnswerRe: Have anyone solve the "Failed3" problem? Pin
HansRossavik2-Mar-04 0:26
HansRossavik2-Mar-04 0:26 
AnswerRe: Have anyone solve the "Failed3" problem? Pin
Anonymous30-Jun-05 23:07
Anonymous30-Jun-05 23:07 
Generalsuggest some info about vedio chat added to chat client/server Pin
Member 211736421-Dec-03 18:37
Member 211736421-Dec-03 18:37 
GeneralRe: suggest some info about vedio chat added to chat client/server Pin
Anonymous23-Dec-03 7:21
Anonymous23-Dec-03 7:21 
GeneralI get a "Windows media encoder not installed" Pin
tsung-yu9-Dec-03 15:56
tsung-yu9-Dec-03 15:56 
GeneralRe: I get a "Windows media encoder not installed" Pin
zeta_theking12-Dec-03 9:06
zeta_theking12-Dec-03 9:06 
GeneralI get Failed3 when starting Pin
Sergiu3-Oct-03 20:50
Sergiu3-Oct-03 20:50 
GeneralRe: I get Failed3 when starting Pin
Jaras7910-Dec-03 12:11
Jaras7910-Dec-03 12:11 
GeneralRe: I get Failed3 when starting Pin
zeta_theking12-Dec-03 9:04
zeta_theking12-Dec-03 9:04 
Questionwmencvu.h missing..??? Pin
Deniz_at_Work1-Oct-03 16:43
Deniz_at_Work1-Oct-03 16:43 
AnswerRe: wmencvu.h missing..??? Pin
Sergiu3-Oct-03 20:51
Sergiu3-Oct-03 20:51 
Generalhelp !the media has about fifteen seconds delay Pin
Anonymous17-Aug-03 20:36
Anonymous17-Aug-03 20:36 
Generalcould not find wmenvcu.h Pin
ZZPaul6-Aug-03 21:26
ZZPaul6-Aug-03 21:26 
GeneralRe: could not find wmenvcu.h Pin
mystro_AKA_kokie7-Aug-03 13:32
mystro_AKA_kokie7-Aug-03 13:32 
GeneralRe: could not find wmenvcu.h Pin
ZZPaul8-Aug-03 15:55
ZZPaul8-Aug-03 15:55 
GeneralRe: could not find wmenvcu.h Pin
saarfu4-Jul-08 2:56
saarfu4-Jul-08 2:56 
GeneralRe: could not find wmenvcu.h Pin
ZZPaul8-Aug-03 19:46
ZZPaul8-Aug-03 19:46 

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.