⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 overvw1_2w8c.htm

📁 TAPI Exampple
💻 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">&#169; 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 + -