locked
[uwp] background recording RRS feed

  • Question

  • Hi,

    I was wandering, how come it is not possible to record audio on the background on a p.c. or laptop but the uwp microsoft voice recording app can? It records while minimalized, it records during a screensaver and records while the screen switches to off. The app can even keep the computer from entering sleep mode.I have tested it on a p.c. and two laptops.

    I thought background recording wasn’t possible or just for an x-amount of seconds? Which confirms when I run my own app. When it is minimalized recording is muted, when the screensaver comes on then recording is muted. When the screen gets shut down then sometimes it records a bit of sound, less than a second, and then the recording is muted again.

    I hope you have somebody can explain what is happening here.

    Thnks.


    • Edited by Troebelwater Friday, March 30, 2018 4:49 PM text layout
    Friday, March 30, 2018 4:48 PM

All replies

  • Hello,

    If you open its manifest then you will see following 

         <Extensions>
            <uap:Extension Category="windows.protocol">
              <uap:Protocol Name="ms-callrecording">
                <uap:Logo>Assets\VoiceRecorderAppList.png</uap:Logo>
              </uap:Protocol>
            </uap:Extension>
            <uap:Extension Category="windows.fileTypeAssociation">
              <uap:FileTypeAssociation Name="m4a">
                <uap:Logo>Assets\VoiceRecorderLogoExtensions.png</uap:Logo>
                <uap:SupportedFileTypes>
                  <uap:FileType>.m4a</uap:FileType>
                </uap:SupportedFileTypes>
              </uap:FileTypeAssociation>
            </uap:Extension>
            <Extension Category="windows.backgroundTasks" EntryPoint="BackgroundAudio.BackgroundAudioTask">
              <BackgroundTasks>
                <Task Type="audio"/>
              </BackgroundTasks>
            </Extension>
          </Extensions>
        </Application>
      </Applications>
      <Capabilities>
        <uap:Capability Name="documentsLibrary"/>
        <uap:Capability Name="contacts"/>
        <mobile:Capability Name="recordedCallsFolder"/>
        <rescap:Capability Name="extendedExecutionBackgroundAudio"/>
        <rescap:Capability Name="backgroundMediaRecording"/>
        <DeviceCapability Name="microphone"/>
      </Capabilities>
      <Extensions>


    and I think the solution is in "extendedExecutionBackgroundAudio" capability.


    Make the community better together


    Friday, March 30, 2018 6:32 PM
  • Hello Azat,

    You might be correct on the restricted capability. I’ve learned that these capabilities are only available to microsoft and partners. I’m not a partner so I think background audio recording will be a no go for uwp.

    Thank you for responding.

    Saturday, March 31, 2018 11:25 AM
  • Hello, 

    If you don't want to upload app to the store then you can declare this capability in manifest and use side loading for app installation without any problem.


    Make the community better together

    Tuesday, April 3, 2018 5:57 AM