Instance Method


Cancels any current media data request.


func stopRequestingMediaData()


This method cancels any current requestMediaDataWhenReady(on:using:) call. Each invocation of requestMediaDataWhenReady(on:using:) must be balanced by a call to this method.

This method may be called from within the requestMediaDataWhenReady(on:using:) method’s block or from outside the block.

See Also

Initiating Media Data Requests

func requestMediaDataWhenReady(on: DispatchQueue, using: () -> Void)

Instructs the target to invoke a client-supplied block repeatedly, at its convenience, in order to gather sample buffers for display.

var isReadyForMoreMediaData: Bool

A Boolean value that indicates the readiness of the layer to accept more sample buffers.