mmsharing/mmshui/src/musuilivesharingcontroller.cpp
branchRCL_3
changeset 21 33a5d2bbf6fc
parent 20 2d2c7d1515f7
equal deleted inserted replaced
20:2d2c7d1515f7 21:33a5d2bbf6fc
   113                                          iSipProfileId );
   113                                          iSipProfileId );
   114 
   114 
   115     iSession->SetAudioRoutingObserver( this );
   115     iSession->SetAudioRoutingObserver( this );
   116     iSession->SetVolumeChangeObserver( this );
   116     iSession->SetVolumeChangeObserver( this );
   117         
   117         
   118     if ( iSession->AudioRoutingCanBeChanged() && !iSession->AudioOutputIsBT() )
   118     if ( iSession->AudioRoutingCanBeChanged() && !iSession->IsAudioRoutingHeadset() )
   119         {
   119         {
   120         iSession->EnableLoudspeakerL( ELoudspeakerEnabled, ETrue );
   120         iSession->EnableLoudspeakerL( ELoudspeakerEnabled, ETrue );
   121         }
   121         }
   122         
   122         
   123     if ( iVideoCodec && iVideoCodec->Length() > 0 )
   123     if ( iVideoCodec && iVideoCodec->Length() > 0 )
   183 // -----------------------------------------------------------------------------
   183 // -----------------------------------------------------------------------------
   184 //
   184 //
   185 void CMusUiLiveSharingController::DeleteEngineSession()
   185 void CMusUiLiveSharingController::DeleteEngineSession()
   186     {
   186     {
   187     CMusUiSendController::DeleteEngineSession();
   187     CMusUiSendController::DeleteEngineSession();
   188     
   188     if ( iSession && iSession->IsAudioRoutingLoudSpeaker() )
       
   189 	    {
       
   190 	    iShowDialog = ETrue; 
       
   191 	    }
   189     delete iSession;
   192     delete iSession;
   190     iSession = NULL;
   193     iSession = NULL;
   191     }
   194     }
   192 
   195 
   193 
   196