2.2.6.39 LINEMEDIACONTROLMEDIA

The LINEMEDIACONTROLMEDIA packet describes a media action to be executed when detecting a media type change. It is used as an entry in an array. The SetMediaControl packet uses this packet.


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

dwMediaModes

dwDuration

dwMediaControl

dwMediaModes (4 bytes): An unsigned 32-bit integer. This field specifies one or more media types. This member MUST use one of the LINEMEDIAMODE_Constants.

dwDuration (4 bytes): An unsigned 32-bit integer. The duration of time, in milliseconds, during which the media type SHOULD be present before the application SHOULD be notified or media control action SHOULD be taken.

dwMediaControl (4 bytes): An unsigned 32-bit integer. The media control action. This member MUST use one of the LINEMEDIACONTROL_Constants.

This packet cannot be extended.

The LINEMEDIACONTROLMEDIA packet defines a triple <media types, duration, media-control action>. An array of these triples is passed to the SetMediaControl packet to set the media control actions triggered by media type changes for a given call. When a change to a listed media type is detected, then the corresponding action on the media stream MUST be invoked.