Skip to content

Access SampleInfo from async reader interface #298

@samcarey

Description

@samcarey

Using the async interface, as in the examples:

let mut datareader_stream = reader.async_sample_stream();

This stream produces samples with no metadata (SampleInfo) using the take_bare method internally instead of take.
Is there a way to access the SampleInfo using the async interface, or do I need to resort to synchronously calling take on the reader directly?

Is there a reason that the async interface currently strips the metadata? Performance I'm guessing?
It seems like a more versatile interface would expose the metadata and let the user choose to ignore it.
Or perhaps two interfaces could exist, one that provides metadata and one that doesn't?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions