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.
Post
Replies
Boosts
Views
Activity
Base Localization for Purpose Key of NSLocationTemporaryUsageDescriptionDictionary : Not working.
But,
Base Localization for NSLocationWhenInUseUsageDescription : Working.
Base Localization: English
CFBundleDevelopmentRegion: en_US
When iPhone Language Setting is Not English,
I can see "AAA" in the location authorization request dialog.
However, in the temporarily use location services with full accuracy dialog, I can see "....".
Why Base localization for purpose string in NSLocationTemporaryUsageDescriptionDictionary doesn't work?
Info.plist
<key>NSLocationWhenInUseUsageDescription</key>
<string>....</string>
<key>NSLocationTemporaryUsageDescriptionDictionary</key>
<dict>
<key>MyPurposeKey</key>
<string>....</string>
</dict>
InfoPlist.strings (Base)
NSLocationWhenInUseUsageDescription = "AAA";
MyPurposeKey = "BBB";
InfoPlist.strings (English)
NSLocationWhenInUseUsageDescription = "aaa";
MyPurposeKey = "bbb";