Contents

nodeTime(forPlayerTime:)

Converts from player time to node time.

Declaration

func nodeTime(forPlayerTime playerTime: AVAudioTime) -> AVAudioTime?

Parameters

  • playerTime:

    A time relative to the player’s start time.

Return Value

A node time, or nil if the player isn’t playing.

Discussion

For more information about this method and its inverse playerTime(forNodeTime:), see Player Timeline.

See Also

Converting Node and Player Times