diff --git a/ios/Video/Features/RCTPlayerObserver.swift b/ios/Video/Features/RCTPlayerObserver.swift index fdff8836f1..02c32f82d0 100644 --- a/ios/Video/Features/RCTPlayerObserver.swift +++ b/ios/Video/Features/RCTPlayerObserver.swift @@ -104,8 +104,10 @@ class RCTPlayerObserver: NSObject, AVPlayerItemMetadataOutputPushDelegate { } func metadataOutput(_: AVPlayerItemMetadataOutput, didOutputTimedMetadataGroups groups: [AVTimedMetadataGroup], from _: AVPlayerItemTrack?) { + guard let _handlers else { return } + for metadataGroup in groups { - _handlers?.handleTimeMetadataChange(timedMetadata: metadataGroup.items) + _handlers.handleTimeMetadataChange(timedMetadata: metadataGroup.items) } }