AVPlayerItemOutput.GetItemTime Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetItemTime(CVTimeStamp) | |
GetItemTime(Double) |
Converts |
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