Skip to content

Support IOReader in Probe API #27

Closed

Description

@strangeliu

What should the engine do?

AetherEngine now supports opening any custom IOReader, but the Probe API — public nonisolated static func probe(url: URL, options: LoadOptions) throws -> SourceProbe — still only accepts a URL. We should add a new overload (or extend the existing one) to accept MediaSource directly, so that custom I/O sources can be probed just like regular URLs.

Motivating media or use case

Able to load SourceProbe info from any input io

Area

Other

Host app / integration context

No response

Would you be willing to open a PR?

No

Activity

  1. added
    enhancement
    on Jun 8, 2026
  2. superuser404notfound commented on Jun 10, 2026

    @superuser404notfound
    Owner

    Shipped in 3.0.0: probe(source:) accepts a MediaSource, so custom readers get the same one-shot metadata read as URLs. Ownership note: the caller keeps the reader; the probe seeks/reads through it, leaves the cursor at an unspecified position, and never calls close(). Hand load(source:) a fresh or rewound reader afterwards. Closing; feel free to reopen if the contract doesn't fit your use case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions