Düzenle

Aracılığıyla paylaş


AVPlayerItem.SeekAsync Method

Definition

Overloads

SeekAsync(CMTime)

Seeks to a specific location in the playback stream

SeekAsync(NSDate)

Seeks the player to the specified date.

SeekAsync(NSDate, Boolean)

Asynchronously seeks to the specified time and indicates if it succeeded.

SeekAsync(CMTime, CMTime, CMTime)

Asynchronously seeks to the specified time, within the specified tolerances..

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 the player to the specified date.

[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

Date to seek to.

Returns

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

Attributes

Remarks

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

Applies to

SeekAsync(NSDate, Boolean)

Asynchronously seeks to the specified time and indicates if it succeeded.

[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, out bool result);
abstract member SeekAsync : Foundation.NSDate *  -> System.Threading.Tasks.Task<bool>
override this.SeekAsync : Foundation.NSDate *  -> System.Threading.Tasks.Task<bool>

Parameters

date
NSDate
result
Boolean

Returns

Attributes

Applies to

SeekAsync(CMTime, CMTime, CMTime)

Asynchronously seeks to the specified time, within the specified tolerances..

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

Seek time target.

toleranceBefore
CMTime
toleranceAfter
CMTime

Returns

Applies to