AVPlayer playback fails while AVAssetExportSession is active as of iOS 10

后端 未结 2 1213
野的像风
野的像风 2020-12-05 05:56

AVPlayer will randomly just play audio, not showing the video track...

Playing video correctly with AVPlayer while having an active compres

2条回答
  •  孤街浪徒
    2020-12-05 06:28

    Just heard from Apple DTS. They also agree this points to an Apple iOS bug and asked me to log it.

    I cut out usage of AVAssetExportSession altogether and it solved the issue. So calling AVAssetExportSession in combination with other AV methods is what causes the iOS instability.

    In my case I was usingAVAssetExportSession for post capture compression. So instead I used AVAssetWriter to sample each frame in real-time to the format I needed...

    This should be fixed soon by Apple, hopefully.

提交回复
热议问题