RTSP Live streaming Background more than 3 minutes


hi,

i'm trying upload rtsp stream 1 ip camera server . i'm using "ffmpeg" thirdparty c library uploading.is possible continue uploading in background?currently live streaming got disconncted after 3 minutes in background.i want continue live streaming out interuption,if user locked iphone.i've enabled project target -> capabilities ->background modes ->external accessory communications , background fetch.is possible continue streaming without interruption after 3 minutes ,the user lock iphone?


code:
let queue:dispatch_queue_t = dispatch_queue_create("streaming", dispatch_queue_serial)     dispatch_async(queue, { () -> void in    self.startstreaming()    })    func startstreaming()    {    let taskid = uiapplication.sharedapplication().beginbackgroundtaskwithexpirationhandler { () -> void in   }    start_stream()  // call ffmpeg code live streaming     if(taskid != uibackgroundtaskinvalid)    {    uiapplication.sharedapplication().endbackgroundtask(taskid)    self.clearstreamingdefaults()    }  }
thanks .
 



Forums iPhone, iPad, and iPod Touch iOS Programming


  • iPhone
  • Mac OS & System Software
  • iPad
  • Apple Watch
  • Notebooks
  • iTunes
  • Apple ID
  • iCloud
  • Desktop Computers
  • Apple Music
  • Professional Applications
  • iPod
  • iWork
  • Apple TV
  • iLife
  • Wireless

Comments

Popular posts from this blog

Sean Penn, "Chapo Guzman", and Rolling Stone

Subler - What is "Fix Audio Fallbacks"?

Help please Strange logs