targetLatency
The offset in seconds between the target playhead time and the real time, or window edge, if the offset to current real time is not known. Setting this will move the player's definition of the live edge to targetLatency. The player will try to bring the LowLatencyApi.latency as close as possible to the targetLatency while avoiding stalls.
If not null
, the value:
overrides the media-defined target latency, and
overrides the SourceOptions.startOffset of the media.
Media-defined latency is:
For Dash,
ServiceDescription.latency.target
if set,otherwise
suggestedPresentationDelay
if set,otherwise 30s.
For HLS,
EXT-X-START
if set,otherwise
EXT-X-PART-INF
if both it andPART-HOLD-BACK
are set,otherwise
3 * EXT-X-TARGETDURATION
.
Default is null
.