AVPlayerItem.Seek 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
Seek(CMTime, CMTime, CMTime, AVCompletion) |
查找播放流中的特定位置 |
Seek(NSDate, AVCompletion) |
将玩家查找到指定的日期。 |
Seek(CMTime, CMTime, CMTime) |
在指定的 |
Seek(NSDate) |
查找日期目标。 |
Seek(CMTime, AVCompletion) |
将玩家搜寻到指定时间。 |
Seek(CMTime) |
查找指定的 |
Seek(CMTime, CMTime, CMTime, AVCompletion)
查找播放流中的特定位置
[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
参数
- time
- CMTime
查找时间目标。
- toleranceBefore
- CMTime
在时间之前允许的时间容错。
- toleranceAfter
- CMTime
该时间之后允许的时间容错。
- completion
- AVCompletion
在搜寻操作完成时调用的方法。
- 属性
注解
如果容错为零,则玩家可能需要在完成之前执行更多工作。
适用于
Seek(NSDate, AVCompletion)
将玩家查找到指定的日期。
[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
参数
- date
- NSDate
要查找的日期。
- completion
- AVCompletion
在搜寻操作完成后调用的方法。
返回
- 属性
适用于
Seek(CMTime, CMTime, CMTime)
在指定的 time
容差内查找指定的 。
[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
参数
- time
- CMTime
查找时间目标。
- toleranceBefore
- CMTime
- toleranceAfter
- CMTime
- 属性
适用于
Seek(NSDate)
查找日期目标。
[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
参数
- date
- NSDate
要查找的日期。
返回
- 属性
适用于
Seek(CMTime, AVCompletion)
将玩家搜寻到指定时间。
[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
参数
- time
- CMTime
查找时间目标。
- completion
- AVCompletion
在搜寻操作完成后调用的方法。
- 属性
适用于
Seek(CMTime)
查找指定的 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
参数
- time
- CMTime
查找时间目标。
- 属性