smartdevicelink / sdl_hmi

BSD 3-Clause "New" or "Revised" License
14 stars 43 forks source link

HMI doesn't stop play audio when PHONE_CALL event happened #654

Closed GetmanetsIrina closed 2 years ago

GetmanetsIrina commented 2 years ago

Preconditions:

  1. SDL and HMI are started
  2. Executed from HMI folder

./deploy_server.sh

  1. Mobile app is registered: (with syncMsgVersion = { majorVersion = 8, minorVersion = 0 } or greater) App with HMI type 'NAVIGATION' and checkbox 'Media': true
  2. App is activated OnHMIStatus:{ "audioStreamingState":"AUDIBLE", "hmiLevel":"FULL" }

    Steps to reproduce:

  3. Start audio stream(app menu ->Stream Services -> Start Service (Unsecure should be checked) -> Select Audio Sample 2m 45 sec) Note: SPT sends all audio data for the short time
  4. Get Incoming call Click "Incoming Call" on the HMI HMI->SDL: BasicCommunication.OnEventChanged: {"eventName":"PHONE_CALL","isActive":true}

Expected result:

  1. App goes to FULL(STREAMABLE, NOT_AUDIBLE) state SDL->App: OnHMIStatus:{ "audioStreamingState":"NOT_AUDIBLE", "hmiLevel":"FULL" }
  2. HMI stops playing audio

Actual result:

  1. App goes to FULL(STREAMABLE, NOT_AUDIBLE) state SDL->App: OnHMIStatus:{ "audioStreamingState":"NOT_AUDIBLE", "hmiLevel":"FULL" }
  2. HMI is continuing play audio

OS & Version Information:

GetmanetsIrina commented 2 years ago

Please notice Luxoft team is going to prepare a fix.

jacobkeeler commented 2 years ago

Fixed via #655