Service gets paused while app is in background && screen is locked

前端 未结 1 821
生来不讨喜
生来不讨喜 2021-01-03 15:01

Inside a Foreground Service I encode media with FFMPEG. By logging the encode progress I noticed the process gets paused(in some devices)

while device connect

相关标签:
1条回答
  • 2021-01-03 15:28

    You need to implement it as ForegroundService. It is required to avoid the pausing at least from API Level 26.

    0 讨论(0)
提交回复
热议问题