videoplayback/videoplaybackcontrols/src/mpxvideoplaybackcontrolpolicy.cpp
branchRCL_3
changeset 70 375929f879c2
parent 57 befca0ec475f
equal deleted inserted replaced
64:3eb824b18d67 70:375929f879c2
    13 *
    13 *
    14 * Description:  Implementation of MPXVideoPlaybackControlPolicy
    14 * Description:  Implementation of MPXVideoPlaybackControlPolicy
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 
    18 // Version : %version: 9 %
    19 // Version : %version: 10 %
       
    20 
    19 
    21 
    20 
    22 // INCLUDE FILES
    21 // INCLUDE FILES
    23 
    22 
    24 #include "mpxvideo_debug.h"
    23 #include "mpxvideo_debug.h"
    93         case EMPXSoftkeyBack:
    92         case EMPXSoftkeyBack:
    94         {
    93         {
    95             //
    94             //
    96             //  Transitory Buffering states will be filtered out by the View
    95             //  Transitory Buffering states will be filtered out by the View
    97             //
    96             //
    98             aProperties = EMPXBufferingControl | EMPXShownWhenInitializing;
    97             aProperties = EMPXBufferingControl;
       
    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             }
    99         }
   107         }
   100         case EMPXSoftkeyDetails:
   108         case EMPXSoftkeyDetails:
   101         {
   109         {
   102             aProperties += EMPXSoftkeyControl |
   110             aProperties += EMPXSoftkeyControl |
   103                            EMPXShownWhenPlaying |
   111                            EMPXShownWhenPlaying |
   107             break;
   115             break;
   108         }
   116         }
   109         case EMPXBufferingLabel:
   117         case EMPXBufferingLabel:
   110         {
   118         {
   111             aProperties = EMPXBufferingControl;
   119             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             }
       
   122             break;
   120             break;
   123         }
   121         }
   124         case EMPXTitleLabel:
   122         case EMPXTitleLabel:
   125         case EMPXArtistLabel:
   123         case EMPXArtistLabel:
   126         {
   124         {