videoplayback/videoplaybackcontrols/tsrc/videoplaybackcontrols_test/src/mpxvpbc_stub.cpp
equal
deleted
inserted
replaced
13 * |
13 * |
14 * Description: Test Harness for VideoPlaybackControls |
14 * Description: Test Harness for VideoPlaybackControls |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 // Version : %version: 13 % |
18 // Version : %version: e003sa33#14 % |
19 |
19 |
20 |
20 |
21 // INCLUDES |
21 // INCLUDES |
22 #include <coeaui.h> |
22 #include <coeaui.h> |
23 #include <aknutils.h> |
23 #include <aknutils.h> |
195 void CMPXVideoPlaybackContainer::AddFileDetailsL( TBool aHasVideoTrack ) |
195 void CMPXVideoPlaybackContainer::AddFileDetailsL( TBool aHasVideoTrack ) |
196 { |
196 { |
197 MPX_DEBUG(_L("CMPXVideoPlaybackContainer::AddFileDetailsL() ")); |
197 MPX_DEBUG(_L("CMPXVideoPlaybackContainer::AddFileDetailsL() ")); |
198 |
198 |
199 iFileDetails->iAudioEnabled = ETrue; |
199 iFileDetails->iAudioEnabled = ETrue; |
200 iFileDetails->iVideoEnabled = aHasVideoTrack; |
|
201 iFileDetails->iVideoEnabled = aHasVideoTrack; |
200 iFileDetails->iVideoEnabled = aHasVideoTrack; |
202 iFileDetails->iSeekable = ETrue; |
201 iFileDetails->iSeekable = ETrue; |
203 |
202 |
204 iFileDetails->iTitle = _L("Test Title").Alloc(); |
203 iFileDetails->iTitle = _L("Test Title").Alloc(); |
205 |
204 |
378 |
377 |
379 MPX_DEBUG(_L(" iType = %d, iPosition = (%d,%d)"), |
378 MPX_DEBUG(_L(" iType = %d, iPosition = (%d,%d)"), |
380 aPointerEvent.iType, aPointerEvent.iPosition.iX, aPointerEvent.iPosition.iY ); |
379 aPointerEvent.iType, aPointerEvent.iPosition.iX, aPointerEvent.iPosition.iY ); |
381 } |
380 } |
382 |
381 |
|
382 // ------------------------------------------------------------------------------------------------- |
|
383 // CMPXVideoPlaybackContainer::AddSameARFileDetailsL() |
|
384 // ------------------------------------------------------------------------------------------------- |
|
385 // |
|
386 void CMPXVideoPlaybackContainer::AddSameARFileDetailsL( TBool aHasVideoTrack ) |
|
387 { |
|
388 MPX_ENTER_EXIT( _L( "CMPXVideoPlaybackContainer::AddSameARFileDetailsL() ") ); |
|
389 |
|
390 iFileDetails->iAudioEnabled = ETrue; |
|
391 iFileDetails->iVideoEnabled = aHasVideoTrack; |
|
392 iFileDetails->iSeekable = ETrue; |
|
393 |
|
394 if ( iFileDetails->iVideoEnabled ) |
|
395 { |
|
396 iFileDetails->iVideoHeight = this->Rect().Height(); |
|
397 iFileDetails->iVideoWidth = this->Rect().Width(); |
|
398 |
|
399 iFileDetails->iBitRate = 8000; |
|
400 iFileDetails->iMimeType = _L("video/3gp").Alloc(); |
|
401 } |
|
402 |
|
403 if ( iFileDetails->iPlaybackMode == EMPXVideoLiveStreaming ) |
|
404 { |
|
405 iFileDetails->iSeekable = EFalse; |
|
406 } |
|
407 |
|
408 iControlsController->AddFileDetailsL( iFileDetails ); |
|
409 } |
|
410 |
383 // End of File |
411 // End of File |