equal
deleted
inserted
replaced
28 #include <apparc.h> |
28 #include <apparc.h> |
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 #ifdef __S60_32__ |
|
34 LOCAL_C const TUid KUidMediaPlayer = { 0x10005A3E }; |
|
35 #else |
|
36 #include <videoplayeruid.hrh> |
|
37 #endif |
34 // ================= CONSTANTS ======================= |
38 // ================= CONSTANTS ======================= |
35 |
|
36 LOCAL_C const TUid KUidMediaPlayer = { 0x10005A3E }; |
|
37 |
39 |
38 // ================= MEMBER FUNCTIONS ======================= |
40 // ================= MEMBER FUNCTIONS ======================= |
39 |
41 |
40 // --------------------------------------------------------- |
42 // --------------------------------------------------------- |
41 // CMmsHandler::NewL() |
43 // CMmsHandler::NewL() |
125 if (iParamList) |
127 if (iParamList) |
126 { |
128 { |
127 paramList->AppendL(*iParamList); |
129 paramList->AppendL(*iParamList); |
128 } |
130 } |
129 |
131 |
130 |
132 #ifdef __S60_32__ |
131 iLaunchAppService = |
133 iLaunchAppService = |
132 CAknLaunchAppService::NewL( KUidMediaPlayer, this, paramList ); |
134 CAknLaunchAppService::NewL( KUidMediaPlayer, this, paramList ); |
|
135 #else |
|
136 iLaunchAppService = |
|
137 CAknLaunchAppService::NewL( TUid::Uid(KVideoPlayerUID), this, paramList ); |
|
138 #endif |
133 iSync = ETrue; |
139 iSync = ETrue; |
134 iWait.Start(); |
140 iWait.Start(); |
135 CleanupStack::PopAndDestroy( paramList ); |
141 CleanupStack::PopAndDestroy( paramList ); |
136 |
142 |
137 CLOG_LEAVEFN( "CMmsHandler::HandleUrlEmbeddedL()" ); |
143 CLOG_LEAVEFN( "CMmsHandler::HandleUrlEmbeddedL()" ); |
146 CLOG_ENTERFN( "CMmsHandler::HandleUrlStandaloneL()" ); |
152 CLOG_ENTERFN( "CMmsHandler::HandleUrlStandaloneL()" ); |
147 |
153 |
148 RApaLsSession appArcSession; |
154 RApaLsSession appArcSession; |
149 User::LeaveIfError( appArcSession.Connect() ); |
155 User::LeaveIfError( appArcSession.Connect() ); |
150 TThreadId id; |
156 TThreadId id; |
151 |
157 #ifdef __S60_32__ |
152 appArcSession.StartDocument( iParsedUrl->Des(), KUidMediaPlayer , id ); |
158 appArcSession.StartDocument( iParsedUrl->Des(), KUidMediaPlayer , id ); |
153 |
159 #else |
|
160 appArcSession.StartDocument( iParsedUrl->Des(), TUid::Uid(KVideoPlayerUID) , id ); |
|
161 #endif |
154 appArcSession.Close(); |
162 appArcSession.Close(); |
155 |
163 |
156 CLOG_LEAVEFN( "CMmsHandler::HandleUrlStandaloneL()" ); |
164 CLOG_LEAVEFN( "CMmsHandler::HandleUrlStandaloneL()" ); |
157 } |
165 } |
158 |
166 |
178 } |
186 } |
179 |
187 |
180 CLOG_LEAVEFN( "CMmsHandler::HandleServerAppExit" ); |
188 CLOG_LEAVEFN( "CMmsHandler::HandleServerAppExit" ); |
181 } |
189 } |
182 |
190 |
|
191 |