AVPlayerItemOutput.GetItemTime Method

Definition

Overloads

GetItemTime(CVTimeStamp)
GetItemTime(Double)

Converts hostTimeInSeconds to the timebase of the AVPlayerItem.

GetItemTime(Int64)

Converts a Mach host time to the timebase of the AVPlayerItem.

GetItemTime(CVTimeStamp)

[Foundation.Export("itemTimeForCVTimeStamp:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 8, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.iOS, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual CoreMedia.CMTime GetItemTime (CoreVideo.CVTimeStamp timestamp);
abstract member GetItemTime : CoreVideo.CVTimeStamp -> CoreMedia.CMTime
override this.GetItemTime : CoreVideo.CVTimeStamp -> CoreMedia.CMTime

Parameters

timestamp
CVTimeStamp

Returns

Attributes

Applies to

GetItemTime(Double)

Converts hostTimeInSeconds to the timebase of the AVPlayerItem.

[Foundation.Export("itemTimeForHostTime:")]
public virtual CoreMedia.CMTime GetItemTime (double hostTimeInSeconds);
abstract member GetItemTime : double -> CoreMedia.CMTime
override this.GetItemTime : double -> CoreMedia.CMTime

Parameters

hostTimeInSeconds
Double

Returns

Attributes

Applies to

GetItemTime(Int64)

Converts a Mach host time to the timebase of the AVPlayerItem.

[Foundation.Export("itemTimeForMachAbsoluteTime:")]
public virtual CoreMedia.CMTime GetItemTime (long machAbsoluteTime);
abstract member GetItemTime : int64 -> CoreMedia.CMTime
override this.GetItemTime : int64 -> CoreMedia.CMTime

Parameters

machAbsoluteTime
Int64

Returns

Attributes

Applies to