Click here to Skip to main content
Licence Apache
First Posted 17 May 2002
Views 165,317
Bookmarked 76 times

Windows Media video chatting tool

By | 20 Feb 2004 | Article
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

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

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
GeneralMedia Player Controller can't display Pinmemberjieqiuming0:12 8 May '10  
General[My vote of 1] ha ha. Pinmemberjosmoi22:34 29 Apr '09  
Questionhow to start with wmp Pinmemberhariprasada20:22 24 Sep '08  
Generaladd video chat to my website Pinmemberbigphil7:39 3 Mar '08  
Generaldont run in windowsXP Pinmemberhanlwang22:30 28 Dec '05  
QuestionCan anyone capture a image? Pinmemberamir mortazavi5:49 10 Jun '05  
GeneralMedia player control can't play wmv and wma files!!!! Pinmembermahila20:39 15 Feb '05  
GeneralProblem running on Your sample over internet Pinmembervinkal chudgar19:48 10 Jan '05  
GeneralAbout "Failed3" problem Pinmemberdlbasin22:26 7 May '04  
GeneralRe: About "Failed3" problem Pinmembermystro_AKA_kokie18:47 8 May '04  
GeneralRe: About "Failed3" problem Pinmemberiamahorse5:59 24 Jul '04  
GeneralRe: About "Failed3" problem Pinmemberead mahmoud3:04 28 Oct '04  
GeneralMemory Problem PinsussAnonymous21:34 22 Apr '04  
GeneralRe: Memory Problem (varProfile.vt) Pinmemberaiagent18:06 3 Sep '05  
GeneralMemory Problem... NEED HELP Pinmemberkarenwong4:44 3 Mar '04  
GeneralRe: Memory Problem... NEED HELP Pinmembermystro_AKA_kokie12:47 3 Mar '04  
GeneralRe: Memory Problem... NEED HELP Pinmemberkarenwong14:55 3 Mar '04  
GeneralRe: Memory Problem... NEED HELP Pinmemberkarenwong16:46 3 Mar '04  
GeneralRe: Memory Problem... NEED HELP Pinmembermystro_AKA_kokie17:03 3 Mar '04  
GeneralRe: Memory Problem... NEED HELP Pinmemberkarenwong17:44 3 Mar '04  
GeneralRe: Memory Problem... NEED HELP Pinmembermystro_AKA_kokie10:58 4 Mar '04  
GeneralRe: Memory Problem... NEED HELP Pinmemberkarenwong0:06 8 Mar '04  
GeneralRe: Memory Problem... NEED HELP Pinmembermystro_AKA_kokie4:30 8 Mar '04  
GeneralRe: Memory Problem... NEED HELP Pinmemberl201l17:34 12 Oct '06  
GeneralMemory Problem PinsussAnonymous4:42 3 Mar '04  

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

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

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