?? overvw1_2w8c.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 Control</TITLE>
<SCRIPT SRC="/library/psdk/linkcss.js"></SCRIPT>
<META NAME="MS-HKWD" CONTENT="Media Control">
<META NAME="MS-HAID" CONTENT="_tapi2_media_control">
</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_control"></A>Media Control</H3>
<P>An application can request the execution of a limited set of media-control operations on the call's media stream triggered by telephony events. Although an application is encouraged to use the media API specifically defined for the media type or TAPI 3.0's media controls, TAPI 2.2 media control can yield a significant performance improvement for client/server implementations. The <A HREF="func2_4bzg.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/func2_4bzg.htm"><B>lineSetMediaControl</B></A> function is used to set up a call's media stream for media control by allowing an application to specify a list of tuples specifying a telephony event and the associated media-control action. The following are telephony events that can trigger media-control activities.
<UL>
<LI><B>Detection of a digit:</B> The application provides a list of specific digits and the media-control action that each of them triggers. </LI>
<LI><B>Detection of a media type:</B> The application provides a list of media types and the media-control actions that a transition into the media type triggers. </LI>
<LI><B>Detection of a specified tone:</B> The application specifies a list of tones and the media-control action that each tone detection triggers. </LI>
<LI><B>Detection of a call state:</B> The application specifies a list of call states and the media-control action that each transition to the call state triggers. </LI>
</UL>
<P>The media-control actions listed below are defined generically for the different media types. Not all media streams can provide meaningful interpretations of the media-control actions. The operations should map well to audio streams:
<UL>
<LI><B>Start</B> starts the media stream. </LI>
<LI><B>Reset</B> resets the media stream. </LI>
<LI><B>Pause</B> stops or pauses the media stream. </LI>
<LI><B>Resume </B>starts or resumes the media stream. </LI>
<LI><B>Rate up</B> increases the rate (speed) of the media stream by an implementation-defined amount. </LI>
<LI><B>Rate down</B> decreases the rate of the media stream by an implementation-defined amount. </LI>
<LI><B>Rate normal</B> returns the rate to normal. </LI>
<LI><B>Volume up</B> increases the volume (amplitude) of the media stream. </LI>
<LI><B>Volume down</B> decreases the volume of the media stream. </LI>
<LI><B>Volume normal</B> returns the volume to normal. </LI>
</UL>
<P>The scope of media control is bound by the lifetime of the call. Media control on a call ends as soon the call <I>disconnects</I> or goes <I>idle</I>. Only a single media-control request can be outstanding on a call across all applications. </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這個文件不能通過 Teleport Pro 取回, 因為 地址在一個域或為它的開始地址設定的邊界的外部路徑上. \n\n你想從服務器打開它嗎?'))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>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -