dvrengine/CommonRecordingEngine/inc/CCRRtpTcpObserver.h
branchRCL_3
changeset 22 826cea16efd9
parent 21 798ee5f1972c
child 23 13a33d82ad98
equal deleted inserted replaced
21:798ee5f1972c 22:826cea16efd9
     1 /*
       
     2 * Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of the License "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:    Observer for RTP/TCP streamer.*
       
    15 */
       
    16 
       
    17 
       
    18 
       
    19 
       
    20 #ifndef CCRRTPTCPOBSERVER_H
       
    21 #define CCRRTPTCPOBSERVER_H
       
    22 
       
    23 // INCLUDES
       
    24 #include <e32base.h>
       
    25 
       
    26 // CONSTANTS
       
    27 // None
       
    28 
       
    29 // MACROS
       
    30 // None
       
    31 
       
    32 // DATA TYPES
       
    33 // None
       
    34 
       
    35 // FORWARD DECLARATIONS
       
    36 // None
       
    37 
       
    38 // CLASS DECLARATION
       
    39 
       
    40 /**
       
    41 *  Observer for RTP/TCP streamer
       
    42 *
       
    43 *  @lib CommonRecordingEngine.lib
       
    44 *  @since Series 60 3.0
       
    45 */
       
    46 class MCRRtpTcpObserver
       
    47     {
       
    48 
       
    49 public: // New methods
       
    50 
       
    51     /**
       
    52     * Signals an available incoming RTSP control message
       
    53     * @since Series 60 3.0
       
    54     * @param aData a RTSP meaage data.
       
    55     * @return none.
       
    56     */
       
    57     virtual void RtspMsgAvailable( const TDesC8& aData ) = 0;
       
    58 
       
    59     /**
       
    60     * Signals an available incoming RTP/RTCP packet from RTSP/TCP streaming
       
    61     * @since Series 60 3.0
       
    62     * @param aChannel channel through which packet was received.
       
    63     *        Actual interpretation and mapping to media stream (audio, video)
       
    64     *        done by user.
       
    65     * @param aPacket a RTP/RTCP packet received.
       
    66     * @return none.
       
    67     */
       
    68     virtual void RtpTcpPacketAvailable( TInt aChannel,
       
    69                                         const TDesC8& aPacket ) = 0;
       
    70 
       
    71     /**
       
    72     * Signals an outgoing RTP/RTCP packet to be sent over RTSP/TCP
       
    73     * @since Series 60 3.0
       
    74     * @param aChannel a channel through which packet was received.
       
    75     *        Actual interpretation and mapping to media stream (audio, video)
       
    76     *        done by user.
       
    77     *  @param aPacket   RTP/RTCP packet received
       
    78     * @return none.
       
    79     */
       
    80     virtual void ForwardRtpTcpChunck( const TDesC8& aChunk ) = 0;
       
    81 
       
    82     };
       
    83 
       
    84 #endif // CCRRTPTCPOBSERVER_H