AVPlayer disappeared When entering the foreground mode after entering the background mode.

AVPlayer disappeared When entering the foreground mode after entering the background mode.

It works correctly when playing .mp4 files, but this issue occurs when playing .m3u8 files.
This problem occurs in iOS 14 but not iOS 13.

After AVPlayer play correctly, it is paused when entering the background mode.
When entering the foreground mode, the AVPlayerLayer disappeared, and only a black screen is displayed.

This happens with both AVPlayerLayer and AVPlayerViewController.
Same issue!
Sometimes I can not seek
I think it related decoding m3u8 file of AVFoundation's classes
Same issue!
AVPlayer disappeared When entering the foreground mode after entering the background mode.
 
 
Q