browserutilities/schemehandler/SchemeDispatcher/src/MmsHandler.cpp
branchRCL_3
changeset 93 79859ed3eea9
parent 64 ac77f89b1d9e
child 94 919f36ff910f
equal deleted inserted replaced
92:e1bea15f9a39 93:79859ed3eea9
    14 * Description: 
    14 * Description: 
    15 *      Implementation of Scheme handler interface implementation for mms:// scheme
    15 *      Implementation of Scheme handler interface implementation for mms:// scheme
    16 *      
    16 *      
    17 *
    17 *
    18 */
    18 */
    19  
    19 
       
    20 
    20 // INCLUDE FILES
    21 // INCLUDE FILES
    21 
    22 
    22 #include "MmsHandler.h"
    23 #include "MmsHandler.h"
    23 #include "SchemeDispLogger.h"
    24 #include "SchemeDispLogger.h"
    24 #include <ecom/ecom.h>		// For REComSession
    25 #include <ecom/ecom.h>		// For REComSession
    28 #include <apparc.h>
    29 #include <apparc.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 #ifdef __S60_32__
    34 
       
    35 // ================= CONSTANTS =======================
       
    36 
    34 LOCAL_C const TUid KUidMediaPlayer = { 0x10005A3E };
    37 LOCAL_C const TUid KUidMediaPlayer = { 0x10005A3E };
    35 #else
       
    36 #include <videoplayeruid.hrh>
       
    37 #endif
       
    38 // ================= CONSTANTS =======================
       
    39 
    38 
    40 // ================= MEMBER FUNCTIONS =======================
    39 // ================= MEMBER FUNCTIONS =======================
    41 
    40 
    42 // ---------------------------------------------------------
    41 // ---------------------------------------------------------
    43 // CMmsHandler::NewL()
    42 // CMmsHandler::NewL()
   127     if (iParamList)
   126     if (iParamList)
   128     {
   127     {
   129     	paramList->AppendL(*iParamList);  
   128     	paramList->AppendL(*iParamList);  
   130     }
   129     }
   131 
   130 
   132 #ifdef __S60_32__
   131 
   133     iLaunchAppService = 
   132     iLaunchAppService = 
   134         CAknLaunchAppService::NewL( KUidMediaPlayer, this, paramList );
   133         CAknLaunchAppService::NewL( KUidMediaPlayer, this, paramList );
   135 #else
       
   136     iLaunchAppService = 
       
   137         CAknLaunchAppService::NewL( TUid::Uid(KVideoPlayerUID), this, paramList );
       
   138 #endif    
       
   139     iSync = ETrue;
   134     iSync = ETrue;
   140     iWait.Start();
   135     iWait.Start();
   141     CleanupStack::PopAndDestroy( paramList );   
   136     CleanupStack::PopAndDestroy( paramList );   
   142 
   137 
   143     CLOG_LEAVEFN( "CMmsHandler::HandleUrlEmbeddedL()" );
   138     CLOG_LEAVEFN( "CMmsHandler::HandleUrlEmbeddedL()" );
   152 	CLOG_ENTERFN( "CMmsHandler::HandleUrlStandaloneL()" );
   147 	CLOG_ENTERFN( "CMmsHandler::HandleUrlStandaloneL()" );
   153 
   148 
   154 	RApaLsSession appArcSession;
   149 	RApaLsSession appArcSession;
   155 	User::LeaveIfError( appArcSession.Connect() );
   150 	User::LeaveIfError( appArcSession.Connect() );
   156 	TThreadId id;
   151 	TThreadId id;
   157 #ifdef __S60_32__
   152 
   158     appArcSession.StartDocument( iParsedUrl->Des(), KUidMediaPlayer , id );
   153 	appArcSession.StartDocument( iParsedUrl->Des(), KUidMediaPlayer , id );
   159 #else
   154 
   160     appArcSession.StartDocument( iParsedUrl->Des(), TUid::Uid(KVideoPlayerUID) , id );
       
   161 #endif
       
   162 	appArcSession.Close();
   155 	appArcSession.Close();
   163 
   156 
   164 	CLOG_LEAVEFN( "CMmsHandler::HandleUrlStandaloneL()" );
   157 	CLOG_LEAVEFN( "CMmsHandler::HandleUrlStandaloneL()" );
   165 	}
   158 	}
   166 		
   159 		
   186 		}
   179 		}
   187 
   180 
   188 	CLOG_LEAVEFN( "CMmsHandler::HandleServerAppExit" );	
   181 	CLOG_LEAVEFN( "CMmsHandler::HandleServerAppExit" );	
   189 	}
   182 	}
   190 
   183 
   191