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
搜尋時間目標。
- 屬性