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