(And here's what was filed with Feedback-Assistant ID# FB12264845)
Xcode 14.3 and Simulator 16.4 HLS/m3u8 video playback issue
Please see the following thread:
https://developer.apple.com/forums/thread/727288?login=true&page=1&r_s_legacy=true#754122022
This BUG REPORT is in response to a conversation earlier via WWDC Lab ID 7873788389, i.e. reporting the bug described in the above forum feed, and as follows:
HLS video is no longer playing beginning with XCode 14.3 and in Simulator 16.4.
I've isolated example code below. Note that .mp4 video plays fine, however HLS/m3u8 video does not (stream loads but only audio plays).
This bug is only in the Simulator (16.4); i.e. on device (and in previous Simulators) m3u8 video plays fine. Please see the forum thread for more details and other developer reports.
Thank you.
Example code:
/* Supporting includes, variables, etc.
#import <AVFoundation/AVFoundation.h>
#import <AVKit/AVKit.h>
@property (nonatomic, strong) AVPlayer *player;
@property (nonatomic, strong) AVPlayerViewController *playerViewController; */
// Initialize AVPlayer
// .mp4; note mp4 plays fine, i.e. video appears.
//NSURL *videoURL = [NSURL URLWithString:@"https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4"];
// m3u8; note HLS/m3u8 VIDEO DOESN'T APPEAR, however file "successfully" loads and e.g. audio plays.
NSURL *videoURL = [NSURL URLWithString:@"https://bitdash-a.akamaihd.net/content/sintel/hls/playlist.m3u8"];
self.player = [AVPlayer playerWithURL:videoURL];
// Initialize AVPlayerViewController
self.playerViewController = [[AVPlayerViewController alloc] init];
self.playerViewController.player = self.player;
self.playerViewController.view.frame = self.view.bounds;
[self.view addSubview:self.playerViewController.view];
// Play the video
[self.player play];