4

--> I've made screen recorder using RPSScreenRecord which is able to record screen in foreground. But how can I continue record screen when app is in background ? --> Any Help and suggestion will be appreciated. Thanks in advance!!

Jecky
  • 476
  • 1
  • 4
  • 21

2 Answers2

3

This is the simplest way to record screen in background. Also no need to create Broadcast upload extension. Simply create RPSystemBroadcastPickerView and start recording in background it will also work when app is in background or forced closed.

var broadCastPicker : RPSystemBroadcastPickerView?

override func viewDidLoad() {
    super.viewDidLoad()

    broadCastPicker = RPSystemBroadcastPickerView(frame: CGRect(x: 0, y: 0, width: 200, height: 200))
    self.view.addSubview(broadCastPicker!)
}
Mubashshir
  • 41
  • 4
0

RPSScreenRecord won't work, when application in background.

sp74
  • 26
  • 4