Contents

sample(forHostTime:)

Retrieves a video sample along with auxiliary information for display at the specified host time.

Declaration

func sample(forHostTime hostTime: CMTime) -> AVPlayerVideoOutput.Sample?

Parameters

  • hostTime:

    A CMTime that expresses a desired host time.

Return Value

A sample containing the frame, presentation timestamp, and active configuration for the specified host time, or nil if no sample was available for that host time.

See Also

Accessing video data