locked
Play audio by use BackgroundCapableMedia cant blocked app suspended?

    Question

  • I use this code to play audio in background to block the app suspend in 8.0

    mediaElement->AudioCategory = AudioCategory::BackgroundCapableMedia;


    but it does not work in 8.1 while capturing audio

    IAudioClient2*	 m_AudioClient;
    ..
    hr = m_AudioClient->Initialize(ShareMode, StreamFlags, hnsBufferDuration, hnsPeriodicity, pFormat, AudioSessionGuid);
    

    Tuesday, November 26, 2013 11:06 AM

Answers