Re: Playlist TAPI 3.1 Problem

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



David,

I am too fighting with same problem. (in TAPI 3.1 in WinXP with VB). I
was able to play the .wav files and I change the play list based upon the
digit(s) received from DTMF. If I stop and start the stream using
ITMediaControl, the newer wave file(s) contents were not played at all. I
tried with ITStream.StopStream() and ITStream.StartStream() also and same
result. May I know how you solved it? (One thing I want to mention is I used
both the ITMediaControl.Stop as well as ITStream.StopStream() and similarly
Startxx() functions.)


"David B" wrote:

Thanks for the info. Stopping the underlying stream solved my
problem.




On Thu, 26 Jan 2006 23:19:56 +0100, "Matthias Moetje [MVP]"
<moetje@xxxxxxxxxxxxxxxxxxx> wrote:

David,

ITMediaControl is an interface of the file terminals which
allows you to start and stop playback. It does not start
or stop the media streams.

Use ITStreamControl (query this interace from ITCallInfo)
to get access to the streams. Use ITStream::StopStream
and ITStream::StartStream to start and stop the streams.

I don't think this should be necessary but it would be worth
a try.

Best regards,

Matthias Moetje
-------------------------------------
TERASENS GmbH
Augustenstraße 24
80333 Munich, GERMANY
-------------------------------------
Fon: +49 89 143370-0
Fax: +49 89 143370-22
e-mail: moetje at terasens dot com
www: www.terasens.com
-------------------------------------

<David B> wrote in message
news:ig8it15kdlbsm0lnae6a40p3732m0sqh3f@xxxxxxxxxx
The only mechanism for stopping and starting the stream are the
Start() and Stop() events in the ITMediaControl. I am calling stop on
the stream and verifying that it stops and then I put a new playlist
and start the stream again. Does the ITMediaControl need to be
released and requeried to play a new stream?

That makes sense on why I was not receiving a new call. I thought I
was releasing all of the objects, but I need to recheck and make sure
that I have.

Thanks for the input.




On Thu, 26 Jan 2006 18:43:19 +0100, "Matthias Moetje [MVP]"
<moetje@xxxxxxxxxxxxxxxxxxx> wrote:

David,

please try to stop and restart the stream, not only the
file terminal. I never used the file terminal because
we are using DirectShow and the media streaming
terminal, thus I don't know exactly how it is supposed
to work.

The other problem that I am having is once my modem answers a call and
I process it and hang up it will no longer answer any more calls. Do
I need to register for notifications each time I disconnect?

No, but you need to release any objects/interfaces related to
the previous call. Unless you do so, TAPI still sees the call
as existant. Since Unimodem allows only a single call at a
time you do not receive a second call while you are holding
a reference to the previous call.


Best regards,

Matthias Moetje
-------------------------------------
TERASENS GmbH
Augustenstraße 24
80333 Munich, GERMANY
-------------------------------------
Fon: +49 89 143370-0
Fax: +49 89 143370-22
e-mail: moetje at terasens dot com
www: www.terasens.com
-------------------------------------




.



Relevant Pages

  • Re: Playing wav files using TAPI
    ... I tried using the StopStream() to stop the stream ... followed by ITBasicCallControl2::UnSelectTerminalOnCall() to unselect the ... Matthias Moetje ... TERASENS GmbH ...
    (microsoft.public.win32.programmer.tapi)
  • Re: Playing wav files using TAPI
    ... Matthias Moetje ... TERASENS GmbH ... stoping and starting the stream too but it too failed to make the new .wav ... Another method might be to stop the stream, unselect and ...
    (microsoft.public.win32.programmer.tapi)
  • Re: Mermory leakage when i use ITStream::SelecTerminal()
    ... Does this problem occur with other terminals, ... Matthias Moetje ... TERASENS GmbH ... my stream ...
    (microsoft.public.win32.programmer.tapi)
  • Re: Playlist TAPI 3.1 Problem
    ... Stopping the underlying stream solved my ... >>Matthias Moetje ... >>TERASENS GmbH ... >>80333 Munich, GERMANY ...
    (microsoft.public.win32.programmer.tapi)
  • Re: TTS with Voice modem
    ... There is only one stream. ... Matthias Moetje ... TERASENS GmbH ... Dim objStreamControl As TAPI3Lib.ITStreamControl ...
    (microsoft.public.win32.programmer.tapi)