?? overvw2_6ktv.htm
字號:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML DIR="LTR"><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso8859-1">
</HEAD>
<TITLE>Media Event Timers</TITLE>
<SCRIPT SRC="/library/psdk/linkcss.js"></SCRIPT>
<META NAME="MS-HAID" CONTENT="_tapi2_media_event_timers">
</HEAD>
<BODY TOPMARGIN="0">
<!--TOOLBAR_START-->
<!--TOOLBAR_EXEMPT-->
<!--TOOLBAR_END-->
<!--SYNC_START-->
<script language="JavaScript" src='/library/synch.js'></script>
<!--SYNC_END-->
<H3><A NAME="_tapi2_media_event_timers"></A>Media Event Timers</H3>
<P>Many applications depend on the timing relationship between media events (for example, DTMF digits received) in order to determine the nature of a requested operation. For example, in a voice mail application, two consecutive DTMF "1" digits may mean "back up two segments" or "replay from beginning of message", depending on how much time elapsed between the two digits. In a client/server environment, if the DTMF detection is being performed on a separate processor from the one on which the application is running, latency in the local area network makes it very likely that the timing relationship between media events will be skewed, with the result that these timing-based differences could be lost or become unreliable. </P>
<P>To resolve this issue, several TAPI messages can be timestamped. Because it is the <I>relative</I> timing between these events that is important, the "clock time" of the event is not important, and sub-second timing is involved, these timestamps use the millisecond-resolution "time since Windows started" returned by the <B>GetTickCount</B> function. Applications must be aware that this is the tick count on the server (or machine where the service provider directly managing the hardware is running), and is not necessarily the same machine on which the application is executing; thus, the timestamps in these TAPI messages can only be compared to <I>each other</I>, and not to the value returned by <B>GetTickCount</B> on the processor on which the application is running. </P>
<P>The TAPI messages that can be timestamped are: <A HREF="msgs_65mb.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/msgs_65mb.htm">LINE_GATHERDIGITS</A>, <A HREF="msgs_0hnp.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/msgs_0hnp.htm">LINE_GENERATE</A>, <A HREF="msgs_5p0z.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/msgs_5p0z.htm">LINE_MONITORDIGITS</A>, <A HREF="msgs_0ext.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/msgs_0ext.htm">LINE_MONITORMEDIA</A>, and <A HREF="msgs_8nz9.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/msgs_8nz9.htm">LINE_MONITORTONE</A>. The tick count is inserted into <I>dwParam3</I> of these messages. If timestamping is not supported by the service provider (which is indicated by the service provider setting <I>dwParam3</I> in these messages to 0), then TAPI itself will insert the tick count into <I>dwParam3</I> of all of these messages (it can be skewed somewhat, but less than if the application did the same after the messages had traversed an interprocess communication scheme). </P>
<DIV CLASS="footer">Built on Monday, August 14, 2000</DIV>
<!--FOOTER_START-->
<DIV CLASS="footer" STYLE="color:#000000;font-size:90%;">
<A HREF="mailto:sdkfdbk@microsoft.com">Send feedback</A> to the Platform SDK.</P>
<P><A HREF="javascript:if(confirm('http://msdn.microsoft.com/isapi/gomscom.asp?TARGET=/info/cpyright.htm \n\n這個(gè)文件不能通過 Teleport Pro 取回, 因?yàn)?地址在一個(gè)域或?yàn)樗拈_始地址設(shè)定的邊界的外部路徑上. \n\n你想從服務(wù)器打開它嗎?'))window.location='http://msdn.microsoft.com/isapi/gomscom.asp?TARGET=/info/cpyright.htm'" tppabs="http://msdn.microsoft.com/isapi/gomscom.asp?TARGET=/info/cpyright.htm" TARGET="_top">© 1999 Microsoft Corporation. All rights reserved. Terms of use.</A></P>
</DIV>
<!--FOOTER_END-->
</BODY>
</HTML>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -