44
|
1 |
/*
|
|
2 |
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
3 |
* All rights reserved.
|
|
4 |
* This component and the accompanying materials are made available
|
|
5 |
* under the terms of "Eclipse Public License v1.0"
|
|
6 |
* which accompanies this distribution, and is available
|
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
8 |
*
|
|
9 |
* Initial Contributors:
|
|
10 |
* Nokia Corporation - initial contribution.
|
|
11 |
*
|
|
12 |
* Contributors:
|
|
13 |
*
|
|
14 |
* Description: Implementation of Video base playback view
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
55
|
18 |
// Version : %version: da1mmcf#49 %
|
44
|
19 |
|
|
20 |
|
|
21 |
|
|
22 |
// Include Files
|
|
23 |
|
|
24 |
|
|
25 |
|
|
26 |
#include <QTimer>
|
|
27 |
#include <QGraphicsSceneEvent>
|
|
28 |
|
|
29 |
#include <hbmenu.h>
|
|
30 |
#include <hbaction.h>
|
|
31 |
#include <hbinstance.h>
|
|
32 |
#include <hbnotificationdialog.h>
|
|
33 |
#include <hblabel.h>
|
|
34 |
#include <hbtapgesture.h>
|
|
35 |
#include <hbpangesture.h>
|
|
36 |
|
|
37 |
#include <textresolver.h>
|
|
38 |
#include <mmf/common/mmferrors.h>
|
|
39 |
#include <DRMHelper.h>
|
|
40 |
|
|
41 |
#include <mpxvideoplaybackdefs.h>
|
|
42 |
#include <mpxplaybackcommanddefs.h>
|
|
43 |
#include <mpxhbvideocommondefs.h>
|
|
44 |
|
|
45 |
#include "mpxvideo_debug.h"
|
|
46 |
#include "mpxvideoviewwrapper.h"
|
|
47 |
#include "mpxvideoplaybackuids.hrh"
|
|
48 |
#include "videobaseplaybackview.h"
|
49
|
49 |
#include "videoactivitystate.h"
|
|
50 |
#include "videoplaybackviewfiledetails.h"
|
44
|
51 |
#include "mpxcommonvideoplaybackview.hrh"
|
|
52 |
|
|
53 |
|
|
54 |
// Member Functions
|
|
55 |
|
|
56 |
// -------------------------------------------------------------------------------------------------
|
|
57 |
// VideoBasePlaybackView::VideoBasePlaybackView()
|
|
58 |
// -------------------------------------------------------------------------------------------------
|
|
59 |
//
|
|
60 |
VideoBasePlaybackView::VideoBasePlaybackView()
|
|
61 |
: mVideoMpxWrapper( NULL )
|
|
62 |
, mTimerForClosingView( NULL )
|
|
63 |
, mActivated( false )
|
|
64 |
, mStayPaused ( false )
|
|
65 |
{
|
|
66 |
MPX_ENTER_EXIT(_L("VideoBasePlaybackView::VideoBasePlaybackView()"));
|
|
67 |
}
|
|
68 |
|
|
69 |
// -------------------------------------------------------------------------------------------------
|
|
70 |
// VideoBasePlaybackView::initializeVideoPlaybackView()
|
|
71 |
// -------------------------------------------------------------------------------------------------
|
|
72 |
//
|
|
73 |
void VideoBasePlaybackView::initializeVideoPlaybackView()
|
|
74 |
{
|
|
75 |
MPX_ENTER_EXIT(_L("VideoBasePlaybackView::initializeVideoPlaybackView()"));
|
|
76 |
|
|
77 |
//
|
|
78 |
// Need to set to control full screen including status pane area
|
|
79 |
//
|
|
80 |
setContentFullScreen();
|
|
81 |
|
|
82 |
mTimerForClosingView = new QTimer();
|
|
83 |
mTimerForClosingView->setSingleShot( true );
|
|
84 |
mTimerForClosingView->setInterval( 10 );
|
|
85 |
connect( mTimerForClosingView, SIGNAL( timeout() ), this, SIGNAL( activatePreviousView() ) );
|
49
|
86 |
|
44
|
87 |
//
|
|
88 |
// Read activity data ...
|
|
89 |
// If last playback was forced to terminate due to low memory (GOOM, etc.)
|
49
|
90 |
// then the clip needs to be restored to the last played position
|
44
|
91 |
// and the state needs to be paused, since forced termination can only occur for
|
|
92 |
// background apps - so if this happened Video Player must have been in background
|
|
93 |
// which implies paused state
|
49
|
94 |
//
|
|
95 |
int lastViewType = VideoActivityState::instance().getActivityData(KEY_VIEWPLUGIN_TYPE).toInt();
|
|
96 |
if ( lastViewType == MpxHbVideoCommon::PlaybackView )
|
44
|
97 |
{
|
|
98 |
QVariant data = VideoActivityState::instance().getActivityData(KEY_LAST_PLAY_POSITION_ID);
|
49
|
99 |
mLastPlayPosition = data.toInt();
|
|
100 |
|
44
|
101 |
mStayPaused = true;
|
49
|
102 |
}
|
44
|
103 |
}
|
|
104 |
|
|
105 |
// -------------------------------------------------------------------------------------------------
|
|
106 |
// VideoBasePlaybackView::~VideoBasePlaybackView()
|
|
107 |
// -------------------------------------------------------------------------------------------------
|
|
108 |
//
|
|
109 |
VideoBasePlaybackView::~VideoBasePlaybackView()
|
|
110 |
{
|
|
111 |
MPX_DEBUG(_L("VideoBasePlaybackView::~VideoBasePlaybackView()"));
|
|
112 |
|
|
113 |
if ( mTimerForClosingView )
|
|
114 |
{
|
|
115 |
disconnect( mTimerForClosingView, SIGNAL( timeout() ), this, SIGNAL( activatePreviousView() ) );
|
|
116 |
|
|
117 |
if ( mTimerForClosingView->isActive() )
|
|
118 |
{
|
|
119 |
mTimerForClosingView->stop();
|
|
120 |
}
|
|
121 |
|
|
122 |
delete mTimerForClosingView;
|
|
123 |
mTimerForClosingView = NULL;
|
|
124 |
}
|
|
125 |
|
|
126 |
if ( mVideoMpxWrapper )
|
|
127 |
{
|
|
128 |
delete mVideoMpxWrapper;
|
|
129 |
mVideoMpxWrapper = NULL;
|
|
130 |
}
|
|
131 |
|
|
132 |
setParentItem( 0 );
|
|
133 |
}
|
|
134 |
|
|
135 |
// -------------------------------------------------------------------------------------------------
|
|
136 |
// VideoBasePlaybackView::handleActivateView()
|
|
137 |
// -------------------------------------------------------------------------------------------------
|
|
138 |
//
|
|
139 |
void VideoBasePlaybackView::handleActivateView()
|
|
140 |
{
|
|
141 |
MPX_ENTER_EXIT(_L("VideoBasePlaybackView::handleActivateView()"));
|
|
142 |
|
|
143 |
MPX_TRAPD( err, mVideoMpxWrapper = CMPXVideoViewWrapper::NewL( this ) );
|
|
144 |
|
50
|
145 |
connect( hbInstance->allMainWindows()[0], SIGNAL( obscured() ), this, SLOT( handleAppBackground() ) );
|
|
146 |
connect( hbInstance->allMainWindows()[0], SIGNAL( revealed() ), this, SLOT( handleAppForeground() ) );
|
|
147 |
|
44
|
148 |
QCoreApplication::instance()->installEventFilter( this );
|
|
149 |
|
|
150 |
//
|
|
151 |
// Request the needed Media from the Playback Plugin
|
|
152 |
//
|
|
153 |
MPX_TRAP( err, mVideoMpxWrapper->RequestMediaL() );
|
|
154 |
|
|
155 |
menu()->close();
|
|
156 |
|
|
157 |
//
|
|
158 |
// Landscape orientation
|
|
159 |
// Workaround: Disable orientation transition effect
|
|
160 |
// since orbit couldn't emit the orientationChanged signal with transition effect
|
|
161 |
//
|
|
162 |
hbInstance->allMainWindows()[0]->setOrientation( Qt::Horizontal, false );
|
|
163 |
|
|
164 |
mActivated = true;
|
|
165 |
}
|
|
166 |
|
|
167 |
// -------------------------------------------------------------------------------------------------
|
|
168 |
// VideoBasePlaybackView::handleDeactivateView()
|
|
169 |
// -------------------------------------------------------------------------------------------------
|
|
170 |
//
|
|
171 |
void VideoBasePlaybackView::handleDeactivateView()
|
|
172 |
{
|
|
173 |
MPX_ENTER_EXIT(_L("VideoBasePlaybackView::handleDeactivateView()"));
|
|
174 |
|
|
175 |
saveActivityData();
|
49
|
176 |
|
44
|
177 |
mActivated = false;
|
|
178 |
|
|
179 |
QCoreApplication::instance()->removeEventFilter( this );
|
|
180 |
|
50
|
181 |
disconnect( hbInstance->allMainWindows()[0], SIGNAL( obscured() ), this, SLOT( handleAppBackground() ) );
|
|
182 |
disconnect( hbInstance->allMainWindows()[0], SIGNAL( revealed() ), this, SLOT( handleAppForeground() ) );
|
|
183 |
|
44
|
184 |
//
|
|
185 |
// Close the playback plugin to release all references to previous clip
|
|
186 |
//
|
|
187 |
MPX_TRAPD( err, mVideoMpxWrapper->HandleCommandL( EMPXPbvCmdClose ) );
|
|
188 |
|
|
189 |
if ( mVideoMpxWrapper )
|
|
190 |
{
|
|
191 |
delete mVideoMpxWrapper;
|
|
192 |
mVideoMpxWrapper = NULL;
|
|
193 |
}
|
|
194 |
|
|
195 |
//
|
|
196 |
// go back to device orientation
|
|
197 |
//
|
|
198 |
//hbInstance->allMainWindows()[0]->unsetOrientation();
|
|
199 |
}
|
|
200 |
|
|
201 |
// -------------------------------------------------------------------------------------------------
|
|
202 |
// VideoBasePlaybackView::saveActivityData()
|
|
203 |
// -------------------------------------------------------------------------------------------------
|
|
204 |
//
|
|
205 |
void VideoBasePlaybackView::saveActivityData()
|
|
206 |
{
|
49
|
207 |
MPX_DEBUG( _L("VideoBasePlaybackView::saveActivityData()") );
|
|
208 |
|
55
|
209 |
VideoActivityState& videoActivityState = VideoActivityState::instance();
|
|
210 |
|
44
|
211 |
// save the activity data
|
|
212 |
QVariant data = QString( mVideoMpxWrapper->iFileDetails->mClipName );
|
55
|
213 |
videoActivityState.setActivityData( data, KEY_LAST_PLAYED_CLIP );
|
49
|
214 |
|
44
|
215 |
data = int( mVideoMpxWrapper->iPlayPosition );
|
55
|
216 |
videoActivityState.setActivityData( data, KEY_LAST_PLAY_POSITION_ID );
|
49
|
217 |
|
44
|
218 |
data = bool( mVideoMpxWrapper->iFileDetails->mPlaybackMode == EMPXVideoLocal );
|
55
|
219 |
videoActivityState.setActivityData( data, KEY_LAST_LOCAL_PLAYBACK );
|
|
220 |
|
49
|
221 |
data = uint ( mVideoMpxWrapper->GetMediaId() );
|
55
|
222 |
videoActivityState.setActivityData( data, KEY_LAST_PLAYED_MEDIA_ID );
|
44
|
223 |
}
|
|
224 |
|
|
225 |
// -------------------------------------------------------------------------------------------------
|
|
226 |
// VideoBasePlaybackView::handleClosePlaybackView()
|
|
227 |
// -------------------------------------------------------------------------------------------------
|
|
228 |
//
|
|
229 |
void VideoBasePlaybackView::handleClosePlaybackView()
|
|
230 |
{
|
|
231 |
MPX_DEBUG(
|
|
232 |
_L("VideoBasePlaybackView::handleClosePlaybackView()") );
|
|
233 |
|
|
234 |
if ( mVideoMpxWrapper && mVideoMpxWrapper->IsMultiItemPlaylist() )
|
|
235 |
{
|
|
236 |
TRAP_IGNORE( mVideoMpxWrapper->HandleCommandL( EMPXPbvCmdNextListItem ) );
|
|
237 |
}
|
|
238 |
else
|
|
239 |
{
|
|
240 |
closePlaybackView();
|
|
241 |
}
|
|
242 |
}
|
|
243 |
|
|
244 |
// -------------------------------------------------------------------------------------------------
|
|
245 |
// VideoBasePlaybackView::handlePluginError()
|
|
246 |
// -------------------------------------------------------------------------------------------------
|
|
247 |
//
|
|
248 |
void VideoBasePlaybackView::handlePluginError( int aError )
|
|
249 |
{
|
|
250 |
MPX_DEBUG(
|
|
251 |
_L("VideoBasePlaybackView::handlePluginError() aError = %d"), aError );
|
|
252 |
|
|
253 |
switch ( aError )
|
|
254 |
{
|
|
255 |
case KErrCancel:
|
|
256 |
{
|
|
257 |
handleClosePlaybackView();
|
|
258 |
break;
|
|
259 |
}
|
|
260 |
case KErrMMDRMNotAuthorized:
|
|
261 |
case KErrCANoRights:
|
|
262 |
case KErrCANoPermission:
|
|
263 |
{
|
|
264 |
showDialog( hbTrId( "txt_videos_info_license_has_expired_or_it_is_missi" ) );
|
|
265 |
break;
|
|
266 |
}
|
|
267 |
case KMPXVideoCallOngoingError:
|
|
268 |
{
|
|
269 |
showDialog( hbTrId( "txt_videos_info_video_playback_is_not_allowed_duri" ), false );
|
|
270 |
break;
|
|
271 |
}
|
|
272 |
default:
|
|
273 |
{
|
|
274 |
TRAP_IGNORE(
|
|
275 |
|
|
276 |
//
|
|
277 |
// TextResolver instance for error resolving.
|
|
278 |
//
|
|
279 |
CTextResolver* textresolver = CTextResolver::NewLC();
|
|
280 |
|
|
281 |
//
|
|
282 |
// Resolve the error text
|
|
283 |
//
|
|
284 |
TPtrC text;
|
|
285 |
text.Set( textresolver->ResolveErrorString( aError ) );
|
|
286 |
|
|
287 |
//
|
|
288 |
// convert to QString
|
|
289 |
//
|
|
290 |
const QString qString( (QChar*)text.Ptr(), text.Length() );
|
|
291 |
|
|
292 |
//
|
|
293 |
// clean up textresolver
|
|
294 |
//
|
|
295 |
CleanupStack::PopAndDestroy( textresolver );
|
|
296 |
|
|
297 |
//
|
|
298 |
// display error and close playback view
|
|
299 |
//
|
|
300 |
showDialog( qString );
|
|
301 |
);
|
|
302 |
}
|
|
303 |
}
|
|
304 |
}
|
|
305 |
|
|
306 |
// -------------------------------------------------------------------------------------------------
|
|
307 |
// VideoBasePlaybackView::showDialog
|
|
308 |
// -------------------------------------------------------------------------------------------------
|
|
309 |
//
|
49
|
310 |
void VideoBasePlaybackView::showDialog( const QString& string, bool closeView )
|
44
|
311 |
{
|
49
|
312 |
MPX_DEBUG(_L("VideoBasePlaybackView::showDialog( %s, %d )"), string.data(), closeView );
|
44
|
313 |
|
|
314 |
//
|
|
315 |
// create pop-up dialog for error notes,
|
|
316 |
// set its position to the middle of the screen
|
|
317 |
// and make sure pop-up dialog gets deleted on close.
|
|
318 |
//
|
|
319 |
QRectF screenRect = hbInstance->allMainWindows()[0]->rect();
|
|
320 |
HbNotificationDialog* dlg = new HbNotificationDialog();
|
|
321 |
dlg->setAttribute( Qt::WA_DeleteOnClose );
|
|
322 |
|
|
323 |
if ( closeView )
|
|
324 |
{
|
|
325 |
//
|
|
326 |
// connect aboutToClose() signal to handleClosePopupDialog() slot so that
|
|
327 |
// when pop-up dialog is closed, playback view is closed also
|
|
328 |
//
|
|
329 |
connect( dlg, SIGNAL( aboutToClose() ), this, SLOT( handleClosePopupDialog() ) );
|
|
330 |
}
|
|
331 |
|
49
|
332 |
dlg->setTitle( string );
|
44
|
333 |
dlg->show();
|
|
334 |
}
|
|
335 |
|
|
336 |
// -------------------------------------------------------------------------------------------------
|
|
337 |
// VideoBasePlaybackView::doClosePlayer
|
|
338 |
// -------------------------------------------------------------------------------------------------
|
|
339 |
//
|
|
340 |
void VideoBasePlaybackView::doClosePlayer()
|
|
341 |
{
|
|
342 |
MPX_DEBUG(_L("VideoBasePlaybackView::doClosePlayer()"));
|
|
343 |
|
|
344 |
handleDeactivateView();
|
|
345 |
|
|
346 |
qApp->quit();
|
|
347 |
}
|
|
348 |
|
|
349 |
// -------------------------------------------------------------------------------------------------
|
|
350 |
// VideoBasePlaybackView::issuePlayCommand
|
|
351 |
// -------------------------------------------------------------------------------------------------
|
|
352 |
//
|
|
353 |
void VideoBasePlaybackView::issuePlayCommand()
|
|
354 |
{
|
|
355 |
MPX_ENTER_EXIT(_L("VideoBasePlaybackView::issuePlayCommand()"));
|
|
356 |
|
|
357 |
int err = KErrNone;
|
|
358 |
|
|
359 |
TRAP( err, mVideoMpxWrapper->CreateGeneralPlaybackCommandL( EPbCmdPlay ));
|
|
360 |
|
|
361 |
MPX_DEBUG(_L("VideoBasePlaybackView::issuePlayCommand() error = %d"), err);
|
|
362 |
}
|
|
363 |
|
|
364 |
// -------------------------------------------------------------------------------------------------
|
|
365 |
// VideoBasePlaybackView::retrievePdlInformation
|
|
366 |
// -------------------------------------------------------------------------------------------------
|
|
367 |
//
|
|
368 |
void VideoBasePlaybackView::retrievePdlInformation()
|
|
369 |
{
|
|
370 |
MPX_DEBUG(_L("VideoBasePlaybackView::retrievePdlInformation()"));
|
|
371 |
}
|
|
372 |
|
|
373 |
// -------------------------------------------------------------------------------------------------
|
|
374 |
// VideoBasePlaybackView::handleBufferingState
|
|
375 |
// -------------------------------------------------------------------------------------------------
|
|
376 |
//
|
|
377 |
void VideoBasePlaybackView::handleBufferingState()
|
|
378 |
{
|
|
379 |
MPX_DEBUG(_L("VideoBasePlaybackView::handleBufferingState()"));
|
|
380 |
}
|
|
381 |
|
|
382 |
// -------------------------------------------------------------------------------------------------
|
|
383 |
// VideoBasePlaybackView::closePlaybackView()
|
|
384 |
// -------------------------------------------------------------------------------------------------
|
|
385 |
//
|
|
386 |
void VideoBasePlaybackView::closePlaybackView()
|
|
387 |
{
|
|
388 |
MPX_ENTER_EXIT(_L("VideoBasePlaybackView::closePlaybackView()"));
|
|
389 |
|
|
390 |
mTimerForClosingView->start( 0 );
|
|
391 |
}
|
|
392 |
|
50
|
393 |
// -------------------------------------------------------------------------------------------------
|
44
|
394 |
// VideoBasePlaybackView::eventFilter
|
50
|
395 |
// -------------------------------------------------------------------------------------------------
|
44
|
396 |
//
|
|
397 |
bool VideoBasePlaybackView::eventFilter( QObject *object, QEvent *event )
|
|
398 |
{
|
|
399 |
Q_UNUSED( object );
|
|
400 |
|
|
401 |
switch ( event->type() )
|
|
402 |
{
|
|
403 |
case QEvent::ApplicationActivate:
|
|
404 |
{
|
|
405 |
if ( mActivated )
|
|
406 |
{
|
|
407 |
MPX_DEBUG(_L("VideoBasePlaybackView::eventFilter foreground()") );
|
50
|
408 |
TRAP_IGNORE( mVideoMpxWrapper->IssueVideoAppForegroundCmdL(
|
|
409 |
true, ! hbInstance->allMainWindows()[0]->isObscured() ) );
|
44
|
410 |
}
|
|
411 |
break;
|
|
412 |
}
|
|
413 |
case QEvent::ApplicationDeactivate:
|
|
414 |
{
|
|
415 |
if ( mActivated )
|
|
416 |
{
|
|
417 |
MPX_DEBUG(_L("VideoBasePlaybackView::eventFilter background()") );
|
50
|
418 |
TRAP_IGNORE( mVideoMpxWrapper->IssueVideoAppForegroundCmdL(
|
|
419 |
false, ! hbInstance->allMainWindows()[0]->isObscured() ) );
|
44
|
420 |
}
|
|
421 |
break;
|
|
422 |
}
|
|
423 |
}
|
|
424 |
|
|
425 |
return QObject::eventFilter( object, event );
|
|
426 |
}
|
|
427 |
|
|
428 |
// -------------------------------------------------------------------------------------------------
|
|
429 |
// VideoBasePlaybackView::getWindow()
|
|
430 |
// -------------------------------------------------------------------------------------------------
|
|
431 |
//
|
|
432 |
RWindow *VideoBasePlaybackView::getWindow()
|
|
433 |
{
|
|
434 |
return static_cast<RWindow*>( hbInstance->allMainWindows()[0]->effectiveWinId()->DrawableWindow() );
|
|
435 |
}
|
|
436 |
|
|
437 |
// -------------------------------------------------------------------------------------------------
|
|
438 |
// VideoBasePlaybackView::handleClosePopupDialog()
|
|
439 |
// -------------------------------------------------------------------------------------------------
|
|
440 |
//
|
|
441 |
void VideoBasePlaybackView::handleClosePopupDialog()
|
|
442 |
{
|
|
443 |
MPX_DEBUG(_L("VideoBasePlaybackView::handleClosePopupDialog()") );
|
|
444 |
|
|
445 |
handleClosePlaybackView();
|
|
446 |
}
|
|
447 |
|
|
448 |
// -------------------------------------------------------------------------------------------------
|
|
449 |
// VideoBasePlaybackView::gestureEvent()
|
|
450 |
// -------------------------------------------------------------------------------------------------
|
|
451 |
//
|
|
452 |
void VideoBasePlaybackView::gestureEvent( QGestureEvent* event )
|
|
453 |
{
|
|
454 |
if ( HbTapGesture * gesture = static_cast<HbTapGesture *>( event->gesture( Qt::TapGesture ) ) )
|
|
455 |
{
|
|
456 |
if ( gesture->state() == Qt::GestureFinished && mActivated )
|
|
457 |
{
|
|
458 |
MPX_DEBUG(_L("VideoBasePlaybackView::gestureEvent() tapGesture finished") );
|
|
459 |
|
|
460 |
emit tappedOnScreen();
|
|
461 |
}
|
|
462 |
}
|
|
463 |
else if ( HbPanGesture* gesture = static_cast<HbPanGesture*>( event->gesture( Qt::PanGesture ) ) )
|
|
464 |
{
|
|
465 |
if ( gesture->state() == Qt::GestureFinished && mActivated )
|
|
466 |
{
|
|
467 |
QPointF delta( gesture->sceneDelta() );
|
|
468 |
|
|
469 |
if ( delta.x() > 0 )
|
|
470 |
{
|
|
471 |
MPX_DEBUG(_L("VideoBasePlaybackView::gestureEvent() right") );
|
|
472 |
|
|
473 |
emit pannedToRight();
|
|
474 |
}
|
|
475 |
else
|
|
476 |
{
|
|
477 |
MPX_DEBUG(_L("VideoBasePlaybackView::gestureEvent() left") );
|
|
478 |
|
|
479 |
emit pannedToLeft();
|
|
480 |
}
|
|
481 |
}
|
|
482 |
}
|
|
483 |
}
|
|
484 |
|
50
|
485 |
// -------------------------------------------------------------------------------------------------
|
|
486 |
// VideoBasePlaybackView::handleAppBackground()
|
|
487 |
// -------------------------------------------------------------------------------------------------
|
|
488 |
//
|
|
489 |
void VideoBasePlaybackView::handleAppBackground()
|
|
490 |
{
|
|
491 |
MPX_ENTER_EXIT(_L("VideoBasePlaybackView::handleAppBackground()") );
|
|
492 |
|
|
493 |
if ( mActivated )
|
|
494 |
{
|
|
495 |
TRAP_IGNORE( mVideoMpxWrapper->IssueVideoAppForegroundCmdL( false, false ) );
|
|
496 |
}
|
|
497 |
}
|
|
498 |
|
|
499 |
// -------------------------------------------------------------------------------------------------
|
|
500 |
// VideoBasePlaybackView::handleAppForeground()
|
|
501 |
// -------------------------------------------------------------------------------------------------
|
|
502 |
//
|
|
503 |
void VideoBasePlaybackView::handleAppForeground()
|
|
504 |
{
|
|
505 |
MPX_ENTER_EXIT(_L("VideoBasePlaybackView::handleAppForeground()") );
|
|
506 |
|
|
507 |
if ( mActivated )
|
|
508 |
{
|
|
509 |
TRAP_IGNORE( mVideoMpxWrapper->IssueVideoAppForegroundCmdL( true, true ) );
|
|
510 |
}
|
|
511 |
}
|
|
512 |
|
44
|
513 |
// EOF
|