Click here to Skip to main content
Click here to Skip to main content

Windows Media video chatting tool

By , 20 Feb 2004
 

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

About the Author

mystro_AKA_kokie
Web Developer
United States United States
Member
biography? I am not that old yet.

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
Hint: For improved responsiveness ensure Javascript is enabled and choose 'Normal' from the Layout dropdown and hit 'Update'.
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page   
QuestionFailed3 error memberPeter Eugene Coleman14 Feb '13 - 5:07 
GeneralMy vote of 4memberMahdi Nejadsahebi15 Sep '12 - 0:05 
GeneralMy vote of 1memberPeter Eugene Coleman7 Jul '12 - 2:46 
GeneralMedia Player Controller can't displaymemberjieqiuming8 May '10 - 0:12 
General[My vote of 1] ha ha.memberjosmoi29 Apr '09 - 22:34 
Questionhow to start with wmpmemberhariprasada24 Sep '08 - 20:22 
Generaladd video chat to my websitememberbigphil3 Mar '08 - 7:39 
Generaldont run in windowsXPmemberhanlwang28 Dec '05 - 22:30 
QuestionCan anyone capture a image?memberamir mortazavi10 Jun '05 - 5:49 
GeneralMedia player control can't play wmv and wma files!!!!membermahila15 Feb '05 - 20:39 
GeneralProblem running on Your sample over internetmembervinkal chudgar10 Jan '05 - 19:48 
GeneralAbout "Failed3" problemmemberdlbasin7 May '04 - 22:26 
GeneralRe: About "Failed3" problemmembermystro_AKA_kokie8 May '04 - 18:47 
GeneralRe: About "Failed3" problemmemberiamahorse24 Jul '04 - 5:59 
GeneralRe: About "Failed3" problemmemberead mahmoud28 Oct '04 - 3:04 
GeneralMemory ProblemsussAnonymous22 Apr '04 - 21:34 
GeneralRe: Memory Problem (varProfile.vt)memberaiagent3 Sep '05 - 18:06 
GeneralMemory Problem... NEED HELPmemberkarenwong3 Mar '04 - 4:44 
GeneralRe: Memory Problem... NEED HELPmembermystro_AKA_kokie3 Mar '04 - 12:47 
GeneralRe: Memory Problem... NEED HELPmemberkarenwong3 Mar '04 - 14:55 
GeneralRe: Memory Problem... NEED HELPmemberkarenwong3 Mar '04 - 16:46 
GeneralRe: Memory Problem... NEED HELPmembermystro_AKA_kokie3 Mar '04 - 17:03 
GeneralRe: Memory Problem... NEED HELPmemberkarenwong3 Mar '04 - 17:44 
GeneralRe: Memory Problem... NEED HELPmembermystro_AKA_kokie4 Mar '04 - 10:58 
GeneralRe: Memory Problem... NEED HELPmemberkarenwong8 Mar '04 - 0:06 
GeneralRe: Memory Problem... NEED HELPmembermystro_AKA_kokie8 Mar '04 - 4:30 
GeneralRe: Memory Problem... NEED HELPmemberl201l12 Oct '06 - 17:34 
GeneralMemory ProblemsussAnonymous3 Mar '04 - 4:42 
GeneralRe: Memory Problemmembermaohbao24 Mar '04 - 4:12 
GeneralRe: Memory ProblemsussAnonymous22 Apr '04 - 21:32 
GeneralRe: Memory Problemsussrobby7226 Jun '05 - 1:00 
QuestionI have some proplem?memberhaicnt637929 Feb '04 - 22:08 
QuestionHave anyone solve the "Failed3" problem?memberkon197913 Jan '04 - 4:43 
AnswerRe: Have anyone solve the "Failed3" problem?memberHansRossavik2 Mar '04 - 0:26 
AnswerRe: Have anyone solve the "Failed3" problem?sussAnonymous30 Jun '05 - 23:07 
Generalsuggest some info about vedio chat added to chat client/serversusssuseela21 Dec '03 - 18:37 
GeneralRe: suggest some info about vedio chat added to chat client/serversussAnonymous23 Dec '03 - 7:21 
GeneralI get a "Windows media encoder not installed"membertsung-yu9 Dec '03 - 15:56 
GeneralRe: I get a "Windows media encoder not installed"memberzeta_theking12 Dec '03 - 9:06 
GeneralI get Failed3 when startingmemberSergiu3 Oct '03 - 20:50 
GeneralRe: I get Failed3 when startingmemberJaras7910 Dec '03 - 12:11 
GeneralRe: I get Failed3 when startingmemberzeta_theking12 Dec '03 - 9:04 
Questionwmencvu.h missing..???memberDeniz_at_Work1 Oct '03 - 16:43 
AnswerRe: wmencvu.h missing..???memberSergiu3 Oct '03 - 20:51 
Generalhelp !the media has about fifteen seconds delaysussAnonymous17 Aug '03 - 20:36 
Generalcould not find wmenvcu.hmemberZZPaul6 Aug '03 - 21:26 
GeneralRe: could not find wmenvcu.hmembermystro_AKA_kokie7 Aug '03 - 13:32 
GeneralRe: could not find wmenvcu.hmemberZZPaul8 Aug '03 - 15:55 
GeneralRe: could not find wmenvcu.hmembersaarfu4 Jul '08 - 2:56 
GeneralRe: could not find wmenvcu.hmemberZZPaul8 Aug '03 - 19:46 

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

Permalink | Advertise | Privacy | Mobile
Web03 | 2.6.130516.1 | Last Updated 21 Feb 2004
Article Copyright 2002 by mystro_AKA_kokie
Everything else Copyright © CodeProject, 1999-2013
Terms of Use
Layout: fixed | fluid