One Logo Pool Ball
CreateMLComponents · IOS API REFERENCE

VideoReader.AsyncFrames

struct · iOS 16.0+ · SDK 27.1

struct AsyncFrames

An async sequence of video frames. This sequence allows iterating through the file only once.

Members (7)

method · iOS 16.0+

makeAsyncIterator

TypeScript
makeAsyncIterator(): VideoReader_AsyncFrames_Iterator
Swift declaration
func makeAsyncIterator() -> VideoReader.AsyncFrames.Iterator

Constructs an iterator.

get · iOS 16.0+

videoDuration

TypeScript
get videoDuration(): _CoreMedia_CMTime
Swift declaration
let videoDuration: CMTime

The video duration.

get · iOS 16.0+

nominalFrameRate

TypeScript
get nominalFrameRate(): number
Swift declaration
let nominalFrameRate: Float

The nominal frame rate.

get · iOS 16.0+

url

TypeScript
get url(): string
Swift declaration
let url: URL

The video file URL, used when throwing an error.

get · iOS 16.0+

count

TypeScript
get count(): (number) | null
Swift declaration
var count: Int? { get }

The number of frames. For this sequence count is always nil.

get · iOS 16.0+

frameSize

TypeScript
get frameSize(): { width: number; height: number }
Swift declaration
let frameSize: CGSize

The frame size.

get · iOS 16.0+

timescale

TypeScript
get timescale(): number
Swift declaration
let timescale: CMTimeScale

The timescale of the video track.

Skipped declarations

No declarations were skipped in this snapshot.

All CreateMLComponents types →