browserutilities/schemehandler/SchemeDispatcher/src/RtspHandler.cpp
branchRCL_3
changeset 49 919f36ff910f
parent 48 79859ed3eea9
equal deleted inserted replaced
48:79859ed3eea9 49:919f36ff910f
    15 *      Implementation of Scheme handler interface implementation for rtsp:// scheme
    15 *      Implementation of Scheme handler interface implementation for rtsp:// scheme
    16 *      
    16 *      
    17 *
    17 *
    18 */
    18 */
    19 
    19 
    20 
       
    21 // INCLUDE FILES
    20 // INCLUDE FILES
    22 
    21  
    23 #include "RtspHandler.h"
    22 #include "RtspHandler.h"
    24 #include "SchemeDispLogger.h"
    23 #include "SchemeDispLogger.h"
    25 #include <ecom/ecom.h>		// For REComSession
    24 #include <ecom/ecom.h>		// For REComSession
    26 #include <eikenv.h>
    25 #include <eikenv.h>
    27 #include <DocumentHandler.h>
    26 #include <DocumentHandler.h>
    30 #include <eikdoc.h>
    29 #include <eikdoc.h>
    31 #include <eikproc.h>
    30 #include <eikproc.h>
    32 #include <f32file.h>
    31 #include <f32file.h>
    33 #include <AknLaunchAppService.h>
    32 #include <AknLaunchAppService.h>
    34 
    33 
       
    34 #ifdef __S60_32__
       
    35 LOCAL_C const TUid KUidMediaPlayer = { 0x10005A3E };
       
    36 #else
       
    37 #include <videoplayeruid.hrh>
       
    38 #endif
    35 // ================= CONSTANTS =======================
    39 // ================= CONSTANTS =======================
    36 
    40 
    37 LOCAL_C const TUid KUidMediaPlayer = { 0x10005A3E };
       
    38 _LIT( KRtspFileName, "c:\\system\\temp\\RtspTemp.ram" );
    41 _LIT( KRtspFileName, "c:\\system\\temp\\RtspTemp.ram" );
    39 
    42 
    40 // ================= MEMBER FUNCTIONS =======================
    43 // ================= MEMBER FUNCTIONS =======================
    41 
    44 
    42 // ---------------------------------------------------------
    45 // ---------------------------------------------------------
   192 
   195 
   193 	RApaLsSession appArcSession;
   196 	RApaLsSession appArcSession;
   194 	User::LeaveIfError( appArcSession.Connect() );
   197 	User::LeaveIfError( appArcSession.Connect() );
   195 	TThreadId id;
   198 	TThreadId id;
   196 
   199 
   197 	appArcSession.StartDocument( iParsedUrl->Des(), KUidMediaPlayer , id );
   200 #ifdef __S60_32__
   198 
   201     appArcSession.StartDocument( iParsedUrl->Des(), KUidMediaPlayer , id );
       
   202 #else
       
   203     appArcSession.StartDocument( iParsedUrl->Des(), TUid::Uid(KVideoPlayerUID) , id );
       
   204 #endif
   199 	appArcSession.Close();
   205 	appArcSession.Close();
   200 
   206 
   201 	CLOG_LEAVEFN( "CRtspHandler::HandleUrlStandaloneL()" );
   207 	CLOG_LEAVEFN( "CRtspHandler::HandleUrlStandaloneL()" );
   202 	}
   208 	}
   203 		
   209 		
   223 		}
   229 		}
   224 
   230 
   225 	CLOG_LEAVEFN( "CRtspHandler::HandleServerAppExit" );	
   231 	CLOG_LEAVEFN( "CRtspHandler::HandleServerAppExit" );	
   226 	}
   232 	}
   227 
   233 
       
   234