videoplayback/videoplaybackcontrols/src/mpxvideoplaybackprogressbar.cpp
branchRCL_3
changeset 21 55fa1ec415c6
parent 16 7f2b2a65da29
child 23 8f0df5c82986
equal deleted inserted replaced
16:7f2b2a65da29 21:55fa1ec415c6
    13 *
    13 *
    14 * Description: Progress bar control
    14 * Description: Progress bar control
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 // Version : %version: 21 %
    18 // Version : %version: 22 %
    19 
    19 
    20 
    20 
    21 // INCLUDE FILES
    21 // INCLUDE FILES
    22 #include <eikenv.h>
    22 #include <eikenv.h>
    23 #include <gulicon.h>
    23 #include <gulicon.h>
   332     //  - The clip is not seekable
   332     //  - The clip is not seekable
   333     //  - The state is not playing/paused
   333     //  - The state is not playing/paused
   334     //  - If TV-Out is connected and the clip is DRM protected
   334     //  - If TV-Out is connected and the clip is DRM protected
   335     //
   335     //
   336     if ( iController->FileDetails()->iSeekable &&
   336     if ( iController->FileDetails()->iSeekable &&
   337          ( state == EPbStatePlaying || state == EPbStatePaused ) &&
   337          ( state == EPbStatePlaying || state == EPbStatePaused ) )
   338          iController->IsTvOutPlaybackAllowed() )
       
   339     {
   338     {
   340         TReal ratio = (TReal) ( aPointerEvent.iPosition.iX - iFrameIconRect.iTl.iX )/
   339         TReal ratio = (TReal) ( aPointerEvent.iPosition.iX - iFrameIconRect.iTl.iX )/
   341                       (TReal)( iFrameIconRect.Width() - KMPXProgressSliderWidth );
   340                       (TReal)( iFrameIconRect.Width() - KMPXProgressSliderWidth );
   342 
   341 
   343         if ( ratio > 1.0 )
   342         if ( ratio > 1.0 )