Compartilhar via


AVPlayerItem.Seek Método

Definição

Sobrecargas

Seek(CMTime, CMTime, CMTime, AVCompletion)

Busca um local específico no fluxo de reprodução

Seek(NSDate, AVCompletion)

Busca o jogador para a data especificada.

Seek(CMTime, CMTime, CMTime)

Busca para o especificado time, dentro das tolerâncias especificadas.

Seek(NSDate)

Busca o destino de data.

Seek(CMTime, AVCompletion)

Busca o jogador para a hora especificada.

Seek(CMTime)

Busca o especificado time.

Seek(CMTime, CMTime, CMTime, AVCompletion)

Busca um local específico no fluxo de reprodução

[Foundation.Export("seekToTime:toleranceBefore:toleranceAfter:completionHandler:")]
public virtual void Seek (CoreMedia.CMTime time, CoreMedia.CMTime toleranceBefore, CoreMedia.CMTime toleranceAfter, AVFoundation.AVCompletion completion);
abstract member Seek : CoreMedia.CMTime * CoreMedia.CMTime * CoreMedia.CMTime * AVFoundation.AVCompletion -> unit
override this.Seek : CoreMedia.CMTime * CoreMedia.CMTime * CoreMedia.CMTime * AVFoundation.AVCompletion -> unit

Parâmetros

time
CMTime

Buscar destino de tempo.

toleranceBefore
CMTime

Tolerância ao tempo permitida antes da hora.

toleranceAfter
CMTime

Tolerância ao tempo permitida após a hora.

completion
AVCompletion

Método a ser invocado quando a operação de busca for concluída.

Atributos

Comentários

Se a tolerância for zero, talvez o jogador precise executar mais trabalho antes de concluir.

Aplica-se a

Seek(NSDate, AVCompletion)

Busca o jogador para a data especificada.

[Foundation.Export("seekToDate:completionHandler:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 9, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual bool Seek (Foundation.NSDate date, AVFoundation.AVCompletion completion);
abstract member Seek : Foundation.NSDate * AVFoundation.AVCompletion -> bool
override this.Seek : Foundation.NSDate * AVFoundation.AVCompletion -> bool

Parâmetros

date
NSDate

Data a ser buscada.

completion
AVCompletion

Método a ser invocado após a conclusão da operação de busca.

Retornos

Atributos

Aplica-se a

Seek(CMTime, CMTime, CMTime)

Busca para o especificado time, dentro das tolerâncias especificadas.

[Foundation.Export("seekToTime:toleranceBefore:toleranceAfter:")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.MacOSX, 10, 13, ObjCRuntime.PlatformArchitecture.None, "Use 'Seek (CMTime, CMTime, CMTime, AVCompletion)' instead.")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 11, 0, ObjCRuntime.PlatformArchitecture.None, "Use 'Seek (CMTime, CMTime, CMTime, AVCompletion)' instead.")]
public virtual void Seek (CoreMedia.CMTime time, CoreMedia.CMTime toleranceBefore, CoreMedia.CMTime toleranceAfter);
[Foundation.Export("seekToTime:toleranceBefore:toleranceAfter:")]
public virtual void Seek (CoreMedia.CMTime time, CoreMedia.CMTime toleranceBefore, CoreMedia.CMTime toleranceAfter);
abstract member Seek : CoreMedia.CMTime * CoreMedia.CMTime * CoreMedia.CMTime -> unit
override this.Seek : CoreMedia.CMTime * CoreMedia.CMTime * CoreMedia.CMTime -> unit

Parâmetros

time
CMTime

Buscar destino de tempo.

toleranceBefore
CMTime
toleranceAfter
CMTime
Atributos

Aplica-se a

Seek(NSDate)

Busca o destino de data.

[Foundation.Export("seekToDate:")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.MacOSX, 10, 13, ObjCRuntime.PlatformArchitecture.None, "Use 'Seek (NSDate, AVCompletion)' instead.")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 11, 0, ObjCRuntime.PlatformArchitecture.None, "Use 'Seek (NSDate, AVCompletion)' instead.")]
public virtual bool Seek (Foundation.NSDate date);
[Foundation.Export("seekToDate:")]
public virtual bool Seek (Foundation.NSDate date);
abstract member Seek : Foundation.NSDate -> bool
override this.Seek : Foundation.NSDate -> bool

Parâmetros

date
NSDate

Data a ser buscada.

Retornos

Atributos

Aplica-se a

Seek(CMTime, AVCompletion)

Busca o jogador para a hora especificada.

[Foundation.Export("seekToTime:completionHandler:")]
public virtual void Seek (CoreMedia.CMTime time, AVFoundation.AVCompletion completion);
abstract member Seek : CoreMedia.CMTime * AVFoundation.AVCompletion -> unit
override this.Seek : CoreMedia.CMTime * AVFoundation.AVCompletion -> unit

Parâmetros

time
CMTime

Buscar destino de tempo.

completion
AVCompletion

Método a ser invocado após a conclusão da operação de busca.

Atributos

Aplica-se a

Seek(CMTime)

Busca o especificado time.

[Foundation.Export("seekToTime:")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.MacOSX, 10, 13, ObjCRuntime.PlatformArchitecture.None, "Use 'Seek (CMTime, AVCompletion)' instead.")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 11, 0, ObjCRuntime.PlatformArchitecture.None, "Use 'Seek (CMTime, AVCompletion)' instead.")]
public virtual void Seek (CoreMedia.CMTime time);
[Foundation.Export("seekToTime:")]
public virtual void Seek (CoreMedia.CMTime time);
abstract member Seek : CoreMedia.CMTime -> unit
override this.Seek : CoreMedia.CMTime -> unit

Parâmetros

time
CMTime

Buscar destino de tempo.

Atributos

Aplica-se a