videoplayback/videoplaybackcontrols/tsrc/videoplaybackcontrols_test/src/mpxvpbc_stub.cpp
changeset 1 6711b85517b7
parent 0 96612d01cf9f
child 2 dec420019252
equal deleted inserted replaced
0:96612d01cf9f 1:6711b85517b7
     1 /*
     1 /*
     2 * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). 
     2 * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). 
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of the License "Symbian Foundation License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html".
     8 *
     8 *
     9 * Initial Contributors:
     9 * Initial Contributors:
    10 * Nokia Corporation - initial contribution.
    10 * Nokia Corporation - initial contribution.
    11 *
    11 *
    12 * Contributors:
    12 * Contributors:
    13 *
    13 *
    14 * Description:  Test Harness for VideoPlaybackControls
    14 * Description:  Test Harness for VideoPlaybackControls
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 // Version : %version: ou1cpsw#11 %
    18 // Version : %version: e003sa33#11 %
    19 
    19 
    20 
    20 
    21 // INCLUDES
    21 // INCLUDES
    22 #include <coeaui.h>
    22 #include <coeaui.h>
    23 #include <aknutils.h>
    23 #include <aknutils.h>
    32 #include "mpxvideoplaybackcontrolscontroller.h"
    32 #include "mpxvideoplaybackcontrolscontroller.h"
    33 #include "mpxhelixplaybackplugindefs.h"
    33 #include "mpxhelixplaybackplugindefs.h"
    34 #include "mpxvpbuih_stub.h"
    34 #include "mpxvpbuih_stub.h"
    35 #include "mpxcommonvideoplaybackview.hrh"
    35 #include "mpxcommonvideoplaybackview.hrh"
    36 #include "mpxvideo_debug.h"
    36 #include "mpxvideo_debug.h"
       
    37 
       
    38 // CONSTANTS
       
    39 
       
    40 _LIT( KFileTitle, "asdfasdfasdfasdfasdfasd asdfasdfasdfasdfasdfasd" );
       
    41 
       
    42 const TInt KMaxFileTitleLength = 2048;
       
    43 
    37 
    44 
    38 // ============================ MEMBER FUNCTIONS ===================================================
    45 // ============================ MEMBER FUNCTIONS ===================================================
    39 
    46 
    40 // -------------------------------------------------------------------------------------------------
    47 // -------------------------------------------------------------------------------------------------
    41 // CMPXVideoPlaybackContainer::CMPXVideoPlaybackContainer
    48 // CMPXVideoPlaybackContainer::CMPXVideoPlaybackContainer
   322 {
   329 {
   323     return iUserInputHandler;
   330     return iUserInputHandler;
   324 }
   331 }
   325 
   332 
   326 
   333 
       
   334 // -------------------------------------------------------------------------------------------------
       
   335 // CMPXVideoPlaybackContainer::AddLongFileDetailsL()
       
   336 // -------------------------------------------------------------------------------------------------
       
   337 //
       
   338 void CMPXVideoPlaybackContainer::AddLongFileDetailsL( TBool aHasVideoTrack )
       
   339 {
       
   340     MPX_DEBUG(_L("CMPXVideoPlaybackContainer::AddFileDetailsL() "));
       
   341 
       
   342     iFileDetails->iAudioEnabled = ETrue;
       
   343     iFileDetails->iVideoEnabled = aHasVideoTrack;
       
   344     iFileDetails->iSeekable = ETrue;
       
   345 
       
   346     HBufC* temp = HBufC::NewLC(KMaxFileTitleLength);
       
   347     TPtr fileTitlePtr = temp->Des();
       
   348 
       
   349     const int loop = 10;
       
   350     for ( int i=0; i<loop; i++ )
       
   351     {
       
   352         fileTitlePtr.Append( KFileTitle() );
       
   353     }
       
   354     iFileDetails->iTitle  = fileTitlePtr.Alloc();
       
   355     CleanupStack::PopAndDestroy();  //temp
       
   356 
       
   357     if ( iFileDetails->iVideoEnabled )
       
   358     {
       
   359         iFileDetails->iVideoHeight = 176;
       
   360         iFileDetails->iVideoWidth = 144;
       
   361 
       
   362         iFileDetails->iBitRate = 8000;
       
   363         iFileDetails->iMimeType = _L("video/3gp").Alloc();
       
   364     }
       
   365 
       
   366     if ( iFileDetails->iPlaybackMode == EMPXVideoLiveStreaming )
       
   367     {
       
   368         iFileDetails->iSeekable = EFalse;
       
   369     }
       
   370 
       
   371     iControlsController->AddFileDetailsL( iFileDetails );
       
   372 }
       
   373 
   327 //  End of File
   374 //  End of File