This page describes how to register an event for a callback function and how to handle them when the event occured.
Events can be registered for a session, a send source or a receive source using RRtpXxx:RegisterEventCallbackL() , where Xxx can be Session , SendSource or ReceiveSource , for the respective source of events.
RegisterEventCallbackL(ERtpPacketReceived, GetPacket, aPtr, ERtpOneShot);
In the above call, the event ERtpPacketReceived is registered to the callback function GetPacket() . ERtpOneShot indicates that the callback function can be called only once.
TRtpEvent provides a handle to an RTP session, send stream or receive stream event. The event types supported by TRtpEventType are passed to RegisterEventCallbackL() , so that the registered callback function is called for the specified event.
Some of the event types supported by TRtpEventType that may be handled are given below:
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.