videoplayback/videoplaybackcontrols/src/mpxvideoplaybackcontrolpolicy.cpp
branchRCL_3
changeset 21 315810614048
parent 0 96612d01cf9f
equal deleted inserted replaced
20:2d690156cf8f 21:315810614048
    13 *
    13 *
    14 * Description:  Implementation of MPXVideoPlaybackControlPolicy
    14 * Description:  Implementation of MPXVideoPlaybackControlPolicy
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 // Version : %version: 9 %
    18 
       
    19 // Version : %version: 10 %
    19 
    20 
    20 
    21 
    21 // INCLUDE FILES
    22 // INCLUDE FILES
    22 
    23 
    23 #include "mpxvideo_debug.h"
    24 #include "mpxvideo_debug.h"
    92         case EMPXSoftkeyBack:
    93         case EMPXSoftkeyBack:
    93         {
    94         {
    94             //
    95             //
    95             //  Transitory Buffering states will be filtered out by the View
    96             //  Transitory Buffering states will be filtered out by the View
    96             //
    97             //
    97             aProperties = EMPXBufferingControl;
    98             aProperties = EMPXBufferingControl | EMPXShownWhenInitializing;
    98 
       
    99             //
       
   100             //  Do not show Back when Initializing for Local Mode
       
   101             //  It causes a flicker when playback begins
       
   102             //
       
   103             if ( aDetails->iPlaybackMode != EMPXVideoLocal )
       
   104             {
       
   105                 aProperties += EMPXShownWhenInitializing;
       
   106             }
       
   107         }
    99         }
   108         case EMPXSoftkeyDetails:
   100         case EMPXSoftkeyDetails:
   109         {
   101         {
   110             aProperties += EMPXSoftkeyControl |
   102             aProperties += EMPXSoftkeyControl |
   111                            EMPXShownWhenPlaying |
   103                            EMPXShownWhenPlaying |
   115             break;
   107             break;
   116         }
   108         }
   117         case EMPXBufferingLabel:
   109         case EMPXBufferingLabel:
   118         {
   110         {
   119             aProperties = EMPXBufferingControl;
   111             aProperties = EMPXBufferingControl;
       
   112 
       
   113             //
       
   114             //  Show Loading when Initializing for local playback modes
       
   115             //  This allows for a smoother transition to playing state
       
   116             //
       
   117             if ( aDetails->iPlaybackMode == EMPXVideoLocal ||
       
   118                  aDetails->iPlaybackMode ==  EMPXVideoProgressiveDownload )
       
   119             {
       
   120                 aProperties += EMPXShownWhenInitializing;
       
   121             }
   120             break;
   122             break;
   121         }
   123         }
   122         case EMPXTitleLabel:
   124         case EMPXTitleLabel:
   123         case EMPXArtistLabel:
   125         case EMPXArtistLabel:
   124         {
   126         {