Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Commit 673554c

Browse files
Add temp debug NSLog statements
1 parent d4c7cd4 commit 673554c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

packages/video_player/video_player_avfoundation/ios/Classes/FLTVideoPlayerPlugin.m

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,15 @@ - (void)observeValueForKeyPath:(NSString *)path
255255
switch (item.status) {
256256
case AVPlayerItemStatusFailed:
257257
if (_eventSink != nil) {
258+
// DO NOT LAND. For debugging CI failures.
259+
NSLog(@"AVPlayer error '%@' (%@ %ld) [%@]", item.error.localizedDescription,
260+
item.error.domain, item.error.code, item.error.userInfo);
261+
if (@available(iOS 14.5, *)) {
262+
for (NSError *error in item.error.underlyingErrors) {
263+
NSLog(@"- underlying error '%@' (%@ %ld) [%@]", error.localizedDescription,
264+
error.domain, error.code, error.userInfo);
265+
}
266+
}
258267
_eventSink([FlutterError
259268
errorWithCode:@"VideoError"
260269
message:[@"Failed to load video: "

0 commit comments

Comments
 (0)