Re: [OpenSIPStack] Playing Data on a mediastream / synchronize data
Brought to you by:
joegenbaclor
From: Ilian J. C. P. <ip...@so...> - 2008-05-15 10:21:19
|
Hi, You mentioned earlier that you wanted to play to or record from a source/target other than the PC's sound system? The Softphone is using the PC sound system endpoint (i.e. OpalPCSSEndPoint) by default. But since you mentioned that your target environment may not necessarily have a mic or speaker, you will need to change that. If for example you need to play to or record from a file, you will need to create classes like OpalFileEndPoint, OpalFileConnection, and OpalFileMediaStream which are analogous to OpalPCSSEndPoint, OpalPCSSConnection, and OpalAudioMediaStream. Just to refer to the said classes and pattern your implementation to their interfaces. Then use your OpalFileEndPoint instance as as endpoint in SoftPhone. Christian Wallukat wrote: > Hi Ilian, > > > Thanks for the response, but I don't understand where to override it ? > > I use the SoftPhone code to get it running and this is my last problem. > The MediaStream was already created if this function > > BOOL SoftPhoneManager::OnOpenMediaStream(OpalConnection & connection, > OpalMediaStream & stream) > > Is called. > > Do you mean, that I need to change it in OpalConnection or where should I do > so ? > > > Kind regards > > > Christian > > -----Ursprüngliche Nachricht----- > Von: ope...@li... > [mailto:ope...@li...] Im Auftrag von > Ilian Jeri C. Pinzon > Gesendet: Donnerstag, 15. Mai 2008 05:51 > An: ope...@li... > Betreff: Re: [OpenSIPStack] Playing Data on a mediastream / synchronize data > > Hi, > > Christian Wallukat wrote: > >> Hi all, >> >> >> I try to send G711 Alaw data on the destination media stream but it >> Is snatchy if the delay between the packets doesn’t match... >> >> The delay of 20ms is not always right, how can I time the packets ? >> >> I use OpalMediaStream::WriteFrame() for sending the data ... >> >> > The OpalMediaPatch thread should do this for you automatically. You > don't have to call WriteFrame(). What you just need to do is implement > your derived OpalMediaStream interfaces properly (if they are not yet > implemented that is). > >> Kind regards >> >> >> Christian >> >> No virus found in this outgoing message. >> Checked by AVG. >> Version: 7.5.524 / Virus Database: 269.23.11/1422 - Release Date: >> > 08.05.2008 > >> 17:24 >> >> >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2008. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ >> opensipstack-devel mailing list >> ope...@li... >> https://lists.sourceforge.net/lists/listinfo/opensipstack-devel >> >> ------------------------------------------------------------------------ >> >> No virus found in this incoming message. >> Checked by AVG. >> Version: 7.5.524 / Virus Database: 269.23.16/1431 - Release Date: >> > 5/13/2008 7:55 PM > >> >> > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > opensipstack-devel mailing list > ope...@li... > https://lists.sourceforge.net/lists/listinfo/opensipstack-devel > > No virus found in this incoming message. > Checked by AVG. > Version: 7.5.524 / Virus Database: 269.23.11/1422 - Release Date: 08.05.2008 > 17:24 > > > No virus found in this outgoing message. > Checked by AVG. > Version: 7.5.524 / Virus Database: 269.23.11/1422 - Release Date: 08.05.2008 > 17:24 > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > opensipstack-devel mailing list > ope...@li... > https://lists.sourceforge.net/lists/listinfo/opensipstack-devel > > > |