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