Add guards for AVFoundation methods.
Pull request: https://github.com/WebKit/WebKit/pull/7272
<rdar://problem/103080626>
Committed 257495@main (407bf5b3e4df): <https://commits.webkit.org/257495@main> Reviewed commits have been landed. Closing PR #7272 and removing active labels.