videoplayback/hbvideoplaybackview/controlsrc/mpxvideoplaybackcontrolconfiguration.cpp
branchGCC_SURGE
changeset 48 ebbeb6bcda56
parent 28 c48470be1ba7
equal deleted inserted replaced
27:7bf7319dbddd 48:ebbeb6bcda56
    13 *
    13 *
    14 * Description:  Implementation of QMPXVideoPlaybackControlConfiguration
    14 * Description:  Implementation of QMPXVideoPlaybackControlConfiguration
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 // Version : %version: da1mmcf#19 %
    18 // Version : %version: da1mmcf#20 %
    19 
    19 
    20 
    20 
    21 
    21 
    22 // INCLUDE FILES
    22 // INCLUDE FILES
    23 
    23 
    62 {
    62 {
    63     MPX_DEBUG(_L("QMPXVideoPlaybackControlConfiguration::createControlList()"));
    63     MPX_DEBUG(_L("QMPXVideoPlaybackControlConfiguration::createControlList()"));
    64 
    64 
    65     QMPXVideoPlaybackViewFileDetails* fileDetails = mControlsController->fileDetails();
    65     QMPXVideoPlaybackViewFileDetails* fileDetails = mControlsController->fileDetails();
    66 
    66 
       
    67     addControlToList( EMPXStatusPane );
       
    68 
    67     if ( fileDetails->mPlaybackMode == EMPXVideoStreaming ||
    69     if ( fileDetails->mPlaybackMode == EMPXVideoStreaming ||
    68          fileDetails->mPlaybackMode == EMPXVideoLiveStreaming )
    70          fileDetails->mPlaybackMode == EMPXVideoLiveStreaming )
    69     {
    71     {
    70         //
    72         //
    71         // streaming, add branding animation control to show while initializing
    73         // streaming, add branding animation control to show while initializing
    72         //
    74         //
    73         addControlToList( EMPXBufferingAnimation );
    75         addControlToList( EMPXBufferingAnimation );
    74     }
    76     }
    75 
    77     else if ( fileDetails->mRNFormat )
    76     addControlToList( EMPXStatusPane );
    78     {
       
    79         addControlToList( EMPXRealLogoBitmap );
       
    80     }
    77 
    81 
    78     emit controlListUpdated();
    82     emit controlListUpdated();
    79 }
    83 }
    80 
    84 
    81 // -------------------------------------------------------------------------------------------------
    85 // -------------------------------------------------------------------------------------------------
   141             addControlToList( EMPXIndicatorBitmap );
   145             addControlToList( EMPXIndicatorBitmap );
   142             addControlToList( EMPXFileDetailsWidget );
   146             addControlToList( EMPXFileDetailsWidget );
   143 
   147 
   144             break;
   148             break;
   145         }
   149         }
   146         case EMPXControlCmdTvOutDisconnected:
   150         case EMPXControlCmdRemoveRNLogo:
   147         {
   151         {
   148             break;
   152             MPX_DEBUG(_L("QMPXVideoPlaybackControlConfiguration::updateControlList() RN Logo removed"));
   149         }
   153 
   150         default:
   154             deleteControlFromList( EMPXRealLogoBitmap );
   151         {
   155 
   152             break;
   156             break;
   153         }
   157         }
   154     }
   158     }
   155 
   159 
   156     emit controlListUpdated();
   160     emit controlListUpdated();