Upravit

Sdílet prostřednictvím


AVPlayer.PrerollAsync(Single) Method

Definition

Starts loading media into the playback buffers.

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual System.Threading.Tasks.Task<bool> PrerollAsync (float rate);
abstract member PrerollAsync : single -> System.Threading.Tasks.Task<bool>
override this.PrerollAsync : single -> System.Threading.Tasks.Task<bool>

Parameters

rate
Single

Playback rate.

Returns

A task that represents the asynchronous Preroll operation. The value of the TResult parameter is a AVCompletion.

Attributes

Remarks

The PrerollAsync method is suitable to be used with C# async by returning control to the caller with a Task representing the operation.

To be added.

Applies to