1

If I wait a few seconds and close/reopen the app (or scroll the video), the video eventually comes back. I am completely lost as to why the video just disappears and my AVPlayer goes black.

Has anyone encountered this and/or know of a fix?

Edit: I set up the AVPlayer inside an AVPlayerLayer like so: https://codeshare.io/vmBHX

riverhawk
  • 236
  • 2
  • 12
  • is it in a scrollview? – MNM Oct 03 '16 at 07:05
  • 1
    Ok I just zeroed in on the problem. I am using AVVideoCompositionCoreAnimationTool to apply overlays on my video. If I remove this, the problem goes away so for some reason using this causes the AVPlayerLayer to fail when the app enters the background. – riverhawk Oct 03 '16 at 13:07
  • @riverhawk same problem here, also using AVVideoCompositionCoreAnimationTool to apply overlays. Did you find the solution? – Sam Oct 04 '16 at 18:52
  • 1
    I have not, I submitted a bug report to Apple so I'm curious to see what they say. If you figure it out, could you post the answer here? – riverhawk Oct 04 '16 at 21:27
  • @riverhawk of course I will post it here dude. Please do the same :) – Sam Oct 05 '16 at 20:31
  • @riverhawk Can you please edit your question to reflect your first comment? The issue is not about AVAssetExportSession but about AVVideoCompositionCoreAnimationTool because if we remove it then it works fine.. – Sam Oct 06 '16 at 08:14
  • I posted a question to reflect the real issue with AVVideoCompositionCoreAnimationTool http://stackoverflow.com/questions/39891353/swift-3-issue-with-avvideocompositioncoreanimationtool-to-add-watermark-on-vid – Sam Oct 06 '16 at 08:39
  • @riverhawk have you found a solution? – Sam Nov 09 '16 at 09:40
  • @Sam I haven't =( Was hoping it would be patched in an update...Apple also said my report was a duplicate of another persons report and I don't think it was resolved for them either.. – riverhawk Nov 11 '16 at 01:47
  • @riverhawk Thanks for your answer. This is really annoying.. They also said my report was a duplicate but the issue has not been resolved yet.. – Sam Nov 11 '16 at 08:43
  • @Sam Yah, I wish I could help you man. I'm probably going to ship my product regardless because it's on them not us. Hopefully a patch will fix it for us. – riverhawk Nov 12 '16 at 01:49
  • @Sam looks like they fixed it in the most recent patch! – riverhawk Dec 16 '16 at 02:06

0 Answers0