Collection

MediaExtension sample architecture

Source-backed, high-level architecture notes for Apple sample-code pages grouped in the MediaExtension folder.

  • Catalog module label: MediaExtension
  • Coverage: 1 / 1 sample pages documented
  • Source policy: archive hashes and extracted-tree references are verified locally before analysis

Samples

Sample Platforms High-level architecture Documented patterns
Supporting custom media formats and decoders macOS Three targets. A SwiftUI + Objective-C host app (FormatReaderAndDecoder) and two ExtensionKit extensions (SimpleContainerReader, RLEVideoDecoder) embedded in the app. Each extension’s EXPrincipalClass is a factory that conforms to a MediaExtension protocol and creates per-file or per-stream worker objects. The extensions never call each other or the app. They share only C header contracts in Shared/. Factory, Delegate or data-source callbacks, Binding-based state propagation

Cross-sample signals

Recurring documented patterns

Pattern label Sample documents

Type-role naming evidence

Counts below are declaration-name suffixes, not inferred patterns.

Role suffix Distinct declarations across samples
Factory 2
App 1
Delegate 1
Model 1
View 1

Swift access-control evidence

These are declaration occurrences in scanned Swift source, including implicit internal declarations.

Access level Occurrences
implicit internal 26
private 5

References

Generated from the verified local catalog and completed Markdown documents.