AVSampleBufferDisplayLayer seems to hang on iOS 12.3.1 (<iOS 12.2, iOS 13.0) is also affected) after reboot. It looks that after 5 minutes everything works fine again.
The issue is not reproducible on iOS 11. In our production code we don't use AVAssetReader, so please ignore any issues with it, if minor.
I can make application hang on AVSampleBufferDisplayLayer init, enqueue and requestMediaDataWhenReadyOnQueue.
Please advise how we should implement AVSampleBufferDisplayLayer correctly (examples are welcome). Especially when we have to maintain and exchange many display layers at once.
How to reproduce the issue:
- Download: Tears of Steel segment
- Put tearsofsteel_4k.mov_1918x852_2000.mp4 in Resources/ directory
- Open AVSampleBufferDisplayLayer_BlackScreen.xcodeproj
- Take iOS 12.3.1 device and reboot it
- Start debugging AVSampleBufferDisplayLayer_BlackScreen
- The video should start playing, then move a slider (seek) one or a few more times
Video hangs usually on AVSampleBufferDisplayLayer methods
Video seeks and continues to play
https://github.com/mackode/AVSampleBufferDisplayLayer_Hanging