Bewerken

Delen via


AVPlayer.SeekAsync Method

Definition

Overloads

SeekAsync(CMTime)

Seeks to a specific location in the playback stream.

SeekAsync(NSDate)

Seeks to a specific time in the playback stream and invokes the onComplete handler.

SeekAsync(CMTime, CMTime, CMTime)

Seeks to a specific time, with a specified tolerance. May be higher performane than non-tolerant seek.

SeekAsync(CMTime)

Seeks to a specific location in the playback stream.

public virtual System.Threading.Tasks.Task<bool> SeekAsync (CoreMedia.CMTime time);
abstract member SeekAsync : CoreMedia.CMTime -> System.Threading.Tasks.Task<bool>
override this.SeekAsync : CoreMedia.CMTime -> System.Threading.Tasks.Task<bool>

Parameters

time
CMTime

Seek time target.

Returns

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

Applies to

SeekAsync(NSDate)

Seeks to a specific time in the playback stream and invokes the onComplete handler.

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 9, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual System.Threading.Tasks.Task<bool> SeekAsync (Foundation.NSDate date);
abstract member SeekAsync : Foundation.NSDate -> System.Threading.Tasks.Task<bool>
override this.SeekAsync : Foundation.NSDate -> System.Threading.Tasks.Task<bool>

Parameters

date
NSDate

Target data to seek to

Returns

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

Attributes

Applies to

SeekAsync(CMTime, CMTime, CMTime)

Seeks to a specific time, with a specified tolerance. May be higher performane than non-tolerant seek.

public virtual System.Threading.Tasks.Task<bool> SeekAsync (CoreMedia.CMTime time, CoreMedia.CMTime toleranceBefore, CoreMedia.CMTime toleranceAfter);
abstract member SeekAsync : CoreMedia.CMTime * CoreMedia.CMTime * CoreMedia.CMTime -> System.Threading.Tasks.Task<bool>
override this.SeekAsync : CoreMedia.CMTime * CoreMedia.CMTime * CoreMedia.CMTime -> System.Threading.Tasks.Task<bool>

Parameters

time
CMTime
toleranceBefore
CMTime
toleranceAfter
CMTime

Returns

Applies to