2.4.2.5 Media Control

The TAPI DLL can request the execution of a limited set of media control operations on the call's media stream triggered by telephony events. Although the TAPI DLL's clients will usually use the media API specifically defined for the media mode, media control can yield a significant performance improvement for client/server implementations since simple "detect/control" sequences can be offloaded to the server. The operation TSPI_lineSetMediaControl allows the TAPI DLL to specify a list of tuples specifying a telephony event and the associated media control action.

The telephony events that can trigger media control activities are:

The media control actions are defined generically for the different media modes. Not all media streams may provide meaningful interpretations of the media control actions. The operations should map well to audio streams.

TSPI_lineSetMediaControl

Sets up a call's media stream for media control.

The scope of media control is bound by the lifetime of the call. Media control on a call ends as soon the call disconnects or goes idle. Only a single media control request can be outstanding on a call across all apps.