Instance Property
targetLatency
The target latency in seconds, i.e. the distance from the stream’s real live edge to be maintained by the player during playback.
var targetLatency: TimeInterval
Discussion
This defines the live edge as seen by the player, e.g. a timeShift to 0 will end up at the player’s live edge, which is targetLatency away from the stream’s real live edge. This value should always be positive.
Related APIs:
Note
The system works on a best effort basis but there is no guarantee that the target latency will be always reached exactly. This is especially the case for lower values.
Default value is nan, meaning that the default system behaviour is maintained.